| | |
| | | $OUTPUT->command('insert_saved_search', rcube::Q($name), rcube::Q($result)); |
| | | } |
| | | else |
| | | $OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'savedsearchcreateerror', 'error'); |
| | | $OUTPUT->show_message($plugin['message'] ?: 'savedsearchcreateerror', 'error'); |
| | | |
| | | $OUTPUT->send(); |
| | | } |
| | |
| | | $OUTPUT->set_env('pagecount', 0); |
| | | } |
| | | else |
| | | $OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'savedsearchdeleteerror', 'error'); |
| | | $OUTPUT->show_message($plugin['message'] ?: 'savedsearchdeleteerror', 'error'); |
| | | |
| | | $OUTPUT->send(); |
| | | } |
| | |
| | | { |
| | | global $RCMAIL, $CONTACT_COLTYPES; |
| | | |
| | | $i_size = !empty($attrib['size']) ? $attrib['size'] : 30; |
| | | $i_size = $attrib['size'] ?: 30; |
| | | |
| | | $form = array( |
| | | 'main' => array( |
| | |
| | | { |
| | | $ftype = $colprop['type'] == 'select' ? 'select' : 'text'; |
| | | $label = isset($colprop['label']) ? $colprop['label'] : $RCMAIL->gettext($col); |
| | | $category = $colprop['category'] ? $colprop['category'] : 'other'; |
| | | $category = $colprop['category'] ?: 'other'; |
| | | |
| | | // load jquery UI datepicker for date fields |
| | | if ($colprop['type'] == 'date') |