thomascube
2008-09-18 7dfb1fba5001299300736e6b5d95d9400575e3e7
commit | author | age
4e17e6 1 <?php
T 2
3 /*
4  +-----------------------------------------------------------------------+
5  | program/steps/settings/identities.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  |   Manage identities of a user account                                 |
13  |                                                                       |
14  +-----------------------------------------------------------------------+
15  | Author: Thomas Bruederli <roundcube@gmail.com>                        |
16  +-----------------------------------------------------------------------+
17
18  $Id$
19
20 */
21
a55606 22 $OUTPUT->set_pagetitle(rcube_label('identities'));
4e17e6 23
6b47de 24 $OUTPUT->include_script('list.js');
4e17e6 25
T 26
27 // similar function as /steps/addressbook/func.inc::rcmail_contact_frame()
28 function rcmail_identity_frame($attrib)
29   {
f11541 30   global $OUTPUT;
4e17e6 31
T 32   if (!$attrib['id'])
33     $attrib['id'] = 'rcmIdentityFrame';
34
35   $attrib['name'] = $attrib['id'];
36
f11541 37   $OUTPUT->set_env('contentframe', $attrib['name']);
4e17e6 38
T 39   $attrib_str = create_attrib_string($attrib, array('name', 'id', 'class', 'style', 'src', 'width', 'height', 'frameborder'));
40   $out = '<iframe'. $attrib_str . '></iframe>';
41
42   return $out;
43   }
44
f11541 45 $OUTPUT->add_handler('identityframe', 'rcmail_identity_frame');
4e17e6 46
47124c 47 $OUTPUT->send('identities');
4e17e6 48 ?>