MDL-11082 Improved groups upgrade performance 1.8x -> 1.9; thanks Eloy for telling...
[moodle-pu.git] / mod / lesson / action / continue.html
blob8fd055055a66252396924e2cf5f0d8cee22f7fbc
1 <?php // $Id$
2 /**
3 * HTML template for continue.php
5 * @version $Id$
6 * @package lesson
7 **/
8 ?>
10 <!-- Primary layout table -->
11 <table id="layout-table" cellpadding="0" cellspacing="0">
12 <tr>
13 <!-- First Column -->
14 <?php if (lesson_blocks_have_content($lesson, $pageblocks, BLOCK_POS_LEFT)) { ?>
15 <td id="left-column" style="width: <?php echo $leftcolumnwidth; ?>px;">
16 <?php
17 lesson_print_menu_block($cm->id, $lesson);
19 if (!empty($CFG->showblocksonmodpages)) {
20 if ((blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $PAGE->user_is_editing())) {
21 blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
25 </td>
26 <?php } ?>
27 <!-- Start Primary column -->
28 <td id="middle-column">
30 <?php if ($lesson->displayleft) { // Skip navigation anchor ?>
32 <a name="maincontent" id="maincontent" title="<?php print_string('anchortitle', 'lesson') ?>"></a>
34 <?php } ?>
36 <?php
37 // This calculates and prints the ongoing score message
38 if ($lesson->ongoing) {
39 lesson_print_ongoing_score($lesson);
43 <?php echo $feedback ?>
45 <?php if (isset($USER->modattempts[$lesson->id])) { // User is modifying attempts - save button and some instructions ?>
47 <form id="endoflesson" method ="post" action="<?php echo $CFG->wwwroot ?>/mod/lesson/view.php">
48 <input type="hidden" name="id" value="<?php echo $cm->id ?>" />
49 <input type="hidden" name="pageid" value="<?php echo LESSON_EOL; ?>" />
51 <p align="center">
52 <?php print_string("savechangesandeol", "lesson") ?>
53 </p>
54 <p align="center">
55 <?php lesson_print_submit_link(get_string('savechanges', 'lesson'), 'endoflesson'); ?>
56 </p>
57 <p align="center">
58 <?php print_string("or", "lesson") ?>
59 </p>
60 <p align="center">
61 <?php print_string("continuetoanswer", "lesson") ?>
62 </p>
64 </form>
65 <?php } ?>
67 <?php if ($lesson->review && !$correctanswer && !$noanswer && !$isessayquestion) { // Review button back ?>
69 <form id="reviewback" method ="post" action="<?php echo $CFG->wwwroot ?>/mod/lesson/view.php">
70 <input type="hidden" name="id" value="<?php echo $cm->id ?>" />
71 <input type="hidden" name="pageid" value="<?php echo $pageid; ?>" />
73 <p>
74 <?php lesson_print_submit_link(get_string('reviewquestionback', 'lesson'), 'reviewback'); ?>
75 </p>
77 </form>
79 <?php } ?>
81 <form id="pageform" method ="post" action="<?php echo $CFG->wwwroot ?>/mod/lesson/view.php">
82 <input type="hidden" name="id" value="<?php echo $cm->id ?>" />
83 <input type="hidden" name="pageid" value="<?php echo $newpageid ?>" />
85 <?php if ($lesson->review && !$correctanswer && !$noanswer && !$isessayquestion) { // Review button continue ?>
87 <p>
88 <?php lesson_print_submit_link(get_string('reviewquestioncontinue', 'lesson'), 'pageform'); ?>
89 </p>
91 <?php } else { // Normal continue button ?>
93 <p>
94 <?php lesson_print_submit_link(get_string('continue', 'lesson'), 'pageform'); ?>
95 </p>
97 <?php } ?>
99 </form>
100 </td>
101 <!-- End primary column -->
102 <?php if (lesson_blocks_have_content($lesson, $pageblocks, BLOCK_POS_RIGHT)) { ?>
103 <td id="right-column" style="width: <?php echo $rightcolumnwidth; ?>px;">
104 <!-- Third column -->
105 <?php
106 lesson_print_clock_block($cm->id, $lesson, $timer);
107 lesson_print_mediafile_block($cm->id, $lesson);
109 if (!empty($CFG->showblocksonmodpages)) {
110 if ((blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $PAGE->user_is_editing())) {
111 blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
115 </td>
116 <?php } ?>
117 </tr>
118 </table>
119 <!-- End primary layout table -->