Note a bug
[squirrelmail.git] / templates / default / compose_body.tpl
index ac19ed7f8c2011a70a4f125b25bdd6dc07448311..5518065079563e0830260c7822b61bdf26c31863 100644 (file)
@@ -5,8 +5,10 @@
  * Description
  * 
  * The following variables are available in this template:
+ *    $accesskey_compose_body - The access key to use for the message body textarea
+ *    $accesskey_compose_send - The access key to be use for the Send button
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2012 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -24,7 +26,7 @@ extract($t);
 <table cellspacing="0" class="table1">
  <tr>
   <td style="text-align: center">
-   <textarea name="body" id="body" rows="<?php echo $editor_height; ?>" cols="<?php echo $editor_width; ?>" <?php echo $input_onfocus; ?>><?php echo $body; ?></textarea>
+   <textarea name="body" id="body" rows="<?php echo $editor_height; ?>" cols="<?php echo $editor_width; ?>" <?php if ($accesskey_compose_body != 'NONE') echo 'accesskey="' . $accesskey_compose_body . '" '; echo $input_onfocus; ?>><?php echo $body; ?></textarea>
   </td>
  </tr>
  <?php
@@ -32,7 +34,7 @@ extract($t);
         ?>
  <tr>
   <td class="bottomSend">
-   <input type="submit" name="<?php echo unique_widget_name('send'); ?>" value="<?php echo _("Send"); ?>" />
+   <input type="submit" <?php if (!unique_widget_name('send', TRUE) && $accesskey_compose_send != 'NONE') echo 'accesskey="' . $accesskey_compose_send . '" '; ?>name="<?php echo unique_widget_name('send'); ?>" value="<?php echo _("Send"); ?>" />
   </td>
  </tr>
         <?php
@@ -40,4 +42,3 @@ extract($t);
  ?>
 </table>
 </div>
-<input type="hidden" name="send_button_count" value="<?php echo unique_widget_name('send', TRUE); ?>" />