X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FSubmit.class.php;h=947b368d8bd5db267b488d62bcd029a321183d58;hb=ac5189157ef60820dd125400baee9f408a9ba2ea;hp=c4a2c0d629768dcef11f472cbbffec8332af9fef;hpb=cb8e3de960b758147b34d8323054e7de70548619;p=timetracker.git diff --git a/WEB-INF/lib/form/Submit.class.php b/WEB-INF/lib/form/Submit.class.php index c4a2c0d6..947b368d 100644 --- a/WEB-INF/lib/form/Submit.class.php +++ b/WEB-INF/lib/form/Submit.class.php @@ -29,7 +29,7 @@ import('form.FormElement'); class Submit extends FormElement { - var $cClassName = "Submit"; + var $class = 'Submit'; function __construct($name,$value="") { @@ -37,22 +37,21 @@ class Submit extends FormElement { $this->value = $value; } - function toStringControl() { - if (!$this->isRenderable()) return ""; + function toStringControl() { 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->value\""; - if ($this->mOnClick) { - $html .= " onclick=\"".$this->mOnClick."\""; + if ($this->on_click) { + $html .= " onclick=\"".$this->on_click."\""; } $html .= ">";