da07752d |
1 | <?php |
2 | /** |
3 | * compose_body.tpl |
4 | * |
5 | * Description |
6 | * |
7 | * The following variables are available in this template: |
8949acd6 |
8 | * $accesskey_compose_body - The access key to use for the message body textarea |
9 | * $accesskey_compose_send - The access key to be use for the Send button |
da07752d |
10 | * |
22387c8d |
11 | * @copyright 1999-2017 The SquirrelMail Project Team |
da07752d |
12 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
01144ffd |
13 | * @version $Id$ |
da07752d |
14 | * @package squirrelmail |
15 | * @subpackage templates |
16 | */ |
17 | |
18 | /** add required includes **/ |
19 | |
20 | /** extract template variables **/ |
21 | extract($t); |
22 | |
23 | /** Begin template **/ |
24 | ?> |
25 | <div class="compose"> |
26 | <table cellspacing="0" class="table1"> |
27 | <tr> |
28 | <td style="text-align: center"> |
975f298f |
29 | <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; ?>> |
30 | <?php echo $body; ?></textarea> |
da07752d |
31 | |
32 | <?php if (checkForJavascript()) // Display text area resizing handle |
33 | |
34 | // FIXME: There should be a better way (probably best to be javascript only, although trying to avoid unnecessary js) to calculate resize_handle width to match $editor_width |
35 | //$_total_width_ = 700; |
2878b00b |
36 | echo '<div class="resize_handle" ' /* style="width: ' . ($editor_width * 8.3) . 'px; margin-left: ' . (($_total_width_ - ($editor_width * 8.3)) / 2) . 'px;" */ . 'onmousedown="startVertResizeDrag(event, document.compose.body, 40, 9000, this);"></div>'; |
da07752d |
37 | |
38 | ?> |
39 | |
40 | </td> |
41 | </tr> |
42 | <?php |
43 | if ($show_bottom_send) { |
44 | ?> |
45 | <tr> |
46 | <td class="bottomSend"> |
8949acd6 |
47 | <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"); ?>" /> |
da07752d |
48 | </td> |
49 | </tr> |
50 | <?php |
51 | } |
52 | ?> |
53 | </table> |
54 | </div> |
673e11ec |
55 | <input type="hidden" name="send_button_count" value="<?php echo unique_widget_name('send', TRUE); ?>" /> |