X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FTextArea.class.php;h=ecc2010bacd82b758fb0e9d4d4de7520b7d5b705;hb=6e59f47d1baf9e3d420b4a368dcc005d54b6e599;hp=9cfd431580463d1e32c9c096f4b44bb2665116d9;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git diff --git a/WEB-INF/lib/form/TextArea.class.php b/WEB-INF/lib/form/TextArea.class.php index 9cfd4315..ecc2010b 100644 --- a/WEB-INF/lib/form/TextArea.class.php +++ b/WEB-INF/lib/form/TextArea.class.php @@ -35,9 +35,9 @@ class TextArea extends FormElement { var $mRows = ""; var $cClassName = "TextArea"; - function TextArea($name,$value="") + function __construct($name,$value="") { - $this->mName = $name; + $this->name = $name; $this->mValue = $value; } @@ -50,12 +50,12 @@ class TextArea extends FormElement { function toStringControl() { if (!$this->isRenderable()) return ""; - if ($this->mId=="") $this->mId = $this->mName; + if ($this->id=="") $this->id = $this->mName; $js_maxlen = ""; $html = "\n\tmName\" id=\"$this->mId\""; + $html .= " name=\"$this->name\" id=\"$this->id\""; if ($this->mColumns!="") $html .= " cols=\"$this->mColumns\""; @@ -65,7 +65,7 @@ class TextArea extends FormElement { if ($this->mMaxLength!="") { if ($this->mOnKeyPress) $this->mOnKeyPress .= ";"; - $this->mOnKeyPress .= "return validateMaxLenght_".$this->mName."(this, event);"; + $this->mOnKeyPress .= "return validateMaxLenght_".$this->name."(this, event);"; $js_maxlen = $this->getExtraScript(); $html .= " maxlength=\"$this->mMaxLength\""; } @@ -86,7 +86,7 @@ class TextArea extends FormElement { function getExtraScript() { $s = "