]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-7861, broken xhtml
authortoyomoyo <toyomoyo>
Thu, 21 Dec 2006 07:50:19 +0000 (07:50 +0000)
committertoyomoyo <toyomoyo>
Thu, 21 Dec 2006 07:50:19 +0000 (07:50 +0000)
mod/choice/lib.php

index b74958b4cf65f0e1546524577bd3461abd7672e4..969064d75d62bc5673c07a5a4b332df647f5e1e3 100644 (file)
@@ -397,7 +397,7 @@ function choice_show_results($choice, $course, $cm, $forcepublish='') {
                     if (!($optionid==0 && has_capability('mod/choice:readresponses', $context, $user->id))) { // make sure admins and hidden teachers are not shown in not answered yet column.
                         echo "<tr>";
                         if (has_capability('mod/choice:readresponses', $context) && $optionid!=0) {
-                            echo '<td width=\"5\" nowrap=\"nowrap\"><input type="checkbox" name="attemptid[]" value="'. $answers[$user->id]->id. '" /></td>';
+                            echo '<td width="5" nowrap="nowrap"><input type="checkbox" name="attemptid[]" value="'. $answers[$user->id]->id. '" /></td>';
                         }
                         echo "<td width=\"10\" nowrap=\"nowrap\" class=\"picture\">";
                         print_user_picture($user->id, $course->id, $user->picture);
@@ -440,11 +440,11 @@ function choice_show_results($choice, $course, $cm, $forcepublish='') {
                 echo "</td>";
                 $count++;
             }
+            echo "</tr>";
 
             /// Print "Select all" etc.
             if (has_capability('mod/choice:readresponses', $context)) {
-                echo '<tr><td><p>';
-                echo '<tr><td>';
+                echo '<tr><td></td><td>';
                 echo '<a href="javascript:select_all_in(\'DIV\',null,\'tablecontainer\');">'.get_string('selectall', 'quiz').'</a> / ';
                 echo '<a href="javascript:deselect_all_in(\'DIV\',null,\'tablecontainer\');">'.get_string('selectnone', 'quiz').'</a> ';
                 echo '&nbsp;&nbsp;';
@@ -453,10 +453,10 @@ function choice_show_results($choice, $course, $cm, $forcepublish='') {
                 echo '<noscript id="noscriptmenuaction" style="display: inline;">';
                 echo '<input type="submit" value="'.get_string('go').'" /></noscript>';
                 echo '<script type="text/javascript">'."\n<!--\n".'document.getElementById("noscriptmenuaction").style.display = "none";'."\n-->\n".'</script>';
-                echo '</p></td></tr>';
+                echo '</td><td></td></tr>';
             }
 
-            echo "</tr></table>";
+            echo "</table>";
             if (has_capability('mod/choice:readresponses', $context)) {
                 echo "</form></div>";
             }