thomascube
2010-04-01 65c8764b19d16ebdcd270f5c9bf0162e686c56bd
commit | author | age
4e17e6 1 <?php
T 2
3 /*
4  +-----------------------------------------------------------------------+
5  | program/steps/addressbook/list.inc                                    |
6  |                                                                       |
7  | This file is part of the RoundCube Webmail client                     |
f11541 8  | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland                 |
30233b 9  | Licensed under the GNU GPL                                            |
4e17e6 10  |                                                                       |
T 11  | PURPOSE:                                                              |
12  |   Send contacts list to client (as remote response)                   |
13  |                                                                       |
14  +-----------------------------------------------------------------------+
15  | Author: Thomas Bruederli <roundcube@gmail.com>                        |
16  +-----------------------------------------------------------------------+
17
18  $Id$
19
20 */
21
f11541 22 // get contacts for this user
T 23 $result = $CONTACTS->list_records();
4e17e6 24
T 25 // update message count display
f11541 26 $OUTPUT->set_env('pagecount', ceil($result->count / $CONTACTS->page_size));
T 27 $OUTPUT->command('set_rowcount', rcmail_get_rowcount_text($rowcount));
4e17e6 28
f11541 29 // create javascript list
T 30 rcmail_js_contacts_list($result);
4e17e6 31   
T 32 // send response
f11541 33 $OUTPUT->send();
4e17e6 34
T 35 ?>