From 9e478026e37b67a0c29ad6dcf3d65fdc491c90d4 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 30 Apr 2009 08:51:32 +0000 Subject: TextEdit gains 'lines' attribute. --- utils/forms.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/forms.php b/utils/forms.php index 2d34861..5694c03 100644 --- a/utils/forms.php +++ b/utils/forms.php @@ -128,18 +128,19 @@ class Hidden { class TextEdit { public $label, $name, $value; - function TextEdit($label, $name, $value = "") + function TextEdit($label, $name, $value = "", $lines = "20") { $this->label = $label; $this->name = $name; $this->value = $value; + $this->lines = $lines; } function render($indent = "") { $str = $indent . "
\n"; $str .= $indent . "
". $this->label ."
\n"; - $str .= $indent . "
\n"; + $str .= $indent . "
\n"; $str .= $indent . "
\n"; return $str; } -- cgit v1.2.3