print_string("category", "quiz") ?>: |
choose_from_menu($categories, "category", "$question->category", ""); ?>
|
print_string("questionname", "quiz") ?>: |
if (isset($err["name"])) formerr($err["name"]); ?>
|
print_string("question", "quiz") ?>: |
if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
echo " ";
}
print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext);
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle");
} else {
helpbutton("text", get_string("helptext"), "moodle");
}
?>
|
print_string("imagedisplay", "quiz") ?>: |
if (empty($images)) {
print_string("noimagesyet");
} else {
choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
}
?>
|
print_string("correctanswer", "quiz") ?>: |
// Even thou the rest of the module can handle up to six numerical answers,
// this form will limit the number of numerical answers to one only.
if (is_numeric($answers[0]->min) && is_numeric($answers[0]->answer)) {
$acceptederror = (float)($answers[0]->answer)
- (float)($answers[0]->min);
} else {
$acceptederror = "";
}
?>
|
print_string("acceptederror", "quiz"); ?>: |
±
|
print_string("feedback", "quiz") ?>: |
|