4 +-----------------------------------------------------------------------+
5 | program/steps/addressbook/list.inc |
7 | This file is part of the RoundCube Webmail client |
8 | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland |
9 | Licensed under the GNU GPL |
12 | Send contacts list to client (as remote response) |
14 +-----------------------------------------------------------------------+
15 | Author: Thomas Bruederli <roundcube@gmail.com> |
16 +-----------------------------------------------------------------------+
18 $Id: list.inc 543 2007-04-28 18:07:12Z thomasb $
22 // get contacts for this user
23 $result = $CONTACTS->list_records();
25 // update message count display
26 $OUTPUT->set_env('pagecount', ceil($result->count / $CONTACTS->page_size));
27 $OUTPUT->command('set_rowcount', rcmail_get_rowcount_text($rowcount));
29 // create javascript list
30 rcmail_js_contacts_list($result);