Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / mod / quiz / attempt_close_js.php
blob3ba2d5b6dcf68c126b286d311323ff6708aaf97b
1 <?php defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');?>
3 <div class="controls">
4 <?php
5 if (!empty($popup)) {
6 ?>
8 <script type="text/javascript">
9 //<![CDATA[
11 document.write('<input type="button" value="<?php print_string('closewindow') ?>" '+
12 'onclick="javascript: window.opener.location.href=\'view.php?id=<?php echo $cm->id ?>\'; '+
13 'window.close();" />');
14 //]]>
15 </script>
16 <noscript>
17 <div>
18 <?php print_string('closewindow'); ?>
19 </div>
20 </noscript>
22 <?php
23 } else {
24 print_single_button("view.php", array( 'id' => $cm->id ), get_string('finishreview', 'quiz'));
27 </div>