X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FSubmit.class.php;h=35eb6df3df54f9bfe5a0ea1577b0903ff79d97f0;hb=4fdb2cd8b1c8990a7ea8ed40b275dc51174e6585;hp=bcfe3be2ca28f2f290d1568871ef3cd8fd261076;hpb=6e59f47d1baf9e3d420b4a368dcc005d54b6e599;p=timetracker.git diff --git a/WEB-INF/lib/form/Submit.class.php b/WEB-INF/lib/form/Submit.class.php index bcfe3be2..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->name = $name; - $this->mValue = $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\""; } - $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 .= ">";