| 1 | <?php |
| 2 | /** |
| 3 | * compose_header.tpl |
| 4 | * |
| 5 | * Description |
| 6 | * |
| 7 | * The following variables are available in this template: |
| 8 | * $accesskey_compose_identity - The access key to be used for the From field |
| 9 | * $accesskey_compose_to - The access key to be used for the To field |
| 10 | * $accesskey_compose_cc - The access key to be used for the Cc field |
| 11 | * $accesskey_compose_bcc - The access key to be used for the Bcc field |
| 12 | * $accesskey_compose_subject - The access key to be used for the Subject field |
| 13 | * |
| 14 | * @copyright 1999-2018 The SquirrelMail Project Team |
| 15 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
| 16 | * @version $Id$ |
| 17 | * @package squirrelmail |
| 18 | * @subpackage templates |
| 19 | */ |
| 20 | |
| 21 | /** add required includes **/ |
| 22 | |
| 23 | /** extract template variables **/ |
| 24 | extract($t); |
| 25 | |
| 26 | /** Begin template **/ |
| 27 | ?> |
| 28 | <div class="compose"> |
| 29 | <table cellspacing="0" class="table1"> |
| 30 | <?php |
| 31 | # Display the identity list if there is more than 1 identity |
| 32 | if (count($identities) > 1) { |
| 33 | ?> |
| 34 | <tr> |
| 35 | <td class="fieldName"> |
| 36 | <label for="identity"><?php echo _("From"); ?>:</label> |
| 37 | </td> |
| 38 | <td class="fieldValue"> |
| 39 | <select name="identity" <?php if ($accesskey_compose_identity != 'NONE') echo 'accesskey="' . $accesskey_compose_identity . '" '; ?>id="identity"> |
| 40 | <?php |
| 41 | foreach ($identities as $id=>$ident) { |
| 42 | echo '<option value="'.$id.'"'. ($identity_def==$id ? ' selected="selected"' : '') .'>'. $ident .'</option>'; |
| 43 | } |
| 44 | ?> |
| 45 | </select> |
| 46 | </td> |
| 47 | </tr> |
| 48 | <?php |
| 49 | } |
| 50 | ?> |
| 51 | <tr> |
| 52 | <td class="fieldName"> |
| 53 | <label for="to"><?php echo _("To"); ?>:</label> |
| 54 | </td> |
| 55 | <td class="fieldValue"> |
| 56 | <input type="text" name="send_to" id="to" value="<?php echo $to; ?>" size="50" <?php if ($accesskey_compose_to != 'NONE') echo 'accesskey="' . $accesskey_compose_to . '" '; echo $input_onfocus; ?> /> |
| 57 | </td> |
| 58 | </tr> |
| 59 | <tr> |
| 60 | <td class="fieldName"> |
| 61 | <label for="send_to_cc"><?php echo _("Cc"); ?>:</label> |
| 62 | </td> |
| 63 | <td class="fieldValue"> |
| 64 | <input type="text" name="send_to_cc" id="send_to_cc" value="<?php echo $cc; ?>" size="50" <?php if ($accesskey_compose_cc != 'NONE') echo 'accesskey="' . $accesskey_compose_cc . '" '; echo $input_onfocus; ?> /> |
| 65 | </td> |
| 66 | </tr> |
| 67 | <tr> |
| 68 | <td class="fieldName"> |
| 69 | <label for="send_to_bcc"><?php echo _("Bcc"); ?>:</label> |
| 70 | </td> |
| 71 | <td class="fieldValue"> |
| 72 | <input type="text" name="send_to_bcc" id="send_to_bcc" value="<?php echo $bcc; ?>" size="50" <?php if ($accesskey_compose_bcc != 'NONE') echo 'accesskey="' . $accesskey_compose_bcc . '" '; echo $input_onfocus; ?> /> |
| 73 | </td> |
| 74 | </tr> |
| 75 | <tr> |
| 76 | <td class="fieldName"> |
| 77 | <label for="subject"><?php echo _("Subject"); ?>:</label> |
| 78 | </td> |
| 79 | <td class="fieldValue"> |
| 80 | <input type="text" name="subject" id="subject" value="<?php echo $subject; ?>" size="50" <?php if ($accesskey_compose_subject != 'NONE') echo 'accesskey="' . $accesskey_compose_subject . '" '; echo $input_onfocus; ?> /> |
| 81 | </td> |
| 82 | </tr> |
| 83 | </table> |
| 84 | </div> |