From dc511e9fdb9c24f1566389cc3aeb10e1aadf689e Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sun, 26 Dec 2004 16:09:12 +0000 Subject: [PATCH] removed php notice and fixed line endings --- .../multichoice/multichoice.html | 284 ++++++------------ 1 file changed, 85 insertions(+), 199 deletions(-) diff --git a/mod/quiz/questiontypes/multichoice/multichoice.html b/mod/quiz/questiontypes/multichoice/multichoice.html index 3ca8b1dd89..5095ee72d6 100644 --- a/mod/quiz/questiontypes/multichoice/multichoice.html +++ b/mod/quiz/questiontypes/multichoice/multichoice.html @@ -1,248 +1,134 @@ +single)) { + $options->single = 1; + } +?>
-
- - - + - - - - - - + + + - - - - - - + + + - - - - - - + + + - - - - - - + + + - - - - - - - - + + + + + - - - - - - -fraction)) { - - $answers[$i-1]->answer = ''; - - $answers[$i-1]->fraction = 0; - - $answers[$i-1]->feedback = ''; - - } - + if (!isset($answers[$i-1]->fraction)) { + $answers[$i-1]->answer = ''; + $answers[$i-1]->fraction = 0; + $answers[$i-1]->feedback = ''; + } ?> - - + - - - - - - + + + - - - - - - - - + + + - - - - +
: - - id, true, true, $question->category); ?> - + id, true, true, $question->category); ?>
: - - " /> - - - + " /> +
: - -
- -
- -
- - - -

+ - - - + ?> +
- - "; - - } - - - - print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext); - - - - if ($usehtmleditor) { - - echo ''; - - } else { - - echo "
"; - - print_string("formattexttype"); - - echo ": "; - - if (!isset($question->questiontextformat)) { - - $question->questiontextformat = FORMAT_MOODLE; - - } - - choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, ""); - - helpbutton("textformat", get_string("helpformatting")); - - echo "
"; - - } - - ?> - + "; + } + print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext); + if ($usehtmleditor) { + echo ''; + } else { + echo "
"; + print_string("formattexttype"); + echo ": "; + if (!isset($question->questiontextformat)) { + $question->questiontextformat = FORMAT_MOODLE; + } + choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, ""); + helpbutton("textformat", get_string("helpformatting")); + echo "
"; + } + ?>
: - - image", get_string("none"),"",""); - - } - - ?> - + image", get_string("none"),"",""); + } + ?>
: - - single", ""); - - unset($menu); - - ?> - + single", ""); + unset($menu); + ?>
:
- -
: - - "/>   - - fraction, ""); ?> - -
- + "/>   + fraction, ""); + ?> +
: - - - +
 
- - - - - " /> - - -
-
-- 2.39.5