From: rkingdon Date: Fri, 12 Mar 2004 15:32:41 +0000 (+0000) Subject: Fixed Bug 1132. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f3162d71a25a30caa1b64fdfccf2907581cd8437;p=moodle.git Fixed Bug 1132. --- diff --git a/mod/lesson/lesson.php b/mod/lesson/lesson.php index 89ceee05a1..2d644a1db6 100644 --- a/mod/lesson/lesson.php +++ b/mod/lesson/lesson.php @@ -50,7 +50,7 @@ // ... print the header and... print_header("$course->shortname: $lesson->name", "$course->fullname", "$navigation id>$strlessons -> - id\">$lesson->name -> $action", + id\">$lesson->name", "", "", true); //...get the action @@ -105,8 +105,8 @@ echo "".get_string("questiontype", "lesson").": \n"; choose_from_menu($LESSON_QUESTION_TYPE, "qtype", LESSON_MULTICHOICE, ""); helpbutton("questiontype", get_string("questiontype", "lesson"), "lesson"); - echo "
"; - echo " ".get_string("questionoption", "lesson")."\n"; + echo "
".get_string("questionoption", "lesson").":\n"; + echo " "; helpbutton("questionoption", get_string("questionoption", "lesson"), "lesson"); echo "\n"; for ($i = 0; $i < $lesson->maxanswers; $i++) { @@ -641,7 +641,7 @@ } else { echo ""; } - echo " ".get_string("morethanoneanswer", "lesson")."\n"; + echo " ".get_string("multianswer", "lesson")."\n"; break; } helpbutton("questiontypes", get_string("questiontype", "lesson"), "lesson"); @@ -966,6 +966,7 @@ } } 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; diff --git a/mod/lesson/view.php b/mod/lesson/view.php index 426084f3fe..5972977cc0 100644 --- a/mod/lesson/view.php +++ b/mod/lesson/view.php @@ -364,6 +364,13 @@ echo get_string("pagecontents", "lesson").":
\n"; print_textarea($usehtmleditor, 25, 70, 630, 400, "contents"); echo "\n"; + echo "".get_string("questiontype", "lesson").": \n"; + choose_from_menu($LESSON_QUESTION_TYPE, "qtype", LESSON_MULTICHOICE, ""); + helpbutton("questiontype", get_string("questiontype", "lesson"), "lesson"); + echo "
".get_string("questionoption", "lesson").":\n"; + echo " "; + helpbutton("questionoption", get_string("questionoption", "lesson"), "lesson"); + echo "\n"; for ($i = 0; $i < $lesson->maxanswers; $i++) { $iplus1 = $i + 1; echo "".get_string("answer", "lesson")." $iplus1:
\n"; @@ -436,7 +443,7 @@ break; case LESSON_MULTICHOICE : if ($page->qoption) { - echo " - ".get_string("morethanoneanswer", "lesson"); + echo " - ".get_string("multianswer", "lesson"); } break; case LESSON_MATCHING :