Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix up XHTML strick breakage introduce during the fix for MDL-13478.
  • Loading branch information
tjhunt committed Aug 19, 2008
1 parent 04bd6d2 commit 4ec64b4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mod/choice/lib.php
Expand Up @@ -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>";
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 4ec64b4

Please sign in to comment.