misplaced labels
[squirrelmail.git] / templates / default / textarea.tpl
index f270adf0575310bf53ef81a90ca1d1584797096e..5176af5c610b26b8ca54249da7ccf006602a0550 100644 (file)
 //
 extract($t);
 
 //
 extract($t);
 
-
-if (isset($aAttribs['id'])) {
-    $label_open = '<label for="' . $aAttribs['id'] . '">';
-    $label_close = '</label>';
-} else {
-    $label_open = '';
-    $label_close = '';
-}
-
-
 echo '<textarea name="' . $name . '" rows="' . $rows . '" cols="' . $cols . '"';
 foreach ($aAttribs as $key => $value) {
     echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
 }
 echo '<textarea name="' . $name . '" rows="' . $rows . '" cols="' . $cols . '"';
 foreach ($aAttribs as $key => $value) {
     echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
 }
-echo '>' . $label_open . $text . $label_close . "</textarea>\n";
+echo '>' . $text . "</textarea>\n";