* change checkbox for label.

This commit is contained in:
wangyidong
2013-03-15 02:02:20 +00:00
parent 27e1603f68
commit 3d035e4610

View File

@@ -225,7 +225,7 @@ class html
$string .= "<span><input type='checkbox' name='{$name}[]' value='$key' ";
$string .= strpos($checked, ",$key,") !== false ? " checked ='checked'" : "";
$string .= $attrib;
$string .= " /> <label>$value</label></span>\n";
$string .= " id='$name$key' /> <label for='$name$key'>$value</label></span>\n";
}
return $string;
}