// ... print the header and...
print_header("$course->shortname: $lesson->name", "$course->fullname",
"$navigation <A HREF=index.php?id=$course->id>$strlessons</A> ->
- <A HREF=\"view.php?id=$cm->id\">$lesson->name</A> -> $action",
+ <A HREF=\"view.php?id=$cm->id\">$lesson->name</A>",
"", "", true);
//...get the action
echo "<tr><td><b>".get_string("questiontype", "lesson").":</b> \n";
choose_from_menu($LESSON_QUESTION_TYPE, "qtype", LESSON_MULTICHOICE, "");
helpbutton("questiontype", get_string("questiontype", "lesson"), "lesson");
- echo "<br /><input type=\"checkbox\" name=\"qoption\" value=\"1\"/>";
- echo " <b>".get_string("questionoption", "lesson")."</b>\n";
+ echo "<br /><b>".get_string("questionoption", "lesson").":</b>\n";
+ echo " <input type=\"checkbox\" name=\"qoption\" value=\"1\"/>";
helpbutton("questionoption", get_string("questionoption", "lesson"), "lesson");
echo "</td></tr>\n";
for ($i = 0; $i < $lesson->maxanswers; $i++) {
} else {
echo "<input type=\"checkbox\" name=\"qoption\" value=\"1\"/>";
}
- echo " <b>".get_string("morethanoneanswer", "lesson")."</b>\n";
+ echo " <b>".get_string("multianswer", "lesson")."</b>\n";
break;
}
helpbutton("questiontypes", get_string("questiontype", "lesson"), "lesson");
}
} else {
// it's a new answer
+ unset($newanswer); // need to clear id if more than one new answer is ben added
$newanswer->lessonid = $lesson->id;
$newanswer->pageid = $page->id;
$newanswer->timecreated = $timenow;
echo get_string("pagecontents", "lesson").":</b><br />\n";
print_textarea($usehtmleditor, 25, 70, 630, 400, "contents");
echo "</td></tr>\n";
+ echo "<tr><td><b>".get_string("questiontype", "lesson").":</b> \n";
+ choose_from_menu($LESSON_QUESTION_TYPE, "qtype", LESSON_MULTICHOICE, "");
+ helpbutton("questiontype", get_string("questiontype", "lesson"), "lesson");
+ echo "<br /><b>".get_string("questionoption", "lesson").":</b>\n";
+ echo " <input type=\"checkbox\" name=\"qoption\" value=\"1\"/>";
+ helpbutton("questionoption", get_string("questionoption", "lesson"), "lesson");
+ echo "</td></tr>\n";
for ($i = 0; $i < $lesson->maxanswers; $i++) {
$iplus1 = $i + 1;
echo "<tr><td><b>".get_string("answer", "lesson")." $iplus1:</b><br />\n";
break;
case LESSON_MULTICHOICE :
if ($page->qoption) {
- echo " - ".get_string("morethanoneanswer", "lesson");
+ echo " - ".get_string("multianswer", "lesson");
}
break;
case LESSON_MATCHING :