| | |
| | | if (!strlen($EDIT_FORM)) |
| | | { |
| | | $hiddenfields = new html_hiddenfield(array('name' => '_task', 'value' => $RCMAIL->task)); |
| | | $hiddenfields->add(array('name' => '_action', 'value' => 'save', 'source' => get_input_value('_source', RCUBE_INPUT_GPC))); |
| | | $hiddenfields->add(array('name' => '_action', 'value' => 'save')); |
| | | $hiddenfields->add(array('name' => '_source', 'value' => get_input_value('_source', RCUBE_INPUT_GPC))); |
| | | $hiddenfields->add(array('name' => '_framed', 'value' => (empty($_REQUEST['_framed']) ? 0 : 1))); |
| | | |
| | | if (($result = $CONTACTS->get_result()) && ($record = $result->first())) |
| | | $hiddenfields->add(array('name' => '_cid', 'value' => $record['ID'])); |
| | |
| | | |
| | | |
| | | |
| | | if (!$CONTACTS->get_result() && template_exists('addcontact')) |
| | | if (!$CONTACTS->get_result() && $OUTPUT->template_exists('addcontact')) |
| | | $OUTPUT->send('addcontact'); |
| | | |
| | | // this will be executed if no template for addcontact exists |