foreach ($option['options'] as $opt) {
if ($opt->type != SMOPT_TYPE_HIDDEN) {
echo "<tr>\n" .
- " <td class=\"optionName\">\n" .
- " ".$opt->caption."\n" .
- " </td>\n" .
+ " <td class=\"optionName\">\n ";
+
+//FIXME: use the following two lines instead if we make the default boolean type checkbox
+ //if ($opt->type == SMOPT_TYPE_BOOLEAN_CHECKBOX
+ // || $opt->type == SMOPT_TYPE_BOOLEAN) {
+ if ($opt->type == SMOPT_TYPE_BOOLEAN_CHECKBOX) {
+ echo '<label for="new_' . $opt->name . '">'
+ . $opt->caption . '</label>';
+ } else {
+ echo $opt->caption;
+ }
+
+ echo "\n </td>\n" .
" <td class=\"optionValue\">\n" .
" ".$opt->createWidget()."\n" .
" </td>\n" .