| | |
| | | +-----------------------------------------------------------------------+ |
| | | | Author: Thomas Bruederli <roundcube@gmail.com> | |
| | | +-----------------------------------------------------------------------+ |
| | | |
| | | $Id$ |
| | | |
| | | */ |
| | | |
| | | $SEARCH_MODS_DEFAULT = array('name'=>1, 'firstname'=>1, 'surname'=>1, 'email'=>1, '*'=>1); |
| | |
| | | 'rel' => '%s', |
| | | 'onclick' => "return ".JS_OBJECT_NAME.".command('list','%s',this)"), '%s')); |
| | | |
| | | $sources = (array) $OUTPUT->env['address_sources']; |
| | | $sources = (array) $OUTPUT->get_env('address_sources'); |
| | | reset($sources); |
| | | |
| | | // currently selected source |
| | |
| | | $composite = array(); $j = 0; |
| | | $template = $RCMAIL->config->get($col . '_template', '{'.join('} {', array_keys($colprop['childs'])).'}'); |
| | | foreach ($colprop['childs'] as $childcol => $cp) { |
| | | $childvalue = $val[$childcol] ? $val[$childcol] : $val[$j]; |
| | | if (!empty($val) && is_array($val)) { |
| | | $childvalue = $val[$childcol] ? $val[$childcol] : $val[$j]; |
| | | } |
| | | else { |
| | | $childvalue = ''; |
| | | } |
| | | |
| | | if ($edit_mode) { |
| | | if ($colprop['subtypes'] || $colprop['limit'] != 1) $cp['array'] = true; |
| | |
| | | } |
| | | } |
| | | |
| | | if (!$content) |
| | | if (!$content && (!$edit_mode || !$select_add->_count)) |
| | | continue; |
| | | |
| | | // also render add-field selector |