| 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-2006 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"><?php echo $identity['Signature']; ?></textarea> |
| 86 | </td> |
| 87 | </tr> |
| 88 | <?php echo concat_hook_function('options_identities_table', array('', $identity['New'], $index)); ?> |
| 89 | <tr> |
| 90 | <td colspan="2" class="actionButtons"> |
| 91 | <input type="submit" name="smaction[save][<?php echo $index; ?>]" value="<?php echo _("Save / Update"); ?>" /> |
| 92 | <?php |
| 93 | if ($index > 0 && !$identity['New']) { |
| 94 | ?> |
| 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"); ?>" /> |
| 97 | <?php |
| 98 | } |
| 99 | if ($index > 1 && !$identity['New']) { |
| 100 | ?> |
| 101 | <input type="submit" name="smaction[move][<?php echo $index; ?>]" value="<?php echo _("Move Up"); ?>" /> |
| 102 | <?php |
| 103 | } |
| 104 | echo concat_hook_function('options_identities_buttons', array($identity['New'], $index)); |
| 105 | ?> |
| 106 | </td> |
| 107 | </tr> |
| 108 | </table> |
| 109 | <?php |
| 110 | } |
| 111 | ?> |
| 112 | </td> |
| 113 | </tr> |
| 114 | </table> |
| 115 | </div> |