Happy New Year
[squirrelmail.git] / templates / default / options_advidentity_list.tpl
1 <?php
2 /**
3  * options_ident_advanced.tpl
4  *
5  * Template to handle advanced identity management
6  * 
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.
12  *                            FALSE otherwise.
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
18  *
19  * @copyright 1999-2018 The SquirrelMail Project Team
20  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
21  * @version $Id$
22  * @package squirrelmail
23  * @subpackage templates
24  */
25
26 /** add required includes **/
27
28 /** extract template variables **/
29 extract($t);
30
31 /** Begin template **/
32 ?>
33 <div id="optionsIdentity">
34 <table cellspacing="0" class="table1">
35  <tr>
36   <td class="header1">
37    <?php echo _("Options"); ?> - <?php echo _("Advanced Identities"); ?>
38   </td>
39  </tr>
40  <tr>
41   <td>
42    <?php
43     foreach ($identities as $index=>$identity) {
44         if ($identity['New']) {
45             ?>
46    <hr />
47             <?php
48         }
49         ?>
50    <table cellspacing="0" class="table2">
51     <tr>
52      <td colspan="2" class="header2">
53       <?php echo $identity['Title']; ?>
54      </td>
55     </tr>
56     <tr>
57      <td class="fieldName">
58       <?php echo _("Full Name"); ?>
59      </td>
60      <td class="fieldValue">
61       <input type="text" name="newidentities[<?php echo $index; ?>][full_name]" size="50" value="<?php echo $identity['FullName']; ?>" />
62      </td>
63     </tr>
64     <tr>
65      <td class="fieldName">
66       <?php echo _("E-Mail Address"); ?>
67      </td>
68      <td class="fieldValue">
69       <input type="text" name="newidentities[<?php echo $index; ?>][email_address]" size="50" value="<?php echo $identity['Email']; ?>" />
70      </td>
71     </tr>
72     <tr>
73      <td class="fieldName">
74       <?php echo _("Reply To"); ?>
75      </td>
76      <td class="fieldValue">
77       <input type="text" name="newidentities[<?php echo $index; ?>][reply_to]" size="50" value="<?php echo $identity['ReplyTo']; ?>" />
78      </td>
79     </tr>
80     <tr>
81      <td class="fieldName">
82       <?php echo _("Signature"); ?>
83      </td>
84      <td class="fieldValue">
85       <textarea name="newidentities[<?php echo $index; ?>][signature]" cols="50" rows="5">
86 <?php echo $identity['Signature']; ?></textarea>
87      </td>
88     </tr>
89     <?php /* FIXME: No hooks in templates! */ $temp = array('', &$identity['New'], &$index); echo concat_hook_function('options_identities_table', $temp); ?>
90     <tr>
91      <td colspan="2" class="actionButtons">
92       <input type="submit" name="smaction[save][<?php echo $index; ?>]" value="<?php echo _("Save / Update"); ?>" />
93       <?php
94         if ($index > 0 && !$identity['New']) {
95             ?>
96       <input type="submit" name="smaction[makedefault][<?php echo $index; ?>]" value="<?php echo _("Make Default"); ?>" />
97       <input type="submit" name="smaction[delete][<?php echo $index; ?>]" value="<?php echo _("Delete"); ?>" />
98             <?php
99         }
100         if ($index > 1 && !$identity['New']) {
101             ?>
102       <input type="submit" name="smaction[move][<?php echo $index; ?>]" value="<?php echo _("Move Up"); ?>" />
103             <?php
104         }
105         /* FIXME: No hooks in templates! */ $temp = array(&$identity['New'], &$index); echo concat_hook_function('options_identities_buttons', $temp);
106       ?>
107      </td>
108     </tr>
109    </table>
110         <?php
111     }
112    ?>
113   </td>
114  </tr>
115 </table>
116 </div>