Added label to unlimited checkboxes.

This commit is contained in:
Andreas Burchert (scarya)
2011-03-26 21:48:02 +01:00
parent 3282736600
commit 6b99f650ca
2 changed files with 5 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ function makecheckbox($name, $title, $value, $break = false, $selvalue = NULL, $
$value = htmlspecialchars($value); $value = htmlspecialchars($value);
} }
$checkbox = '<input type="checkbox" name="' . $name . '" value="' . $value . '" ' . $checked . ' />&nbsp;' . $title; $checkbox = '<label class="nobr"><input type="checkbox" name="' . $name . '" value="' . $value . '" ' . $checked . ' />&nbsp;' . $title . '</label>';
if($break) if($break)
{ {

View File

@@ -731,3 +731,7 @@ select {
.strikethrough { .strikethrough {
text-decoration: line-through; text-decoration: line-through;
} }
label.nobr {
display: inline;
}