X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/6e59f47d1baf9e3d420b4a368dcc005d54b6e599..785d404c84c153bda7d45d3aedfefa81985703b3:/WEB-INF/lib/form/TextArea.class.php diff --git a/WEB-INF/lib/form/TextArea.class.php b/WEB-INF/lib/form/TextArea.class.php index ecc2010b..ea1009a8 100644 --- a/WEB-INF/lib/form/TextArea.class.php +++ b/WEB-INF/lib/form/TextArea.class.php @@ -29,16 +29,15 @@ import('form.FormElement'); class TextArea extends FormElement { - var $mValue; - var $mPassword = false; var $mColumns = ""; var $mRows = ""; - var $cClassName = "TextArea"; + var $class = 'TextArea'; + var $mOnKeyPress = ""; function __construct($name,$value="") { - $this->name = $name; - $this->mValue = $value; + $this->name = $name; + $this->value = $value; } function setColumns($value) { $this->mColumns = $value; } @@ -47,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 = ""; @@ -63,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\""; @@ -87,7 +85,7 @@ class TextArea extends FormElement { $s = "