<?php

/**
  * textarea.tpl
  *
  * Template for constructing a textarea input tag.
  *
  * The following variables are available in this template:
  *      + $name     - The name of the select input
  *      + $text     - The initial value inside the textarea
  *      + $cols     - The width of the textarea in characters
  *      + $rows     - The height of the textarea in rows
  *      + $aAttribs - Any extra attributes: an associative array, where
  *                    keys are attribute names, and values (which are
  *                    optional and might be null) should be placed
  *                    in double quotes as attribute values (optional;
  *                    may not be present)
  *
  * @copyright 1999-2011 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id: textarea.tpl 14085 2011-01-06 03:16:21Z pdontthink $
  * @package squirrelmail
  * @subpackage templates
  */


// retrieve the template vars
//
extract($t);

echo '<textarea name="' . $name . '" rows="' . $rows . '" cols="' . $cols . '"';
foreach ($aAttribs as $key => $value) {
    echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
}
echo '>' . $text . "</textarea>\n";


