X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FSubmit.class.php;h=35eb6df3df54f9bfe5a0ea1577b0903ff79d97f0;hb=14304210865aab4372e8e726f64d830c0a077de5;hp=236fdb4bd9f2dc7a0c4eb8489ca8543768b28d6c;hpb=5532fe6cfc2125063ff8040cfa80e20089ac64b0;p=timetracker.git diff --git a/WEB-INF/lib/form/Submit.class.php b/WEB-INF/lib/form/Submit.class.php index 236fdb4b..35eb6df3 100644 --- a/WEB-INF/lib/form/Submit.class.php +++ b/WEB-INF/lib/form/Submit.class.php @@ -29,22 +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() { + function getHtml() { if ($this->id=="") $this->id = $this->name; $html = "\n\tname\" id=\"$this->id\""; - if (!$this->isEnable()) { + if (!$this->isEnabled()) { $html .= " disabled=\"true\""; }