X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Flib%2Fform%2FTextArea.class.php;h=ea1009a85b1153b7615fe50efae84e85c599e421;hb=e1703495130c8ed88fe210f50a2a6b453b3c566b;hp=6b3b5ee76fbdbd912daad62db9a92d1d124a055f;hpb=cb8e3de960b758147b34d8323054e7de70548619;p=timetracker.git diff --git a/WEB-INF/lib/form/TextArea.class.php b/WEB-INF/lib/form/TextArea.class.php index 6b3b5ee7..ea1009a8 100644 --- a/WEB-INF/lib/form/TextArea.class.php +++ b/WEB-INF/lib/form/TextArea.class.php @@ -29,10 +29,10 @@ import('form.FormElement'); class TextArea extends FormElement { - var $mPassword = false; var $mColumns = ""; var $mRows = ""; - var $cClassName = "TextArea"; + var $class = 'TextArea'; + var $mOnKeyPress = ""; function __construct($name,$value="") { @@ -46,9 +46,8 @@ class TextArea extends FormElement { function setRows($value) { $this->mRows = $value; } function getRows() { return $this->mRows; } - function toStringControl() { - if (!$this->isRenderable()) return ""; - + function getHtml() { + if ($this->id=="") $this->id = $this->mName; $js_maxlen = ""; @@ -62,15 +61,15 @@ class TextArea extends FormElement { if ($this->mRows!="") $html .= " rows=\"$this->mRows\""; - if ($this->mMaxLength!="") { + if ($this->max_length!="") { if ($this->mOnKeyPress) $this->mOnKeyPress .= ";"; $this->mOnKeyPress .= "return validateMaxLenght_".$this->name."(this, event);"; $js_maxlen = $this->getExtraScript(); - $html .= " maxlength=\"$this->mMaxLength\""; + $html .= " maxlength=\"$this->max_length\""; } - if ($this->mStyle!="") - $html .= " style=\"$this->mStyle\""; + if ($this->style!="") + $html .= " style=\"$this->style\""; if ($this->mOnKeyPress) { $html .= " onkeypress=\"$this->mOnKeyPress\""; @@ -86,7 +85,7 @@ class TextArea extends FormElement { $s = "