X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a07b6f8bccda226991ced6fe25f1c9c508e423e5..cb8e3de960b758147b34d8323054e7de70548619:/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 5ba79165..6822adf7 100644 --- a/WEB-INF/lib/form/Checkbox.class.php +++ b/WEB-INF/lib/form/Checkbox.class.php @@ -35,8 +35,8 @@ class Checkbox extends FormElement { function __construct($name,$value="") { - $this->mName = $name; - $this->mValue = $value; + $this->name = $name; + $this->value = $value; } function setChecked($value) { $this->mChecked = $value; } @@ -48,10 +48,10 @@ class Checkbox extends FormElement { function toStringControl() { if (!$this->isRenderable()) return ""; - if ($this->mId=="") $this->mId = $this->mName; + if ($this->id=="") $this->id = $this->name; $html = "\n\tmName\" id=\"$this->mId\""; + $html .= " name=\"$this->name\" id=\"$this->id\""; if ($this->mTabindex!="") $html .= " tabindex=\"$this->mTabindex\""; @@ -62,7 +62,7 @@ class Checkbox extends FormElement { if ($this->mStyle!="") $html .= " style=\"$this->mStyle\""; - if ($this->mChecked || (($this->mValue == $this->mOptions) && ($this->mValue != null))) + if ($this->mChecked || (($this->value == $this->mOptions) && ($this->value != null))) $html .= " checked=\"true\""; if (!$this->isEnable())