2004-12-16 08:05:23 +00:00
|
|
|
<?php defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');?>
|
|
|
|
|
2007-07-06 16:37:06 +00:00
|
|
|
<div class="controls">
|
2005-05-06 06:24:04 +00:00
|
|
|
<?php
|
|
|
|
if (!empty($popup)) {
|
2004-12-16 08:05:23 +00:00
|
|
|
?>
|
|
|
|
|
2007-01-03 14:44:17 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
//<![CDATA[
|
2004-12-16 08:05:23 +00:00
|
|
|
|
2005-05-06 06:24:04 +00:00
|
|
|
document.write('<input type="button" value="<?php print_string('closewindow') ?>" '+
|
|
|
|
'onclick="javascript: window.opener.location.href=\'view.php?id=<?php echo $cm->id ?>\'; '+
|
2004-12-16 08:05:23 +00:00
|
|
|
'window.close();" />');
|
2007-01-03 14:44:17 +00:00
|
|
|
//]]>
|
2004-12-16 08:05:23 +00:00
|
|
|
</script>
|
|
|
|
<noscript>
|
2007-01-09 09:07:16 +00:00
|
|
|
<div>
|
2004-12-16 08:05:23 +00:00
|
|
|
<?php print_string('closewindow'); ?>
|
2007-01-09 09:07:16 +00:00
|
|
|
</div>
|
2004-12-16 08:05:23 +00:00
|
|
|
</noscript>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
} else {
|
2007-04-25 15:31:34 +00:00
|
|
|
print_single_button("view.php", array( 'id' => $cm->id ), get_string('finishreview', 'quiz'));
|
2004-12-16 08:05:23 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|