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