From 93394a9018a65500fa18076c78879066348c0fbe Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 7 Jan 2004 13:10:13 +0000 Subject: [PATCH] Some cleaning up of the edit screen (especially in non-quiz mode) --- mod/quiz/edit.php | 65 +++++++++++++++++++++++++---------------------- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php index 98646c1c67..7588f1d06e 100644 --- a/mod/quiz/edit.php +++ b/mod/quiz/edit.php @@ -169,39 +169,44 @@ // Print basic page layout. - echo ""; - echo "
"; - if (isset($modform->instance)) { - print_simple_box_start("CENTER", "100%", $THEME->cellcontent2); - print_heading($modform->name); - quiz_print_question_list($modform->questions, $modform->grades); - ?> -
-

 

-
destination ?>> - - "> - "> -
-
-
"; - } - print_simple_box_start("CENTER", "100%", $THEME->cellcontent2); - quiz_print_category_form($course, $modform->category); - print_simple_box_end(); - - print_spacer(5,1); + if (empty($modform->instance)) { + echo ''; + echo ''; + echo '
'; - print_simple_box_start("CENTER", "100%", $THEME->cellcontent2); - quiz_print_cat_question_list($modform->category, - isset($modform->instance)); + } else { + echo ''; + echo '"; - echo "
'; + print_simple_box_start("center", "100%", $THEME->cellcontent2); + print_heading($modform->name); + quiz_print_question_list($modform->questions, $modform->grades); + ?> +
+

 

+
destination ?>> + + "> + "> +
+
+
"; + echo '
'; + } + print_simple_box_start("center", "100%", $THEME->cellcontent2); + quiz_print_category_form($course, $modform->category); + print_simple_box_end(); + + print_spacer(5,1); + + print_simple_box_start("center", "100%", $THEME->cellcontent2); + quiz_print_cat_question_list($modform->category, + isset($modform->instance)); + print_simple_box_end(); + + echo '
'; - if (false == isset($modform->instance)) { + if (empty($modform->instance)) { print_continue("index.php?id=$modform->course"); } -- 2.39.5