if (is_array($feedbackitems)) {
echo $OUTPUT->box_start('feedback_form');
echo '<form action="complete.php" method="post" onsubmit=" ">';
- echo '<fieldset>';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo $OUTPUT->box_start('feedback_anonymousinfo');
switch ($feedback->anonymous) {
echo '<input name="savevalues" type="submit" '.$inputvalue.' />';
}
- echo '</fieldset>';
echo '</form>';
echo $OUTPUT->box_end();
}
}
echo '<form '.$action.' method="post" onsubmit=" ">';
- echo '<fieldset>';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '<input type="hidden" name="courseid" value="'. $courseid . '" />';
echo '<button type="submit">'.get_string('cancel').'</button>';
- echo '</fieldset>';
echo '</form>';
echo $OUTPUT->box_end();
$SESSION->feedback->is_started = true;
if (is_array($feedbackitems)) {
echo $OUTPUT->box_start('feedback_form');
echo '<form action="complete_guest.php" method="post" onsubmit=" ">';
- echo '<fieldset>';
echo '<input type="hidden" name="anonymous" value="0" />';
$inputvalue = 'value="'.FEEDBACK_ANONYMOUS_YES.'"';
echo '<input type="hidden" name="anonymous_response" '.$inputvalue.' />';
echo '<input name="savevalues" type="submit" '.$inputvalue.' />';
}
- echo '</fieldset>';
echo '</form>';
echo $OUTPUT->box_end();
}
}
echo '<form '.$action.' method="post" onsubmit=" ">';
- echo '<fieldset>';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '<input type="hidden" name="courseid" value="'. $courseid . '" />';
echo '<button type="submit">'.get_string('cancel').'</button>';
- echo '</fieldset>';
echo '</form>';
echo $OUTPUT->box_end();
$SESSION->feedback->is_started = true;
echo '<div class="feedback_item_presentation_'.$align.'">';
$index = 1;
$checked = '';
- echo '<ul>';
+ if ($info->subtype == 'r' || $info->subtype == 'c') {
+ // if (r)adio buttons or (c)heckboxes
+ echo '<fieldset>';
+ echo '<ul>';
+ }
+
if ($info->horizontal) {
$hv = 'h';
} else {
$this->print_item_dropdown($presentation, $item, false, $info, $align);
break;
}
- echo '</ul>';
+ if ($info->subtype == 'r' || $info->subtype == 'c') {
+ // if (r)adio buttons or (c)heckboxes
+ echo '</ul>';
+ echo '</fieldset>';
+ }
echo '</div>';
}
//print the presentation
echo '<div class="feedback_item_presentation_'.$align.$highlight.'">';
- echo '<ul>';
+ if ($info->subtype == 'r' || $info->subtype == 'c') {
+ // if (r)adio buttons or (c)heckboxes
+ echo '<fieldset>';
+ echo '<ul>';
+ }
if ($info->horizontal) {
$hv = 'h';
} else {
$this->print_item_dropdown($presentation, $item, $value, $info, $align);
break;
}
- echo '</ul>';
+ if ($info->subtype == 'r' || $info->subtype == 'c') {
+ // if (r)adio buttons or (c)heckboxes
+ echo '</ul>';
+ echo '</fieldset>';
+ }
echo '</div>';
}
}
?>
- <li class="feedback_item_select_<?php echo $hv.'_'.$align;?>">
- <label class="accesshide" for="<?php echo $item->typ .'_' . $item->id;?>"><?php echo $item->name; ?></label>
+ <div class="feedback_item_select_<?php echo $hv.'_'.$align;?>">
<select id="<?php echo $item->typ .'_' . $item->id;?>" name="<?php echo $item->typ .'_' . $item->id;?>[]" size="1">
<option value="0"> </option>
<?php
}
?>
</select>
- </li>
+ </div>
<?php
}
} else {
$hv = 'v';
}
+ echo '<fieldset>';
echo '<ul>';
if (!$this->hidenoselect($item)) {
?>
$index++;
}
echo '</ul>';
+ echo '</fieldset>';
}
private function print_item_dropdown($item, $value, $info, $align, $showrating, $lines) {
} else {
$hv = 'v';
}
- echo '<ul>';
?>
- <li class="feedback_item_select_<?php echo $hv.'_'.$align;?>">
- <label class="accesshide" for="<?php echo $item->typ.'_'.$item->id;?>"><?php echo $item->name; ?></label>
+ <div class="feedback_item_select_<?php echo $hv.'_'.$align;?>">
<select id="<?php echo $item->typ.'_'.$item->id;?>" name="<?php echo $item->typ.'_'.$item->id;?>">
<option value="0"> </option>
<?php
}
?>
</select>
- </li>
+ </div>
<?php
- echo '</ul>';
}
public function prepare_presentation_values($linesep1,
li.feedback_item_check_h_left,
li.feedback_item_check_h_right,
-li.feedback_item_select_h_left,
-li.feedback_item_select_h_right,
li.feedback_item_radio_h_left,
-li.feedback_item_radio_h_right{
+li.feedback_item_radio_h_right {
list-style-type:none;
display:inline;
}
+div.feedback_item_select_h_left,
+div.feedback_item_select_h_right {
+ display:block;
+}
+
li.feedback_item_check_v_left,
li.feedback_item_check_v_right,
-li.feedback_item_select_v_left,
-li.feedback_item_select_v_right,
li.feedback_item_radio_v_left,
-li.feedback_item_radio_v_right{
+li.feedback_item_radio_v_right {
list-style-type:none;
display:block;
}
+div.feedback_item_select_v_left,
+div.feedback_item_select_v_right {
+ display:block;
+}
+
div.feedback_items label{
display: inline;
}