Update copyright
[squirrelmail.git] / templates / default / compose_form_close.tpl
1 <?php
2 /**
3 * compose_form_close.tpl
4 *
5 * This template is intended to push the closing <form> tag to the browser
6 * along with any other elements to be added before the form is closed out.
7 *
8 * Plugins can add output before the form is closed by registering on the
9 * "template_construct_compose_form_close.tpl" hook and return an array
10 * with a single key/value pair where the key is "compose_bottom" and the
11 * value is the desired output (typically some hidden form elements or some
12 * JavaScript).
13 *
14 * The following variables are available in this template:
15 * $plugin_output array An array of extra output that may be added by plugin(s).
16 * $username string The current user's username
17 * $smaction string The form action we have just finished processing
18 * $mailbox string The mailbox currently being viewed or acted upon
19 * $querystring string The current page view's query string arguments
20 * $composesession string The current message compose session ID (internal to SM;
21 * not the same as the PHP session ID)
22 * $send_button_count string The count of the number of send buttons on this screen
23 * $user_notices array A list of notices to be displayed to the user
24 * (usually just a notice about PHP file uploads
25 * being disabled causing the attachment form not
26 * to be displayed)
27 * $attachments string A serialized string containing information about
28 * any attachments being sent with this message
29 * (when no attachments have been added, this will
30 * not be provided here)
31 *
32 * @copyright 1999-2013 The SquirrelMail Project Team
33 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
34 * @version $Id$
35 * @package squirrelmail
36 * @subpackage templates
37 */
38
39 /** extract template variables **/
40 extract($t);
41
42 /** Begin template **/
43 ?>
44 <input type="hidden" name="username" value="<?php echo $username; ?>" />
45 <input type="hidden" name="smaction" value="<?php echo $smaction; ?>" />
46 <input type="hidden" name="mailbox" value="<?php echo $mailbox; ?>" />
47 <input type="hidden" name="querystring" value="<?php echo $querystring; ?>" />
48 <input type="hidden" name="composesession" value="<?php echo $composesession; ?>" />
49 <input type="hidden" name="send_button_count" value="<?php echo $send_button_count; ?>" />
50
51 <?php if (!empty($attachments)) { ?>
52 <input type="hidden" name="attachments" value="<?php echo $attachments; ?>" />
53 <?php } ?>
54
55 <?php if (!empty($plugin_output['compose_bottom'])) echo $plugin_output['compose_bottom']; ?>
56
57 </form>
58
59 <?php if (!empty($user_notices)) foreach ($user_notices as $notice) {
60 echo '<p style="text-align:center">' . $notice . "</p>\n";
61 } ?>
62