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