61 lines
2.0 KiB
HTML
61 lines
2.0 KiB
HTML
<?php // $Id$
|
|
/**
|
|
* Start of the HTML template for viewing pages
|
|
*
|
|
* @version $Id$
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
|
* @package lesson
|
|
**/
|
|
?>
|
|
<!-- Start view start -->
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
|
<tr valign="top">
|
|
|
|
<?php
|
|
if ($lesson->displayleft) {
|
|
// Displaying left menu
|
|
if($firstpageid = get_field('lesson_pages', 'id', 'lessonid', $lesson->id, 'prevpageid', 0)) { ?>
|
|
|
|
<td valign="top">
|
|
<a href="#maincontent" class="skip"><?php print_string('skip', 'lesson') ?></a>
|
|
<div class="leftmenu_container">
|
|
<div class="leftmenu_title"><?php print_string('lessonmenu', 'lesson') ?></div>
|
|
<div class="leftmenu_courselink">
|
|
<a href="<?php echo "$CFG->wwwroot/course/view.php?id=$course->id"; ?>"><?php print_string("mainmenu", "lesson") ?></a>
|
|
</div>
|
|
<div class="leftmenu_links">
|
|
<?php lesson_print_tree_menu($lesson->id, $firstpageid, $cm->id) ?>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
|
|
<?php
|
|
} // End if($firstpageid = get...
|
|
} // End if ($lesson->displayleft)
|
|
?>
|
|
<!-- Start main column -->
|
|
<td width="100%" align="center">
|
|
|
|
<?php if ($lesson->displayleft) { ?>
|
|
|
|
<a name="maincontent" id="maincontent" title="<?php print_string('anchortitle', 'lesson') ?>"></a>
|
|
|
|
<?php } ?>
|
|
|
|
<?php if($lesson->slideshow && $page->qtype == LESSON_BRANCHTABLE) { // Starts the slideshow div ?>
|
|
|
|
<div class="slideshow" style="background-color: <?php echo $lesson->bgcolor?>; height: <?php echo $lesson->height ?>px; width: <?php echo $lesson->width?>px;">
|
|
|
|
<?php } ?>
|
|
|
|
<?php
|
|
if ($attemptflag) {
|
|
print_heading(get_string('attempt', 'lesson', $retries + 1));
|
|
}
|
|
|
|
/// This calculates and prints the ongoing score
|
|
if ($lesson->ongoing and !empty($pageid)) {
|
|
lesson_print_ongoing_score($lesson);
|
|
}
|
|
?>
|
|
<!-- End view start --> |