source: github/program/steps/settings/identities.inc @ 6b47de3

HEADcourier-fixdev-browser-capabilitiespdorelease-0.6release-0.7release-0.8
Last change on this file since 6b47de3 was 6b47de3, checked in by thomascube <thomas@…>, 7 years ago

Partial client re-write with a common list class

  • Property mode set to 100644
File size: 1.7 KB
Line 
1<?php
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                      |
9 | Licensed under the GNU GPL                                            |
10 |                                                                       |
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
22if ($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$OUTPUT->include_script('list.js');
26
27
28// similar function as /steps/addressbook/func.inc::rcmail_contact_frame()
29function rcmail_identity_frame($attrib)
30  {
31  global $OUTPUT, $JS_OBJECT_NAME;
32
33  if (!$attrib['id'])
34    $attrib['id'] = 'rcmIdentityFrame';
35
36  $attrib['name'] = $attrib['id'];
37
38  $OUTPUT->add_script(sprintf("%s.set_env('contentframe', '%s');", $JS_OBJECT_NAME, $attrib['name']));
39
40  $attrib_str = create_attrib_string($attrib, array('name', 'id', 'class', 'style', 'src', 'width', 'height', 'frameborder'));
41  $out = '<iframe'. $attrib_str . '></iframe>';
42
43  return $out;
44  }
45
46
47
48parse_template('identities');
49?>
Note: See TracBrowser for help on using the repository browser.