X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/06ec4ba10585fef2bc42a70a099e6c619ae41f87..6e59f47d1baf9e3d420b4a368dcc005d54b6e599:/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 f9d850fc..759a0767 100644
--- a/WEB-INF/lib/form/CheckboxGroup.class.php
+++ b/WEB-INF/lib/form/CheckboxGroup.class.php
@@ -41,7 +41,7 @@ class CheckboxGroup extends FormElement {
function __construct($name,$value="")
{
- $this->mName = $name;
+ $this->name = $name;
$this->mValue = $value;
}
@@ -69,7 +69,7 @@ class CheckboxGroup extends FormElement {
function toStringControl() {
if (!$this->isRenderable()) return "";
- if ($this->mId=="") $this->mId = $this->mName;
+ if ($this->id=="") $this->id = $this->name;
$renderArray = array();
$renderCols = 0;
@@ -86,14 +86,14 @@ class CheckboxGroup extends FormElement {
$optkey = $optval[$this->mDataKeys[0]];
$optval = $optval[$this->mDataKeys[1]];
}
- $html = "mName[]\" id=\"$this->mId"."_".$i."\"";
+ $html = "name[]\" id=\"$this->id"."_".$i."\"";
if (is_array($this->mValue)) {
foreach ($this->mValue as $value) {
if (($value == $optkey) && ($value != null))
$html .= " checked=\"true\"";
}
}
- $html .= " value=\"".htmlspecialchars($optkey)."\"> ";
+ $html .= " value=\"".htmlspecialchars($optkey)."\"> ";
$renderArray[$col][$row] = $html;
$col++;
@@ -114,14 +114,14 @@ class CheckboxGroup extends FormElement {
$optkey = $optval[$this->mDataKeys[0]];
$optval = $optval[$this->mDataKeys[1]];
}
- $html = "mName[]\" id=\"$this->mId"."_".$i."\"";
+ $html = "name[]\" id=\"$this->id"."_".$i."\"";
if (is_array($this->mValue)) {
foreach ($this->mValue as $value) {
if (($value == $optkey) && ($value != null))
$html .= " checked=\"true\"";
}
}
- $html .= " value=\"".htmlspecialchars($optkey)."\"> ";
+ $html .= " value=\"".htmlspecialchars($optkey)."\"> ";
$renderArray[$col][$row] = $html;
$row++;