X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a07b6f8bccda226991ced6fe25f1c9c508e423e5..4fdb2cd8b1c8990a7ea8ed40b275dc51174e6585:/WEB-INF/lib/form/Submit.class.php diff --git a/WEB-INF/lib/form/Submit.class.php b/WEB-INF/lib/form/Submit.class.php index facfffc8..35eb6df3 100644 --- a/WEB-INF/lib/form/Submit.class.php +++ b/WEB-INF/lib/form/Submit.class.php @@ -29,30 +29,28 @@ import('form.FormElement'); class Submit extends FormElement { - var $cClassName = "Submit"; - function __construct($name,$value="") - { - $this->mName = $name; - $this->mValue = $value; - } + function __construct($name) + { + $this->class = 'Submit'; + $this->name = $name; + } - function toStringControl() { - if (!$this->isRenderable()) return ""; + function getHtml() { - 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()) { + if (!$this->isEnabled()) { $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 .= ">";