]> git.mjollnir.org Git - moodle.git/commitdiff
A little more guidance on the quiz page.
authormoodler <moodler>
Fri, 23 May 2003 15:20:41 +0000 (15:20 +0000)
committermoodler <moodler>
Fri, 23 May 2003 15:20:41 +0000 (15:20 +0000)
lang/en/quiz.php
mod/quiz/lib.php

index bd893244384e03e57530107dcdc1cd34b49bd610..e6149037adf17a8d518e52c8d26b85c4cad6d55e 100644 (file)
@@ -6,6 +6,7 @@ $string['modulenameplural'] = "Quizzes";
 #------------------------------------------------------------
 
 $string['addquestions'] = "Add questions";
+$string['addingquestions'] = "This side of the page is where you manage your database of questions.  Questions are stored in categories to help you keep them organised, and can be used by any quiz in your course or even other courses if you choose to 'publish' them. <br /><br />After you select or create a question category you will be able to create or edit questions.  You can select any of these questions to add to your quiz over on the other side of this page.";
 $string['addquestionstoquiz'] = "Add questions to current quiz";
 $string['addselectedtoquiz'] = "Add selected to quiz";
 $string['allowreview'] = "Allow review";
index 4489242640a79777e5e5fcb2529af5f8e5d81f05..dadd39d3ec3766b6c671b257ed10fb1a3d6b4e3a 100644 (file)
@@ -33,7 +33,8 @@ $QUIZ_FILE_FORMAT = array ( "custom"   => get_string("custom", "quiz"),
                             "aon" => "AON"
                             );
 
-define("QUIZ_PICTURE_DEFAULT_HEIGHT", "200");
+define("QUIZ_PICTURE_MAX_HEIGHT", "600");   // Not currently implemented
+define("QUIZ_PICTURE_MAX_WIDTH",  "600");   // Not currently implemented
 
 define("QUIZ_MAX_NUMBER_ANSWERS", "8");
 
@@ -421,7 +422,7 @@ function quiz_print_question($number, $question, $grade, $courseid,
            }
            echo text_to_html($question->questiontext);
            if ($question->image) {
-               print_file_picture($question->image, $courseid, QUIZ_PICTURE_DEFAULT_HEIGHT);
+               print_file_picture($question->image, $courseid);
            }
            if ($response) {
                $value = "VALUE=\"$response[0]\"";
@@ -456,7 +457,7 @@ function quiz_print_question($number, $question, $grade, $courseid,
            }
            echo text_to_html($question->questiontext);
            if ($question->image) {
-               print_file_picture($question->image, $courseid, QUIZ_PICTURE_DEFAULT_HEIGHT);
+               print_file_picture($question->image, $courseid);
            }
 
            $truechecked = "";
@@ -501,7 +502,7 @@ function quiz_print_question($number, $question, $grade, $courseid,
            }
            echo text_to_html($question->questiontext);
            if ($question->image) {
-               print_file_picture($question->image, $courseid, QUIZ_PICTURE_DEFAULT_HEIGHT);
+               print_file_picture($question->image, $courseid);
            }
            echo "<TABLE ALIGN=right>";
            echo "<TR><TD valign=top>$stranswer:&nbsp;&nbsp;</TD><TD>";
@@ -557,7 +558,7 @@ function quiz_print_question($number, $question, $grade, $courseid,
                echo text_to_html($question->questiontext);
            }
            if (!empty($question->image)) {
-               print_file_picture($question->image, $courseid, QUIZ_PICTURE_DEFAULT_HEIGHT);
+               print_file_picture($question->image, $courseid);
            }
 
            if ($shuffleanswers) {
@@ -607,7 +608,7 @@ function quiz_print_question($number, $question, $grade, $courseid,
            }
            echo text_to_html($question->questiontext);
            if ($question->image) {
-               print_file_picture($question->image, $courseid, QUIZ_PICTURE_DEFAULT_HEIGHT);
+               print_file_picture($question->image, $courseid);
            }
 
            /// First, get all the questions available
@@ -1066,9 +1067,12 @@ function quiz_print_cat_question_list($categoryid) {
     $strcreatemultiple = get_string("createmultiple", "quiz");
 
     if (!$categoryid) {
-        echo "<P align=center>";
+        echo "<p align=center><b>";
         print_string("selectcategoryabove", "quiz");
-        echo "</P>";
+        echo "</b></p>";
+        echo "<p>";
+        print_string("addingquestions", "quiz");
+        echo "</p>";
         return;
     }