2004-12-16 08:05:23 +00:00
|
|
|
<?php defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');?>
|
|
|
|
|
|
|
|
<div align="center">
|
2005-05-06 06:24:04 +00:00
|
|
|
<?php
|
|
|
|
if (!empty($popup)) {
|
2004-12-16 08:05:23 +00:00
|
|
|
?>
|
|
|
|
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
<!--
|
|
|
|
|
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();" />');
|
|
|
|
// -->
|
|
|
|
</script>
|
|
|
|
<noscript>
|
|
|
|
<?php print_string('closewindow'); ?>
|
|
|
|
</noscript>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
} else {
|
2005-05-06 06:24:04 +00:00
|
|
|
print_single_button("view.php", array( 'id' => $cm->id ), get_string('continue'));
|
2004-12-16 08:05:23 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|