X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/e358c96cac5953f33fec0570e68f99f61802a436..04bc6bdd39d67bcf9f63d8af4b067f1fafc06f8a:/WEB-INF/lib/form/Checkbox.class.php diff --git a/WEB-INF/lib/form/Checkbox.class.php b/WEB-INF/lib/form/Checkbox.class.php index 428d4289..6fe7ca18 100644 --- a/WEB-INF/lib/form/Checkbox.class.php +++ b/WEB-INF/lib/form/Checkbox.class.php @@ -45,24 +45,23 @@ class Checkbox extends FormElement { function setData($value) { $this->mOptions = $value; } function getData() { return $this->mOptions; } - function toStringControl() { - if (!$this->isRenderable()) return ""; - + function toStringControl() { + if ($this->id=="") $this->id = $this->name; $html = "\n\tname\" id=\"$this->id\""; - if ($this->mOnChange!="") - $html .= " onchange=\"$this->mOnChange\""; + if ($this->on_change!="") + $html .= " onchange=\"$this->on_change\""; - if ($this->mStyle!="") - $html .= " style=\"$this->mStyle\""; + if ($this->style!="") + $html .= " style=\"$this->style\""; if ($this->mChecked || (($this->value == $this->mOptions) && ($this->value != null))) $html .= " checked=\"true\""; - if (!$this->isEnable()) + if (!$this->isEnabled()) $html .= " disabled=\"disabled\""; $html .= " value=\"".htmlspecialchars($this->mOptions)."\"";