X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FSubmit.class.php;h=236fdb4bd9f2dc7a0c4eb8489ca8543768b28d6c;hb=443346587eb47046e4a5a4624bcb125c665cf615;hp=d621850b73a28eab671d66a53be133c6d08c59c8;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git diff --git a/WEB-INF/lib/form/Submit.class.php b/WEB-INF/lib/form/Submit.class.php index d621850b..236fdb4b 100644 --- a/WEB-INF/lib/form/Submit.class.php +++ b/WEB-INF/lib/form/Submit.class.php @@ -31,28 +31,27 @@ import('form.FormElement'); class Submit extends FormElement { var $cClassName = "Submit"; - function Submit($name,$value="") + function __construct($name,$value="") { - $this->mName = $name; - $this->mValue = $value; + $this->name = $name; + $this->value = $value; } - function toStringControl() { - if (!$this->isRenderable()) return ""; + function toStringControl() { - if ($this->mId=="") $this->mId = $this->mName; + if ($this->id=="") $this->id = $this->name; $html = "\n\tmName\" id=\"$this->mId\""; + $html .= " type=\"submit\" name=\"$this->name\" id=\"$this->id\""; if (!$this->isEnable()) { $html .= " disabled=\"true\""; } - $html .= " value=\"$this->mValue\""; + $html .= " value=\"$this->value\""; - if ($this->mOnClick) { - $html .= " onclick=\"".$this->mOnClick."\""; + if ($this->on_click) { + $html .= " onclick=\"".$this->on_click."\""; } $html .= ">"; @@ -60,4 +59,3 @@ class Submit extends FormElement { return $html; } } -?> \ No newline at end of file