class = 'TextArea'; $this->name = $name; } function getHtml() { if (empty($this->id)) $this->id = $this->name; $html = "\n\tname\" id=\"$this->id\""; 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; } }