Happy New Year
[squirrelmail.git] / templates / default / textarea.tpl
CommitLineData
b3c07fdc 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 *
c4faef33 19 * @copyright 1999-2020 The SquirrelMail Project Team
b3c07fdc 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//
29extract($t);
30
b3c07fdc 31echo '<textarea name="' . $name . '" rows="' . $rows . '" cols="' . $cols . '"';
32foreach ($aAttribs as $key => $value) {
33 echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
34}
975f298f 35echo ">\n" . $text . "</textarea>\n";
b3c07fdc 36
37