From 6463e8a6b691850a23516c807efaf70f21265f96 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Thu, 6 Apr 2006 20:35:49 +0000 Subject: [PATCH] Fixing a large number of tidy warnings --- question/type/essay/questiontype.php | 10 +++++----- question/type/match/questiontype.php | 1 - question/type/multianswer/questiontype.php | 3 ++- question/type/multichoice/display.html | 6 ++++-- question/type/question.html | 4 +++- question/type/truefalse/display.html | 4 +--- 6 files changed, 15 insertions(+), 13 deletions(-) diff --git a/question/type/essay/questiontype.php b/question/type/essay/questiontype.php index cc8ad8a2c1..e362eee3c8 100644 --- a/question/type/essay/questiontype.php +++ b/question/type/essay/questiontype.php @@ -119,7 +119,7 @@ class question_essay_qtype extends default_questiontype { $inputname = $nameprefix; - echo "

$stranswer: ". + echo "

$stranswer:

". '
'; if (empty($options->readonly)) { // the student needs to type in their answer so print out a text editor @@ -128,9 +128,9 @@ class question_essay_qtype extends default_questiontype { } else { // it is read only, so just format the students answer and output it echo format_text($value); - echo ''; // need hidden one for grading + echo ''; // need hidden one for grading } - echo '

'; + echo ''; if (isset($state->responses['response'])) { $value = $state->responses['response']; @@ -162,14 +162,14 @@ class question_essay_qtype extends default_questiontype { choose_from_menu($gradeoptions, $nameprefix."fraction", $state->responses['fraction'],""); } else if (!empty($options->readonly)) { //read only so format the comment and print it out - echo "

$strcomment: ". + echo "

$strcomment:

". '
'; if (empty($value)) { // no comment yet echo format_text(get_string('nocommentsyet', 'quiz')); } else { echo format_text($value, '', $formatoptions, $cmoptions->course); } - echo '

'; + echo ''; } // feedback diff --git a/question/type/match/questiontype.php b/question/type/match/questiontype.php index 6538198e4e..35531ec3e4 100644 --- a/question/type/match/questiontype.php +++ b/question/type/match/questiontype.php @@ -237,7 +237,6 @@ class question_match_qtype extends default_questiontype { $image = get_question_image($question, $cmoptions->course); ///// Print the input controls ////// - echo ''; foreach ($subquestions as $key => $subquestion) { /// Subquestion text: diff --git a/question/type/multianswer/questiontype.php b/question/type/multianswer/questiontype.php index e8cee24a38..4adf038e39 100644 --- a/question/type/multianswer/questiontype.php +++ b/question/type/multianswer/questiontype.php @@ -194,6 +194,7 @@ class embedded_cloze_qtype extends default_questiontype { function print_question_formulation_and_controls(&$question, &$state, $cmoptions, $options) { global $QTYPES; $readonly = empty($options->readonly) ? '' : 'readonly="readonly"'; + $disabled = empty($options->readonly) ? '' : 'disabled="disabled"'; $formatoptions->noclean = true; $formatoptions->para = false; $nameprefix = $question->name_prefix; @@ -318,7 +319,7 @@ class embedded_cloze_qtype extends default_questiontype { ? ' selected="selected" ' : ''; $outputoptions .= ""; } - echo ""; echo $outputoptions; echo ''; break; diff --git a/question/type/multichoice/display.html b/question/type/multichoice/display.html index de4f8fcbb7..ef553d29f6 100644 --- a/question/type/multichoice/display.html +++ b/question/type/multichoice/display.html @@ -17,8 +17,10 @@ -
control; ?> +