3 * options_ident_advanced.tpl
5 * Template to handle advanced identity management
7 * The following variables are available in this template:
8 * $identities - array containing all identities. Each element contains
9 * the following fields:
10 * $el['Title'] - title to be displayed in each block
11 * $el['New'] - boolean TRUE if this element is for a new identity.
13 * $el['Default'] - boolean TRUE if this is the default identity.
14 * $el['FullName'] - value for the Full Name field
15 * $el['Email'] - value for the email field
16 * $el['ReplyTo'] - value for the Reply To field
17 * $el['Signature']- value for the Signature field
19 * @copyright © 1999-2009 The SquirrelMail Project Team
20 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
22 * @package squirrelmail
23 * @subpackage templates
26 /** add required includes **/
28 /** extract template variables **/
31 /** Begin template **/
33 <div id="optionsIdentity">
34 <table cellspacing="0" class="table1">
37 <?php echo _("Options"); ?> - <?php echo _("Advanced Identities"); ?>
43 foreach ($identities as $index=>$identity) {
44 if ($identity['New']) {
50 <table cellspacing="0" class="table2">
52 <td colspan="2" class="header2">
53 <?php echo $identity['Title']; ?>
57 <td class="fieldName">
58 <?php echo _("Full Name"); ?>
60 <td class="fieldValue">
61 <input type="text" name="newidentities[<?php echo $index; ?>][full_name]" size="50" value="<?php echo $identity['FullName']; ?>" />
65 <td class="fieldName">
66 <?php echo _("E-Mail Address"); ?>
68 <td class="fieldValue">
69 <input type="text" name="newidentities[<?php echo $index; ?>][email_address]" size="50" value="<?php echo $identity['Email']; ?>" />
73 <td class="fieldName">
74 <?php echo _("Reply To"); ?>
76 <td class="fieldValue">
77 <input type="text" name="newidentities[<?php echo $index; ?>][reply_to]" size="50" value="<?php echo $identity['ReplyTo']; ?>" />
81 <td class="fieldName">
82 <?php echo _("Signature"); ?>
84 <td class="fieldValue">
85 <textarea name="newidentities[<?php echo $index; ?>][signature]" cols="50" rows="5"><?php echo $identity['Signature']; ?></textarea>
88 <?php /* FIXME: No hooks in templates! */ $temp = array('', &$identity['New'], &$index); echo concat_hook_function('options_identities_table', $temp); ?>
90 <td colspan="2" class="actionButtons">
91 <input type="submit" name="smaction[save][<?php echo $index; ?>]" value="<?php echo _("Save / Update"); ?>" />
93 if ($index > 0 && !$identity['New']) {
95 <input type="submit" name="smaction[makedefault][<?php echo $index; ?>]" value="<?php echo _("Make Default"); ?>" />
96 <input type="submit" name="smaction[delete][<?php echo $index; ?>]" value="<?php echo _("Delete"); ?>" />
99 if ($index > 1 && !$identity['New']) {
101 <input type="submit" name="smaction[move][<?php echo $index; ?>]" value="<?php echo _("Move Up"); ?>" />
104 /* FIXME: No hooks in templates! */ $temp = array(&$identity['New'], &$index); echo concat_hook_function('options_identities_buttons', $temp);