mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Clickable labels in IE6
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1151 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -68,8 +68,10 @@ function nbsp($string) {
|
||||
* @return string
|
||||
*/
|
||||
function checkbox($name, $value, $checked, $label = "", $onclick = "") {
|
||||
$return = "<input type='checkbox' name='$name' value='" . h($value) . "'" . ($checked ? " checked" : "") . ($onclick ? " onclick=\"$onclick\"" : "") . ">";
|
||||
return (strlen($label) ? "<label>$return" . h($label) . "</label>" : $return);
|
||||
static $id = 0;
|
||||
$id++;
|
||||
$return = "<input type='checkbox' name='$name' value='" . h($value) . "'" . ($checked ? " checked" : "") . ($onclick ? " onclick=\"$onclick\"" : "") . " id='checkbox-$id'>";
|
||||
return (strlen($label) ? "<label for='checkbox-$id'>$return" . h($label) . "</label>" : $return);
|
||||
}
|
||||
|
||||
/** Generate list of HTML options
|
||||
|
Reference in New Issue
Block a user