From 7ac95a718143e7de8d6c4f930d7595246db2dbea Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Fri, 22 Dec 2006 06:31:34 +0000 Subject: [PATCH] MDL-7861, fixing tags --- mod/lesson/action/addpage.php | 36 +++++++++++++++++------------------ mod/lesson/locallib.php | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/mod/lesson/action/addpage.php b/mod/lesson/action/addpage.php index 26d33678ba..c68046bdcc 100644 --- a/mod/lesson/action/addpage.php +++ b/mod/lesson/action/addpage.php @@ -40,23 +40,23 @@ } } } else { - $linkadd = "&firstpage=1"; + $linkadd = "&firstpage=1"; } // give teacher a blank proforma print_heading_with_help(get_string("addaquestionpage", "lesson"), "overview", "lesson"); ?>
- - - - + + + +
'.get_string("questiontype", "lesson").": \n"; - echo helpbutton("questiontypes", get_string("questiontype", "lesson"), "lesson")."
"; + echo helpbutton("questiontypes", get_string("questiontype", "lesson"), "lesson")."
"; lesson_qtype_menu($LESSON_QUESTION_TYPE, $qtype, - "lesson.php?id=$cm->id&action=addpage&pageid=".$pageid.$linkadd); + "lesson.php?id=$cm->id&action=addpage&pageid=".$pageid.$linkadd); if ( $qtype == LESSON_SHORTANSWER || $qtype == LESSON_MULTICHOICE ) { // only display this option for Multichoice and shortanswer echo '

'; @@ -73,7 +73,7 @@ + \n"; @@ -114,7 +114,7 @@ choose_from_menu($jump, "jumpto[0]", LESSON_NEXTPAGE, ""); helpbutton("jumpto", get_string("jump", "lesson"), "lesson"); if ($lesson->custom) { - echo get_string("score", "lesson").": "; + echo get_string("score", "lesson").": "; } echo "\n"; break; @@ -142,7 +142,7 @@ choose_from_menu($jump, "jumpto[$i]", LESSON_NEXTPAGE, ""); helpbutton("jumpto", get_string("jump", "lesson"), "lesson"); if($lesson->custom) { - echo get_string("correctanswerscore", "lesson").": "; + echo get_string("correctanswerscore", "lesson").": "; } echo "\n"; } elseif ($i == 3) { @@ -150,7 +150,7 @@ choose_from_menu($jump, "jumpto[$i]", 0, ""); helpbutton("jumpto", get_string("jump", "lesson"), "lesson"); if($lesson->custom) { - echo get_string("wronganswerscore", "lesson").": "; + echo get_string("wronganswerscore", "lesson").": "; } echo "\n"; } @@ -168,7 +168,7 @@ echo "\n"; - echo "\n"; @@ -191,7 +191,7 @@ // close table and form ?>

-
"; echo get_string("pagecontents", "lesson").":
\n"; @@ -101,9 +101,9 @@ helpbutton("jumpto", get_string("jump", "lesson"), "lesson"); if($lesson->custom) { if ($i) { - echo get_string("score", "lesson")." $iplus1: "; + echo get_string("score", "lesson")." $iplus1: "; } else { - echo get_string("score", "lesson")." $iplus1: "; + echo get_string("score", "lesson")." $iplus1: "; } } echo "
".get_string("response", "lesson")." $iplus1:
\n"; print_textarea(false, 6, 70, 630, 300, "response[$i]"); echo "
".get_string("jump", "lesson")." $iplus1: \n"; + echo "
".get_string("jump", "lesson")." $iplus1: \n"; if ($i) { // answers 2, 3, 4... jumpto this page choose_from_menu($jump, "jumpto[$i]", 0, ""); @@ -179,9 +179,9 @@ helpbutton("jumpto", get_string("jump", "lesson"), "lesson"); if($lesson->custom) { if ($i) { - echo get_string("score", "lesson")." $iplus1: "; + echo get_string("score", "lesson")." $iplus1: "; } else { - echo get_string("score", "lesson")." $iplus1: "; + echo get_string("score", "lesson")." $iplus1: "; } } echo "

- "> - "> + " /> + " />

diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index 13e78d1e32..96fd4cedd7 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -1667,7 +1667,7 @@ function lesson_qtype_menu($qtypes, $selected="", $link="", $onclick="") { $tabrows = array(); foreach ($qtypes as $qtype => $qtypename) { - $tabrows[] = new tabobject($qtype, "$link&qtype=$qtype\" onClick=\"$onclick\"", $qtypename); + $tabrows[] = new tabobject($qtype, "$link&qtype=$qtype\" onClick=\"$onclick", $qtypename); } $tabs[] = $tabrows; print_tabs($tabs, $selected); -- 2.39.5