Move HTML output from compose.php to templates. Also fixes broken send functionality...
[squirrelmail.git] / templates / default / compose_body.tpl
CommitLineData
762853f4 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
762853f4 10 *
11 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id$
14 * @package squirrelmail
15 * @subpackage templates
16 */
17
18/** add required includes **/
19
20/** extract template variables **/
21extract($t);
22
23/** Begin template **/
24?>
25<div class="compose">
26<table cellspacing="0" class="table1">
27 <tr>
28 <td style="text-align: center">
8949acd6 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; ?>><?php echo $body; ?></textarea>
762853f4 30 </td>
31 </tr>
32 <?php
33 if ($show_bottom_send) {
34 ?>
35 <tr>
36 <td class="bottomSend">
8949acd6 37 <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"); ?>" />
762853f4 38 </td>
39 </tr>
40 <?php
41 }
42 ?>
43</table>
61bd57f5 44</div>