Give back the message object to those who want it
[squirrelmail.git] / templates / default / textarea.tpl
1 <?php
2
3 /**
4 * textarea.tpl
5 *
6 * Template for constructing a textarea input tag.
7 *
8 * The following variables are available in this template:
9 * + $name - The name of the select input
10 * + $text - The initial value inside the textarea
11 * + $cols - The width of the textarea in characters
12 * + $rows - The height of the textarea in rows
13 * + $aAttribs - Any extra attributes: an associative array, where
14 * keys are attribute names, and values (which are
15 * optional and might be null) should be placed
16 * in double quotes as attribute values (optional;
17 * may not be present)
18 *
19 * @copyright 1999-2018 The SquirrelMail Project Team
20 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
21 * @version $Id$
22 * @package squirrelmail
23 * @subpackage templates
24 */
25
26
27 // retrieve the template vars
28 //
29 extract($t);
30
31 echo '<textarea name="' . $name . '" rows="' . $rows . '" cols="' . $cols . '"';
32 foreach ($aAttribs as $key => $value) {
33 echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
34 }
35 echo ">\n" . $text . "</textarea>\n";
36
37