Fixed some popup window problems (some still fixing)
[moodle.git] / mod / scorm / mod.html
1 <?php
2     if (empty($form->name)) {
3         $form->name = "";
4     }
5     if (empty($form->reference)) {
6         $form->reference = "";
7     }
8     if (empty($form->summary)) {
9         $form->summary = "";
10     }
11     if (empty($form->launch)) {
12         $form->launch = "";
13     }
14 ?>
17 <form name="form" method="post" action="<?php echo $CFG->wwwroot ?>/mod/scorm/details.php">
18     <table cellpadding=5>
19         <tr valign=top>
20             <td align=right><p><b><?php print_string("name") ?>:</b></p></td>
21             <td>
22                 <input type="text" name="name" size=50 value="<?php p($form->name) ?>">
23             </td>
24         </tr>
25 <?php 
26     $strfilename = get_string("coursepacket", "scorm");
27     $strchooseafile = get_string("chooseapacket", "scorm");
28 ?>
29         <tr valign="top">
30             <td align="right" nowrap>
31                 <p><b><?php echo $strfilename?>:</b></p>
32             </td>
33             <td>
34                 <?php
35                     echo "<input name=\"reference\" size=\"50\" value=\"$form->reference\">&nbsp;";
36                     button_to_popup_window ("/mod/scorm/coursefiles.php?id=$course->id", 
37                                             "coursefiles", $strchooseafile, 500, 750, $strchooseafile);
38                 ?>
39             </td>
40         </tr>
41         <tr valign=top>
42             <td align=right><p><b><?php print_string("summary") ?>:</b></p>
43                 <font size="1">
44                 <?php
45                     helpbutton("summary", get_string("summary"), "scorm", true, true);
46                     echo "<br \>";
47                     helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
48                     echo "<br \>";
49                     helpbutton("text", get_string("helptext"), "moodle", true, true);
50                 ?>
51                    <br />
52                 </font>
53             </td>
54             <td>
55         <?php print_textarea($usehtmleditor, 20, 50, 680, 400, "summary", $form->summary); ?>
56             </td>
57         </tr>
58     </table>
59     <input type="hidden" name=course    value="<?php p($form->course) ?>">
60     <input type="hidden" name=coursemodule      value="<?php p($form->coursemodule) ?>">
61     <input type="hidden" name=datadir   value="<?php p($form->datadir) ?>">
62     <input type="hidden" name=launch    value="<?php p($form->launch) ?>">
63     <input type="hidden" name=popup     value="<?php p($form->popup) ?>">
64     <input type="hidden" name=section   value="<?php p($form->section) ?>">
65     <input type="hidden" name=module    value="<?php p($form->module) ?>">
66     <input type="hidden" name=modulename        value="<?php p($form->modulename) ?>">
67     <input type="hidden" name=instance  value="<?php p($form->instance) ?>">
68     <input type="hidden" name=mode              value="<?php p($form->mode) ?>">
69     <input type="hidden" name=destination       value="<?php echo $ME ?>">
70     <center>
71         <input type="submit" value="<?php print_string("continue") ?>">
72     </center>
73 </form>