| | |
| | | | program/steps/addressbook/list.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. | |
| | |
| | | $page = isset($_SESSION['page']) ? $_SESSION['page'] : 1; |
| | | |
| | | $_SESSION['page'] = $page; |
| | | $sort_col = $this->config->get('addressbook_sort_col', 'name'); |
| | | |
| | | // Get records from all sources |
| | | foreach ($search as $s => $set) { |
| | |
| | | |
| | | while ($row = $result->next()) { |
| | | $row['sourceid'] = $s; |
| | | $key = $row['name'] . ':' . $row['sourceid']; |
| | | $key = $row[$sort_col] . ':' . $row['sourceid']; |
| | | $records[$key] = $row; |
| | | } |
| | | unset($result); |