From 4a163300c8406450537ad99ebac49544da9dcd7a Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Mon, 8 Jan 2007 09:09:39 +0000 Subject: [PATCH] removed redundant files after formslib conversion --- question/type/multichoice/editquestion.html | 93 --------------------- question/type/multichoice/editquestion.php | 38 --------- 2 files changed, 131 deletions(-) delete mode 100644 question/type/multichoice/editquestion.html delete mode 100644 question/type/multichoice/editquestion.php diff --git a/question/type/multichoice/editquestion.html b/question/type/multichoice/editquestion.html deleted file mode 100644 index 05d62a131c..0000000000 --- a/question/type/multichoice/editquestion.html +++ /dev/null @@ -1,93 +0,0 @@ -qtype]->print_question_form_start($question, array(), $course, $usehtmleditor); -?> - - : - - single", ""); - unset($menu); - ?> - - - - : - - shuffleanswers", ""); - helpbutton("multichoiceshuffle", get_string("shuffleanswers","qtype_multichoice"), "quiz"); - ?> - - - - : - - - -fraction)) { - $answers[$i-1]->answer = ''; - $answers[$i-1]->fraction = 0; - $answers[$i-1]->feedback = ''; - } -?> - - - : - -    - fraction, ""); - ?> -
- - - - - : - - - - - - -   - - - - - : - - - - - - - : - - - - - - - : - - - - - - -   - - -qtype]->print_replacement_options($question, $course, $contextquiz); -$QTYPES[$question->qtype]->print_question_form_end($question); -?> diff --git a/question/type/multichoice/editquestion.php b/question/type/multichoice/editquestion.php deleted file mode 100644 index dc77af1b5b..0000000000 --- a/question/type/multichoice/editquestion.php +++ /dev/null @@ -1,38 +0,0 @@ -id)) { - $options = get_record("question_multichoice", "question", $question->id); - } else { - $options->single = 1; - $options->shuffleanswers = 1; - $options->correctfeedback = ''; - $options->partiallycorrectfeedback = ''; - $options->incorrectfeedback = ''; - } - if (!empty($options->answers)) { - $answersraw = get_records_list("question_answers", "id", $options->answers); - - } - - $answers = array(); - if (!empty($answersraw)) { - foreach ($answersraw as $answer) { - $answers[] = $answer; // insert answers into slots - } - } - - $i = count($answers); - $limit = QUESTION_NUMANS; - $limit = $limit <= $i ? $i+1 : $limit; - for (; $i < $limit; $i++) { - $answers[] = ""; // Make answer slots, default as blank - } - - $yesnooptions = array(); - $yesnooptions[0] = get_string("no"); - $yesnooptions[1] = get_string("yes"); - - print_heading_with_help(get_string("editingmultichoice", "qtype_multichoice"), "multichoice", "quiz"); - require("$CFG->dirroot/question/type/multichoice/editquestion.html"); - -?> -- 2.39.5