class = 'TextArea'; $this->name = $name; } function setColumns($value) { $this->mColumns = $value; } function getColumns() { return $this->mColumns; } function setRows($value) { $this->mRows = $value; } function getRows() { return $this->mRows; } function getHtml() { if (empty($this->id)) $this->id = $this->name; $html = "\n\tname\" id=\"$this->id\""; if ($this->mColumns!="") $html .= " cols=\"$this->mColumns\""; if ($this->mRows!="") $html .= " rows=\"$this->mRows\""; if ($this->max_length!="") { if ($this->mOnKeyPress) $this->mOnKeyPress .= ";"; $this->mOnKeyPress .= "return validateMaxLenght_".$this->name."(this, event);"; $html .= " maxlength=\"$this->max_length\""; } if ($this->style!="") $html .= " style=\"$this->style\""; if ($this->mOnKeyPress) { $html .= " onkeypress=\"$this->mOnKeyPress\""; } $html .= ">".htmlspecialchars($this->getValue()).""; return $html; } }