X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FSubmit.class.php;h=ba3d698c89b341d8e65f5da07dc3df80bf9cf299;hb=4bfd0a6f4a7a79c4bfeaeab17b9b898b10a3d6d2;hp=2c65035e4130569b862f77d9cb0fbcb9c1e52c23;hpb=33399ff6a8bdfe9b989810dafe9c4dbf3cf3b685;p=timetracker.git diff --git a/WEB-INF/lib/form/Submit.class.php b/WEB-INF/lib/form/Submit.class.php index 2c65035e..ba3d698c 100644 --- a/WEB-INF/lib/form/Submit.class.php +++ b/WEB-INF/lib/form/Submit.class.php @@ -31,28 +31,28 @@ 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 ""; - 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 .= ">";