A little more guidance on the quiz page.

This commit is contained in:
moodler 2003-05-23 15:20:41 +00:00
parent b39cadbfe7
commit 5325f8b8cf
2 changed files with 13 additions and 8 deletions

View 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";

View 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;
}