TRUEFALSE => get_string("truefalse", "quiz"),
SHORTANSWER => get_string("shortanswer", "quiz") );
-
+define("QUIZ_PICTURE_DEFAULT_HEIGHT", "200");
/// FUNCTIONS ///////////////////////////////////////////////////////////////////
}
echo text_to_html($question->questiontext);
if ($question->image) {
- print_file_picture($question->image, $courseid, 200);
+ print_file_picture($question->image, $courseid, QUIZ_PICTURE_DEFAULT_HEIGHT);
}
if ($response) {
$value = "VALUE=\"$response[0]\"";
}
echo text_to_html($question->questiontext);
if ($question->image) {
- print_file_picture($question->image, $courseid, 200);
+ print_file_picture($question->image, $courseid, QUIZ_PICTURE_DEFAULT_HEIGHT);
}
$truechecked = "";
}
echo text_to_html($question->questiontext);
if ($question->image) {
- print_file_picture($question->image, $courseid, 200);
+ print_file_picture($question->image, $courseid, QUIZ_PICTURE_DEFAULT_HEIGHT);
}
echo "<TABLE ALIGN=right>";
echo "<TR><TD valign=top>$stranswer: </TD><TD>";
echo "<B>$strquestion:</B> ";
choose_from_menu($QUIZ_QUESTION_TYPE, "qtype", "", "");
echo "<INPUT TYPE=hidden NAME=category VALUE=\"$category->id\">";
- echo "<INPUT TYPE=submit NAME=new VALUE=\"$strcreatenewquestion\">";
+ echo "<INPUT TYPE=submit VALUE=\"$strcreatenewquestion\">";
helpbutton("questiontypes", $strcreatenewquestion, "quiz");
echo "</FORM>";
echo "</CENTER>";