]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed restart bug - continue now handle through POST not GET.
authorrkingdon <rkingdon>
Wed, 18 Feb 2004 12:12:12 +0000 (12:12 +0000)
committerrkingdon <rkingdon>
Wed, 18 Feb 2004 12:12:12 +0000 (12:12 +0000)
mod/lesson/view.php

index fc57d81bc335e267b370ae7d0f33a469b1dd16a6..c9484b785ea41f450628160df23385ac153d9341 100644 (file)
                     break; // only look at the latest correct attempt 
                 }
                 if ($lastpageseen != $firstpageid) {
-                    notice_yesno(get_string("youhaveseen","lesson"), 
-                        "view.php?id=$cm->id&action=navigation&pageid=$lastpageseen", 
-                        "view.php?id=$cm->id&action=navigation&pageid=$firstpageid");
+                    echo "<form name=\"queryform\" method =\"post\" action=\"view.php\">\n";
+                    echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\">\n";
+                    echo "<input type=\"hidden\" name=\"action\" value=\"navigation\">\n";
+                    echo "<input type=\"hidden\" name=\"pageid\">\n";
+                    print_simple_box("<p align=\"center\">".get_string("youhaveseen","lesson")."</p>",
+                            "center");
+                    echo "<p align=\"center\"><input type=\"button\" value=\"".get_string("yes").
+                        "\" onclick=\"document.queryform.pageid.value='$lastpageseen';document.queryform.submit();\">&nbsp;&nbsp;&nbsp;<input type=\"button\" value=\"".get_string("no").
+                        "\" onclick=\"document.queryform.pageid.value='$firstpageid';document.queryform.submit();\"></p>\n";
+                    echo "</form>\n";
                     print_footer($course);
                     exit();
                 }