X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Flib%2Fform%2FSubmit.class.php;h=ba3d698c89b341d8e65f5da07dc3df80bf9cf299;hb=f73f9902e51376cd8fb327cb49343d3a585f5255;hp=facfffc811a05245b46724c12482da02dbe40453;hpb=a07b6f8bccda226991ced6fe25f1c9c508e423e5;p=timetracker.git diff --git a/WEB-INF/lib/form/Submit.class.php b/WEB-INF/lib/form/Submit.class.php index facfffc8..ba3d698c 100644 --- a/WEB-INF/lib/form/Submit.class.php +++ b/WEB-INF/lib/form/Submit.class.php @@ -33,26 +33,26 @@ class Submit extends FormElement { 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 .= ">";