]> git.donarmstrong.com Git - roundcube.git/blob - program/steps/addressbook/list.inc
Imported Upstream version 0.5
[roundcube.git] / program / steps / addressbook / list.inc
1 <?php
2
3 /*
4  +-----------------------------------------------------------------------+
5  | program/steps/addressbook/list.inc                                    |
6  |                                                                       |
7  | This file is part of the Roundcube Webmail client                     |
8  | Copyright (C) 2005-2007, Roundcube Dev. - Switzerland                 |
9  | Licensed under the GNU GPL                                            |
10  |                                                                       |
11  | PURPOSE:                                                              |
12  |   Send contacts list to client (as remote response)                   |
13  |                                                                       |
14  +-----------------------------------------------------------------------+
15  | Author: Thomas Bruederli <roundcube@gmail.com>                        |
16  +-----------------------------------------------------------------------+
17
18  $Id: list.inc 3989 2010-09-25 13:03:53Z alec $
19
20 */
21
22 // get contacts for this user
23 $result = $CONTACTS->list_records();
24
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));
28
29 // create javascript list
30 rcmail_js_contacts_list($result);
31   
32 // send response
33 $OUTPUT->send();
34