X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/4bfd0a6f4a7a79c4bfeaeab17b9b898b10a3d6d2..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 ba3d698c..35eb6df3 100644 --- a/WEB-INF/lib/form/Submit.class.php +++ b/WEB-INF/lib/form/Submit.class.php @@ -29,23 +29,21 @@ import('form.FormElement'); class Submit extends FormElement { - var $cClassName = "Submit"; - function __construct($name,$value="") - { - $this->name = $name; - $this->value = $value; - } + function __construct($name) + { + $this->class = 'Submit'; + $this->name = $name; + } - function toStringControl() { - if (!$this->isRenderable()) return ""; + function getHtml() { if ($this->id=="") $this->id = $this->name; $html = "\n\tname\" id=\"$this->id\""; - if (!$this->isEnable()) { + if (!$this->isEnabled()) { $html .= " disabled=\"true\""; }