762853f4 |
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 | <?php |
42 | } |
43 | ?> |
44 | <tr> |
45 | <td class="fieldName"> |
46 | <label for="to"><?php echo _("To"); ?>:</label> |
47 | </td> |
48 | <td class="fieldValue"> |
49 | <input type="text" name="send_to" id="to" value="<?php echo $to; ?>" size="50" <?php echo $input_onfocus; ?> /> |
50 | </td> |
51 | </tr> |
52 | <tr> |
53 | <td class="fieldName"> |
54 | <label for="send_to_cc"><?php echo _("Cc"); ?>:</label> |
55 | </td> |
56 | <td class="fieldValue"> |
57 | <input type="text" name="send_to_cc" id="send_to_cc" value="<?php echo $cc; ?>" size="50" <?php echo $input_onfocus; ?> /> |
58 | </td> |
59 | </tr> |
60 | <tr> |
61 | <td class="fieldName"> |
62 | <label for="send_to_bcc"><?php echo _("Bcc"); ?>:</label> |
63 | </td> |
64 | <td class="fieldValue"> |
65 | <input type="text" name="send_to_bcc" id="send_to_bcc" value="<?php echo $bcc; ?>" size="50" <?php echo $input_onfocus; ?> /> |
66 | </td> |
67 | </tr> |
68 | <tr> |
69 | <td class="fieldName"> |
70 | <label for="subject"><?php echo _("Subject"); ?>:</label> |
71 | </td> |
72 | <td class="fieldValue"> |
73 | <input type="text" name="subject" id="subject" value="<?php echo $subject; ?>" size="50" <?php echo $input_onfocus; ?> /> |
74 | </td> |
75 | </tr> |
76 | </table> |
77 | </div> |