Fixed some small xhtml problems and removed a warning

This commit is contained in:
gustav_delius
2006-04-08 14:20:52 +00:00
parent 2d91754b33
commit 7c404f9b2b
3 changed files with 4 additions and 2 deletions
+1
View File
@@ -615,6 +615,7 @@ function get_question_states(&$questions, $cmoptions, $attempt) {
$states[$i]->raw_grade = 0;
$states[$i]->penalty = 0;
$states[$i]->sumpenalty = 0;
$states[$i]->comment = '';
$states[$i]->responses = array('' => '');
// Prevent further changes to the session from incrementing the
// sequence number
+2 -1
View File
@@ -127,7 +127,8 @@ class question_essay_qtype extends default_questiontype {
use_html_editor($inputname);
} else {
// it is read only, so just format the students answer and output it
echo format_text($value);
echo format_text($value, $question->questiontextformat,
$formatoptions, $cmoptions->course);
echo '<input type="hidden" name="'.$inputname.'" value="'.htmlSpecialChars($value).'" />'; // need hidden one for grading
}
echo '</div>';
+1 -1
View File
@@ -17,7 +17,7 @@
}
</script>
<a name="<?php echo $question->id; ?>">
<a name="<?php echo $question->id; ?>" id="<?php echo $question->id; ?>"></a>
<div id="q<?php echo $question->id; ?>" class="que <?php echo $question->qtype; ?> clearfix">
<div class="info">
<span class="no"><?php echo $number; ?></span>