fsf changes, meant to be rebased on upstream
[squirrelmail.git] / templates / default / compose_buttons.tpl
CommitLineData
762853f4 1<?php
2/**
3 * compose_buttons.tpl
4 *
5 * Description
6 *
7 * The following variables are available in this template:
8949acd6 8 * $accesskey_compose_priority - The access key to be use for the Priority list
9 * $accesskey_compose_on_read - The access key to be use for the On Read checkbox
10 * $accesskey_compose_on_delivery - The access key to be use for the On Delivery checkbox
11 * $accesskey_compose_signature - The access key to be use for the Signature button
12 * $accesskey_compose_save_draft - The access key to be use for the Save Draft button
13 * $accesskey_compose_send - The access key to be use for the Send button
762853f4 14 *
c997cbe6 15 * @copyright 1999-2021 The SquirrelMail Project Team
762853f4 16 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
17 * @version $Id$
18 * @package squirrelmail
19 * @subpackage templates
20 */
21
22/** add required includes **/
23
24/** extract template variables **/
25extract($t);
26
27/** Begin template **/
28?>
29<div class="compose">
30<table cellspacing="0" class="table1">
31 <?php
32 # Priority setting
33 if ($allow_priority) {
34 ?>
35 <tr>
36 <td class="fieldName">
37 <label for="mailprio"><?php echo _("Priority"); ?>:</label>
38 </td>
39 <td class="fieldValue">
8949acd6 40 <select name="mailprio" id="mailprio"<?php if ($accesskey_compose_priority != 'NONE') echo ' accesskey="' . $accesskey_compose_priority . '"'; ?>>
762853f4 41 <?php
42 foreach ($priority_list as $value=>$name) {
43 echo '<option value="'.$value.'"'. ($value==$current_priority ? ' selected="selected"' : '') .'>'.$name.'</option>';
44 }
45 ?>
46 </select>
47 </td>
48 </tr>
49 <?php
50 }
51
52 # Notifications
53 if ($notifications_enabled) {
54 ?>
55 <tr>
56 <td class="fieldName">
57 <?php echo _("Receipts"); ?>:
58 </td>
59 <td class="fieldValue">
8949acd6 60 <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>
12644eff 61 &nbsp;
8949acd6 62 <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>
762853f4 63 </td>
64 </tr>
65 <?php
66 }
67 ?>
68 <tr>
69 <td colspan="2" class="buttons">
8949acd6 70 <input type="submit" name="sigappend" <?php if ($accesskey_compose_signature != 'NONE') echo 'accesskey="' . $accesskey_compose_signature . '" '; ?>value="<?php echo _("Signature"); ?>" />&nbsp;
762853f4 71 <?php echo $address_book_button; ?>&nbsp;
72 <?php
73 if ($drafts_enabled) {
74 ?>
8949acd6 75 <input type="submit" name="draft" <?php if ($accesskey_compose_save_draft != 'NONE') echo 'accesskey="' . $accesskey_compose_save_draft . '" '; ?>value="<?php echo _("Save Draft"); ?>" />&nbsp;
762853f4 76 <?php
77 }
78 ?>
8949acd6 79 <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;
abb5bd0c 80 <?php if (!empty($plugin_output['compose_button_row'])) echo $plugin_output['compose_button_row']; ?>
762853f4 81 </td>
82 </tr>
83</table>
abb5bd0c 84</div>