source: subversion/trunk/roundcubemail/program/steps/addressbook/list.inc @ 3989

Last change on this file since 3989 was 3989, checked in by alec, 3 years ago
  • s/RoundCube/Roundcube/
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
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$
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
30rcmail_js_contacts_list($result);
31 
32// send response
33$OUTPUT->send();
34
Note: See TracBrowser for help on using the repository browser.