Browse files

MDL-7861, fixing broken xhtml

  • Loading branch information...
1 parent 9d4eb06 commit 83e09b629a1e95615085b37119a93b213641ce60 toyomoyo committed Dec 21, 2006
Showing with 6 additions and 2 deletions.
  1. +6 −2 mod/quiz/editlib.php
View
8 mod/quiz/editlib.php
@@ -223,9 +223,11 @@ function quiz_print_question_list($quiz, $allowdelete=true, $showbreaks=true, $r
<img src=\"$CFG->pixpath/t/delete.gif\" border=\"0\" alt=\"$strremove\" /></a>";
}
echo '</td></tr></table></td>';
- echo '<td colspan="2">&nbsp;</td></tr>';
+ echo '<td colspan="2">&nbsp;</td>';
}
$count++;
+ // missing </tr> here, if loop is broken, need to close the </tr> from line 199/201
+ echo "</tr>";
continue;
}
$question = $questions[$qnum];
@@ -288,12 +290,14 @@ function quiz_print_question_list($quiz, $allowdelete=true, $showbreaks=true, $r
echo "<tr><td colspan=\"6\" align=\"right\">\n";
print_string('total');
+ echo "</td>";
echo ": <td align=\"left\">\n";
echo "<b>$sumgrade</b>";
echo "</td><td>&nbsp;\n</td></tr>\n";
echo "<tr><td colspan=\"6\" align=\"right\">\n";
print_string('maximumgrade');
+ echo "</td>";
echo ": <td align=\"left\">\n";
echo '<input type="text" name="maxgrade" size="2" tabindex="'.($qno+1)
.'" value="'.$quiz->grade.'" />';
@@ -303,7 +307,7 @@ function quiz_print_question_list($quiz, $allowdelete=true, $showbreaks=true, $r
echo '<div align="center"><input type="submit" value="'.get_string('savechanges').'" />';
echo '<input type="hidden" name="savechanges" value="save" /></div>';
- echo '<input type="hidden" name="savequizid" value="'.$quiz->id.'" /></div>'; // ugly hack to prevent modform session "mistakes"
+ echo '<input type="hidden" name="savequizid" value="'.$quiz->id.'" />'; // ugly hack to prevent modform session "mistakes"
print_simple_box_end();
echo "</form>\n";

0 comments on commit 83e09b6

Please sign in to comment.