| | |
| | | | program/steps/addressbook/func.inc | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2007, The Roundcube Dev Team | |
| | | | Copyright (C) 2005-2012, The Roundcube Dev Team | |
| | | | | |
| | | | Licensed under the GNU General Public License version 3 or | |
| | | | any later version with exceptions for skins & plugins. | |
| | |
| | | '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 |
| | |
| | | |
| | | while ($row = $result->next()) { |
| | | $a_row_cols = array(); |
| | | $classes = array('person'); // org records will follow some day |
| | | |
| | | // build contact ID with source ID |
| | | if (isset($row['sourceid'])) { |
| | |
| | | $a_row_cols[$col] = Q($val); |
| | | } |
| | | |
| | | $OUTPUT->command($prefix.'add_contact_row', $row['ID'], $a_row_cols); |
| | | if ($row['readonly']) |
| | | $classes[] = 'readonly'; |
| | | |
| | | $OUTPUT->command($prefix.'add_contact_row', $row['ID'], $a_row_cols, join(' ', $classes)); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | if (!$content) |
| | | if (!$content && (!$edit_mode || !$select_add->_count)) |
| | | continue; |
| | | |
| | | // also render add-field selector |