mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 20:36:42 +01:00
42 lines
1.7 KiB
HTML
42 lines
1.7 KiB
HTML
|
<?php // $Id$
|
||
|
/**
|
||
|
* End of the HTML template for viewing pages
|
||
|
*
|
||
|
* @version $Id$
|
||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
||
|
* @package lesson
|
||
|
**/
|
||
|
?>
|
||
|
<!-- Start view end -->
|
||
|
</td>
|
||
|
<td>
|
||
|
<?php echo $medialink ?>
|
||
|
|
||
|
<?php if($lesson->timed and !has_capability('mod/lesson:manage', $context)) { // Display for timed lessons and for students only ?>
|
||
|
|
||
|
<table align="right" width="150px" class="generaltable generalbox" cellspacing="0" cellpadding="5px" border="0" valign="top">
|
||
|
<tr>
|
||
|
<th class="header"><?php print_string("timeremaining", "lesson") ?></th>
|
||
|
</tr>
|
||
|
<tr class="r0">
|
||
|
<td align="center" class="c0">
|
||
|
<script type="text/javascript" charset="utf-8">
|
||
|
<!--
|
||
|
var starttime = <?php echo $timer->starttime ?>;
|
||
|
var servertime = <?php echo time() ?>;
|
||
|
var testlength = <?php echo $lesson->maxtime * 60 ?>;
|
||
|
document.write('<script type="text/javascript" src="<?php echo $CFG->wwwroot ?>/mod/lesson/timer.js" charset="utf-8"><\/script>');
|
||
|
window.onload = function () { show_clock(); };
|
||
|
// -->
|
||
|
</script>
|
||
|
<noscript>
|
||
|
<?php lesson_print_time_remaining($timer->starttime, $lesson->maxtime); ?>
|
||
|
</noscript>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<?php } //end if($lesson->timed) { ?>
|
||
|
<td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<!-- End view end -->
|