<?php // $Id: continue.html,v 1.12 2007/01/06 19:23:02 skodak Exp $
/**
 * HTML template for continue.php
 *
 * @version $Id: continue.html,v 1.12 2007/01/06 19:23:02 skodak Exp $
 * @package lesson
 **/
?>

<!-- Primary layout table -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr valign="top">
        <!-- First Column -->
        <td valign="top">
            <?php print_menu_block($cm->id, $lesson); ?>
        </td>
        <!-- Start Primary column -->
        <td align="center" width="100%">
    
<?php if ($lesson->displayleft) { // Skip navigation anchor ?>
        
        <a name="maincontent" id="maincontent" title="<?php print_string('anchortitle', 'lesson') ?>"></a>
        
<?php } ?>

<?php
    // This calculates and prints the ongoing score message
    if ($lesson->ongoing) {
        lesson_print_ongoing_score($lesson);
    }
?>

            <table border="0" align="center">
                <tr>
                    <td class="c0"><?php echo $feedback ?></td>
                </tr>
            </table>

<?php if (isset($USER->modattempts[$lesson->id])) { // User is modifying attempts - save button and some instructions ?>

            <form id="endoflesson" method ="post" action="<?php echo $CFG->wwwroot ?>/mod/lesson/view.php">
            <input type="hidden" name="id" value="<?php echo $cm->id ?>" />
            <input type="hidden" name="pageid" value="<?php echo LESSON_EOL; ?>" />
    
            <p align="center">
                <?php print_string("savechangesandeol", "lesson") ?>
            </p>
            <p align="center">
                <?php lesson_print_submit_link(get_string('savechanges', 'lesson'), 'endoflesson'); ?>
            </p>
            <p align="center">
                <?php print_string("or", "lesson") ?>
            </p>
            <p align="center">
                <?php print_string("continuetoanswer", "lesson") ?>
            </p>
    
            </form>
<?php } ?>

<?php if ($lesson->review && !$correctanswer && !$noanswer && !$isessayquestion) { // Review button back ?>
    
            <form id="reviewback" method ="post" action="<?php echo $CFG->wwwroot ?>/mod/lesson/view.php">
            <input type="hidden" name="id" value="<?php echo $cm->id ?>" />
            <input type="hidden" name="pageid" value="<?php echo $pageid; ?>" />
    
            <p>
                <?php lesson_print_submit_link(get_string('reviewquestionback', 'lesson'), 'reviewback'); ?>
            </p>
    
            </form>
            
<?php } ?>

            <form id="pageform" method ="post" action="<?php echo $CFG->wwwroot ?>/mod/lesson/view.php">
            <input type="hidden" name="id" value="<?php echo $cm->id ?>" />
            <input type="hidden" name="pageid" value="<?php echo $newpageid ?>" />

<?php if ($lesson->review && !$correctanswer && !$noanswer && !$isessayquestion) { // Review button continue ?>

            <p>
                <?php lesson_print_submit_link(get_string('reviewquestioncontinue', 'lesson'), 'pageform'); ?>
            </p>

<?php } else { // Normal continue button ?>

            <p>
                <?php lesson_print_submit_link(get_string('continue', 'lesson'), 'pageform'); ?>
            </p>

<?php } ?>

            </form>
        </td>
        <!-- End primary column -->
        <td>
            <!-- Third column -->
            <?php print_clock_block($cm->id, $lesson, $timer); ?>
            <?php print_mediafile_block($cm->id, $lesson); // If there is one ?>
        </td>
    </tr>
</table>
<!-- End primary layout table -->