X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/33399ff6a8bdfe9b989810dafe9c4dbf3cf3b685..6e59f47d1baf9e3d420b4a368dcc005d54b6e599:/WEB-INF/lib/form/TextField.class.php diff --git a/WEB-INF/lib/form/TextField.class.php b/WEB-INF/lib/form/TextField.class.php index fdd022a9..e1259d69 100644 --- a/WEB-INF/lib/form/TextField.class.php +++ b/WEB-INF/lib/form/TextField.class.php @@ -33,9 +33,9 @@ class TextField extends FormElement { var $mPassword = false; var $cClassName = "TextField"; - function TextField($name,$value="") + function __construct($name,$value="") { - $this->mName = $name; + $this->name = $name; $this->mValue = $value; } @@ -46,14 +46,14 @@ class TextField extends FormElement { if (!$this->isRenderable()) return ""; if (!$this->isEnable()) { - $html = "mName\" value=\"".htmlspecialchars($this->getValue())."\" readonly>\n"; + $html = "name\" value=\"".htmlspecialchars($this->getValue())."\" readonly>\n"; } else { - if ($this->mId=="") $this->mId = $this->mName; + if ($this->id=="") $this->id = $this->name; $html = "\n\tmPassword ? " type=\"password\"" : " type=\"text\""); - $html .= " name=\"$this->mName\" id=\"$this->mId\""; + $html .= " name=\"$this->name\" id=\"$this->id\""; if ($this->mSize!="") $html .= " size=\"$this->mSize\"";