thomascube
2005-11-18 fbf77b4493f1b77c99751d8a86365c712ae3fb1b
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                     |
8  | Copyright (C) 2005, 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
22 if ($USER_DATA = $DB->fetch_assoc($sql_result))
23   $PAGE_TITLE = sprintf('%s (%s@%s)', rcube_label('identities'), $USER_DATA['username'], $USER_DATA['mail_host']);
24
25
26
27 // similar function as /steps/addressbook/func.inc::rcmail_contact_frame()
28 function rcmail_identity_frame($attrib)
29   {
30   global $OUTPUT, $JS_OBJECT_NAME;
31
32   if (!$attrib['id'])
33     $attrib['id'] = 'rcmIdentityFrame';
34
35   $attrib['name'] = $attrib['id'];
36
37   $OUTPUT->add_script(sprintf("%s.set_env('contentframe', '%s');", $JS_OBJECT_NAME, $attrib['name']));
38
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
45
46
47 parse_template('identities');
48 ?>