id AND prevpageid = 0")) { error("Move: first page not found"); } echo "
\n"; echo "\n"; while (true) { if ($page->id != $pageid) { if (!$title = trim(format_string($page->title))) { $title = "<< ".get_string("notitle", "lesson")." >>"; } echo "\n"; echo "\n"; } if ($page->nextpageid) { if (!$page = get_record("lesson_pages", "id", $page->nextpageid)) { error("Teacher view: Next page not found!"); } } else { // last page reached break; } } echo "
id&sesskey=".$USER->sesskey."&action=moveit&pageid=$pageid&after=0\">". get_string("movepagehere", "lesson")."
$title
id&sesskey=".$USER->sesskey."&action=moveit&pageid=$pageid&after={$page->id}\">". get_string("movepagehere", "lesson")."
\n"; ?>