Fix up XHTML strick breakage introduce during the fix for MDL-13478.

This commit is contained in:
tjhunt
2008-08-19 05:17:07 +00:00
parent 04bd6d2def
commit 4ec64b4f5e
+6 -4
View File
@@ -350,11 +350,13 @@ function choice_show_results($choice, $course, $cm, $allresponses, $forcepublish
$viewresponses = has_capability('mod/choice:readresponses', $context);
switch ($forcepublish) {
case CHOICE_PUBLISH_NAMES:
echo '<div id="tablecontainer">';
echo '<form id="attemptsform" method="post" action="'.$_SERVER['PHP_SELF'].'" onsubmit="var menu = document.getElementById(\'menuaction\'); return (menu.options[menu.selectedIndex].value == \'delete\' ? \''.addslashes_js(get_string('deleteattemptcheck','quiz')).'\' : true);">';
echo '<div id="tablecontainer">';
if ($viewresponses) {
echo '<form id="attemptsform" method="post" action="'.$_SERVER['PHP_SELF'].'" onsubmit="var menu = document.getElementById(\'menuaction\'); return (menu.options[menu.selectedIndex].value == \'delete\' ? \''.addslashes(get_string('deleteattemptcheck','quiz')).'\' : true);">';
echo '<div>';
echo '<input type="hidden" name="id" value="'.$cm->id.'" />';
echo '<input type="hidden" name="mode" value="overview" />';
}
echo "<table cellpadding=\"5\" cellspacing=\"10\" class=\"results names\">";
echo "<tr>";
@@ -462,9 +464,9 @@ function choice_show_results($choice, $course, $cm, $allresponses, $forcepublish
echo '</td><td></td></tr>';
}
echo "</table>";
echo "</table></div>";
if ($viewresponses) {
echo "</div></form></div>";
echo "</form></div>";
}
break;