X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/6e59f47d1baf9e3d420b4a368dcc005d54b6e599..bd569da4f1d6ada00f5e48eac9716c068003748a:/WEB-INF/lib/form/CheckboxGroup.class.php diff --git a/WEB-INF/lib/form/CheckboxGroup.class.php b/WEB-INF/lib/form/CheckboxGroup.class.php index 759a0767..21a9e35c 100644 --- a/WEB-INF/lib/form/CheckboxGroup.class.php +++ b/WEB-INF/lib/form/CheckboxGroup.class.php @@ -41,8 +41,8 @@ class CheckboxGroup extends FormElement { function __construct($name,$value="") { - $this->name = $name; - $this->mValue = $value; + $this->name = $name; + $this->value = $value; } function setChecked($value) { $this->mChecked = $value; } @@ -87,9 +87,9 @@ class CheckboxGroup extends FormElement { $optval = $optval[$this->mDataKeys[1]]; } $html = "name[]\" id=\"$this->id"."_".$i."\""; - if (is_array($this->mValue)) { - foreach ($this->mValue as $value) { - if (($value == $optkey) && ($value != null)) + if (is_array($this->value)) { + foreach ($this->value as $element) { + if (($element == $optkey) && ($element != null)) $html .= " checked=\"true\""; } } @@ -115,9 +115,9 @@ class CheckboxGroup extends FormElement { $optval = $optval[$this->mDataKeys[1]]; } $html = "name[]\" id=\"$this->id"."_".$i."\""; - if (is_array($this->mValue)) { - foreach ($this->mValue as $value) { - if (($value == $optkey) && ($value != null)) + if (is_array($this->value)) { + foreach ($this->value as $element) { + if (($element == $optkey) && ($element != null)) $html .= " checked=\"true\""; } } @@ -132,7 +132,7 @@ class CheckboxGroup extends FormElement { } - $html = "\n\tmStyle."\">
\n"; + $html = "\n\tstyle."\">\n"; $html .= "
\n"; $html .= ''.$this->lSelAll.' / '.$this->lSelNone.''; $html .= "
";