Happy New Year
[squirrelmail.git] / templates / default / compose_buttons.tpl
index 8ebb0fe5b14826711366d8b5052426f447543794..efdbc3c7726985c5e3e444eeedefa1fc68e1cd4d 100644 (file)
@@ -5,8 +5,14 @@
  * Description
  * 
  * The following variables are available in this template:
+ *    $accesskey_compose_priority    - The access key to be use for the Priority list
+ *    $accesskey_compose_on_read     - The access key to be use for the On Read checkbox
+ *    $accesskey_compose_on_delivery - The access key to be use for the On Delivery checkbox
+ *    $accesskey_compose_signature   - The access key to be use for the Signature button
+ *    $accesskey_compose_save_draft  - The access key to be use for the Save Draft button
+ *    $accesskey_compose_send        - The access key to be use for the Send button
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2020 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -31,7 +37,7 @@ extract($t);
    <label for="mailprio"><?php echo _("Priority"); ?>:</label>
   </td>
   <td class="fieldValue">
-   <select name="mailprio" id="mailprio">
+   <select name="mailprio" id="mailprio"<?php if ($accesskey_compose_priority != 'NONE') echo ' accesskey="' . $accesskey_compose_priority . '"'; ?>>
     <?php
         foreach ($priority_list as $value=>$name) {
             echo '<option value="'.$value.'"'. ($value==$current_priority ? ' selected="selected"' : '') .'>'.$name.'</option>';
@@ -51,9 +57,9 @@ extract($t);
    <?php echo _("Receipts"); ?>:
   </td>
   <td class="fieldValue">
-    <input type="checkbox" name="request_mdn" id="request_mdn" value="1" <?php if ($read_receipt) echo ' checked="checked"'; ?> /><label for="request_mdn"><?php echo _("On Read"); ?></label>
-    <br />
-    <input type="checkbox" name="request_dr" id="request_dr" value="1" <?php if ($delivery_receipt) echo ' checked="checked"'; ?> /><label for="request_dr"><?php echo _("On Delivery"); ?></label>
+    <input type="checkbox" name="request_mdn" id="request_mdn" value="1" <?php if ($read_receipt) echo ' checked="checked"'; ?> <?php if ($accesskey_compose_on_read != 'NONE') echo 'accesskey="' . $accesskey_compose_on_read . '" '; ?>/><label for="request_mdn"><?php echo _("On Read"); ?></label>
+    &nbsp;
+    <input type="checkbox" name="request_dr" id="request_dr" value="1" <?php if ($delivery_receipt) echo ' checked="checked"'; ?> <?php if ($accesskey_compose_on_delivery != 'NONE') echo 'accesskey="' . $accesskey_compose_on_delivery . '" '; ?>/><label for="request_dr"><?php echo _("On Delivery"); ?></label>
   </td>
  </tr>
         <?php
@@ -61,18 +67,18 @@ extract($t);
  ?>
  <tr>
   <td colspan="2" class="buttons">
-   <input type="submit" name="sigappend" value="<?php echo _("Signature"); ?>" />&nbsp;
+   <input type="submit" name="sigappend" <?php if ($accesskey_compose_signature != 'NONE') echo 'accesskey="' . $accesskey_compose_signature . '" '; ?>value="<?php echo _("Signature"); ?>" />&nbsp;
    <?php echo $address_book_button; ?>&nbsp;
    <?php
     if ($drafts_enabled) {
         ?>
-   <input type="submit" name="draft" value="<?php echo _("Save Draft"); ?>" />&nbsp;
+   <input type="submit" name="draft" <?php if ($accesskey_compose_save_draft != 'NONE') echo 'accesskey="' . $accesskey_compose_save_draft . '" '; ?>value="<?php echo _("Save Draft"); ?>" />&nbsp;
         <?php
     }
    ?>
-   <input type="submit" name="send" value="<?php echo _("Send"); ?>" />&nbsp;
-   <?php echo @$plugin_output['compose_button_row']; ?>
+   <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"); ?>" />&nbsp;
+   <?php if (!empty($plugin_output['compose_button_row'])) echo $plugin_output['compose_button_row']; ?>
   </td>
  </tr>
 </table>
-</div>
\ No newline at end of file
+</div>