6 * Template for constructing a label tag.
8 * The following variables are available in this template:
9 * + $for - the ID to which the label applies (optional; may not be present)
10 * + $text - text (or other code) that goes inside the label
11 * + $aAttribs - Any extra attributes: an associative array, where
12 * keys are attribute names, and values (which are
13 * optional and might be null) should be placed
14 * in double quotes as attribute values (optional;
17 * @copyright © 1999-2006 The SquirrelMail Project Team
18 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
20 * @package squirrelmail
21 * @subpackage templates
25 // retrieve the template vars
31 if (!empty($for)) echo ' for="' . $for . '"';
32 foreach ($aAttribs as $key => $value) {
33 echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
35 echo '>' . $text . '</label>';