From ee930c461d121c61684da4256304e8c688773a3d Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Fri, 18 Feb 2005 17:20:06 +0000 Subject: [PATCH] made appearance of quiz setup page look like the resource setup pages, see bug 2587. Also added the new variable quiz_questionsperpage properly. --- mod/quiz/config.html | 20 ++++++ mod/quiz/defaults.php | 2 + mod/quiz/mod.html | 142 +++++++++++++++++++++++++----------------- mod/quiz/version.php | 2 +- 4 files changed, 107 insertions(+), 59 deletions(-) diff --git a/mod/quiz/config.html b/mod/quiz/config.html index 9db2e6835b4..efc9ef52c29 100644 --- a/mod/quiz/config.html +++ b/mod/quiz/config.html @@ -101,6 +101,26 @@ + + : + + quiz_questionsperpage, ''); + helpbutton('questionsperpage', get_string('questionsperpage'), 'quiz'); + ?> + + + + quiz_fix_questionsperpage ? "checked" : "") ?> /> + + + : diff --git a/mod/quiz/defaults.php b/mod/quiz/defaults.php index 1ece406c5c5..79453c56f88 100644 --- a/mod/quiz/defaults.php +++ b/mod/quiz/defaults.php @@ -12,6 +12,7 @@ 'quiz_maximumgrade' => 0, 'quiz_password' => '', 'quiz_popup' => 0, + 'quiz_questionsperpage' => 0, 'quiz_showanswer' => '', 'quiz_showfeedback' => '', 'quiz_shuffleanswers' => 1, @@ -27,6 +28,7 @@ 'quiz_fix_maximumgrade' => 0, 'quiz_fix_password' => 0, 'quiz_fix_popup' => 0, + 'quiz_fix_questionsperpage' => 0, 'quiz_fix_showanswer' => 0, 'quiz_fix_showfeedback' => 0, 'quiz_fix_shuffleanswers' => 0, diff --git a/mod/quiz/mod.html b/mod/quiz/mod.html index bea8a845aff..9fc1b3e3774 100644 --- a/mod/quiz/mod.html +++ b/mod/quiz/mod.html @@ -194,23 +194,25 @@ ?> - + - - : - - questionsperpage, ''); - helpbutton('questionsperpage', get_string('questionsperpage'), 'quiz'); - ?> - - +quiz_fix_questionsperpage) { ?> + + : + + questionsperpage, ''); + helpbutton('questionsperpage', get_string('questionsperpage'), 'quiz'); + ?> + + + quiz_fix_shufflequestions) { ?> @@ -222,7 +224,7 @@ ?> - + quiz_fix_shuffleanswers) { ?> @@ -234,7 +236,7 @@ ?> - + quiz_fix_attempts) { ?> @@ -246,7 +248,7 @@ ?> - + quiz_fix_attemptonlast) { ?> @@ -261,7 +263,7 @@ ?> - + quiz_fix_grademethod) { ?> @@ -273,7 +275,7 @@ ?> - + quiz_fix_decimalpoints) { ?> @@ -290,7 +292,7 @@ ?> - + quiz_fix_showfeedback) { ?> @@ -302,7 +304,7 @@ ?> - + quiz_fix_showanswer) { ?> @@ -314,7 +316,7 @@ ?> - + quiz_fix_allowreview) { ?> @@ -326,7 +328,7 @@ ?> - + quiz_fix_maximumgrade) { ?> @@ -338,7 +340,7 @@ ?> - + quiz_fix_popup) { ?> @@ -350,7 +352,7 @@ ?> - + quiz_fix_password) { ?> @@ -360,7 +362,7 @@ - + quiz_fix_subnet) { ?> @@ -370,24 +372,36 @@ - + + - + + + +
+ + : + + + +
+ + + + +
- + -
- -quiz_fix_timelimit) { $fix = 1; ?> +quiz_fix_timelimit) { ?> -quiz_fix_shufflequestions) { $fix = 1; ?> +quiz_fix_questionsperpage) { ?> + + + + + + +quiz_fix_shufflequestions) { ?> -quiz_fix_shuffleanswers) { $fix = 1; ?> +quiz_fix_shuffleanswers) { ?> -quiz_fix_attempts) { $fix = 1; ?> +quiz_fix_attempts) { ?> -quiz_fix_attemptonlast) { $fix = 1; ?> +quiz_fix_attemptonlast) { ?> -quiz_fix_grademethod) { $fix = 1; ?> +quiz_fix_grademethod) { ?> -quiz_fix_showfeedback) { $fix = 1; ?> +quiz_fix_showfeedback) { ?> -quiz_fix_showanswer) { $fix = 1; ?> +quiz_fix_showanswer) { ?> -quiz_fix_allowreview) { $fix = 1; ?> +quiz_fix_allowreview) { ?> -quiz_fix_maximumgrade) { $fix = 1; ?> +quiz_fix_maximumgrade) { ?> -quiz_fix_popup) { $fix = 1; ?> +quiz_fix_popup) { ?> -quiz_fix_password) { $fix = 1; ?> +quiz_fix_password) { ?> -quiz_fix_subnet) { $fix = 1; ?> +quiz_fix_subnet) { ?>
: @@ -399,7 +413,25 @@
: + questionsperpage, ''); + helpbutton('questionsperpage', get_string('questionsperpage'), 'quiz'); + ?> +
: @@ -411,7 +443,7 @@
: @@ -423,7 +455,7 @@
: @@ -435,7 +467,7 @@
: @@ -450,7 +482,7 @@
: @@ -462,7 +494,7 @@
: @@ -474,7 +506,7 @@
: @@ -486,7 +518,7 @@
: @@ -498,7 +530,7 @@
: @@ -510,7 +542,7 @@
: @@ -522,7 +554,7 @@
: @@ -532,7 +564,7 @@
: @@ -544,20 +576,14 @@
-
+ - - - - -
- - + + + +
diff --git a/mod/quiz/version.php b/mod/quiz/version.php index 06cbf8178db..f00403e5464 100644 --- a/mod/quiz/version.php +++ b/mod/quiz/version.php @@ -5,7 +5,7 @@ // This fragment is called by moodle_needs_upgrading() and /admin/index.php //////////////////////////////////////////////////////////////////////////////// -$module->version = 2005021600; // The (date) version of this module +$module->version = 2005021601; // The (date) version of this module $module->requires = 2005021600; // Requires this Moodle version $module->cron = 0; // How often should cron check this module (seconds)?