From 29fb5974e7ea1c4401ec1e4f80496183db1426b2 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 10 Jan 2004 07:39:19 +0000 Subject: [PATCH] Increased QUIZ_MAX_NUMBER_ANSWERS to 10, and actually made it apply to everythin --- mod/quiz/lib.php | 2 +- mod/quiz/multichoice.html | 115 ++++---------------------------------- mod/quiz/shortanswer.html | 92 ++++-------------------------- 3 files changed, 21 insertions(+), 188 deletions(-) diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index 94b9435be9..08b915e5b2 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -38,7 +38,7 @@ $QUIZ_QUESTION_TYPE = array ( MULTICHOICE => get_string("multichoice", "quiz") define("QUIZ_PICTURE_MAX_HEIGHT", "600"); // Not currently implemented define("QUIZ_PICTURE_MAX_WIDTH", "600"); // Not currently implemented -define("QUIZ_MAX_NUMBER_ANSWERS", "8"); +define("QUIZ_MAX_NUMBER_ANSWERS", "10"); /// FUNCTIONS /////////////////////////////////////////////////////////////////// diff --git a/mod/quiz/multichoice.html b/mod/quiz/multichoice.html index 6886f7d6f1..a865a1454f 100644 --- a/mod/quiz/multichoice.html +++ b/mod/quiz/multichoice.html @@ -59,105 +59,23 @@ - - -

1:

- -    - fraction, ""); ?> -
- - - -

:

- - - - - - -   - - - -

2:

- -    - fraction, ""); ?> -
- - - -

:

- - - - - - -   - - - -

3:

- -    - fraction, ""); ?> -
- - - -

:

- - - - - - -   - - - -

4:

- -    - fraction, ""); ?> -
- - - -

:

- - - - - - -   - - + -

5:

+

:

-    +    fraction, ""); ?> + choose_from_menu($gradeoptionsfull, "fraction[]", $answers[$i-1]->fraction, ""); ?>

:

- + @@ -165,22 +83,9 @@   - -

6:

- -    - fraction, ""); ?> -
- - - -

:

- - - - + diff --git a/mod/quiz/shortanswer.html b/mod/quiz/shortanswer.html index 1b60777923..867f198474 100644 --- a/mod/quiz/shortanswer.html +++ b/mod/quiz/shortanswer.html @@ -59,83 +59,24 @@ - -

1:

- -    - fraction,""); ?> -
- - - -

:

- - - - - - -   - - - -

2:

- -    - fraction,""); ?> -
- - - -

:

- - - - - - -   - - - -

3:

- -    - fraction,""); ?> -
- - - -

:

- - - - - - -   - + -

4:

+

:

-    +    fraction,""); ?> + choose_from_menu($gradeoptions, "fraction[]", $answers[$i-1]->fraction,""); ?>

:

- + @@ -143,22 +84,9 @@   - -

5:

- -    - fraction,""); ?> -
- - - -

:

- - - - + -- 2.39.5