Putting SCORM into maintree CVS, to make it easier to test.
[moodle.git] / mod / scorm / mod.html
1 <?php
2     if (empty($form->name)) {
3         $form->name = "";
4     }
5     if (empty($form->summary)) {
6         $form->summary = "";
7     }
8     if (empty($form->alltext)) {
9         $form->alltext = "";
10     }
11 ?>
14 <form name="form" method="post" action="<?php echo $CFG->wwwroot ?>/mod/scorm/details.php">
15     <table cellpadding=5>
16         <tr valign=top>
17             <td align=right><p><b><?php print_string("name") ?>:</b></p></td>
18             <td>
19                 <input type="text" name="name" size=50 value="<?php p($form->name) ?>">
20             </td>
21         </tr>
22 <?php 
23     $strfilename = get_string("coursepacket", "scorm");
24     $strchooseafile = get_string("chooseapacket", "scorm");
25 ?>
26         <tr valign="top">
27             <td align="right" nowrap>
28                 <p><b><?php echo $strfilename?>:</b></p>
29             </td>
30             <td>
31                 <?php
32                     echo "<input name=\"reference\" size=\"50\" value=\"$form->reference\">&nbsp;";
33                     button_to_popup_window ("/mod/scorm/coursefiles.php?id=$course->id", 
34                                             "coursefiles", $strchooseafile, 500, 750, $strchooseafile);
35                 ?>
36             </td>
37         </tr>
38         <tr valign=top>
39             <td align=right><p><b><?php print_string("summary") ?>:</b></p>
40                 <font size="1">
41                 <?php
42                     helpbutton("summary", get_string("summary"), "scorm", true, true);
43                     echo "<br \>";
44                     helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
45                     echo "<br \>";
46                     helpbutton("text", get_string("helptext"), "moodle", true, true);
47                 ?>
48                    <br />
49                 </font>
50             </td>
51             <td>
52                 <textarea name="summary" rows=5 cols=50 wrap="virtual"><?php p($form->summary) ?></textarea>
53             </td>
54         </tr>
55         <tr valign=top>
56             <td align=right><p><b><?php print_string("autocontinue","scorm") ?>:</b></p></td>
57             <td>
58             <?php
59                 $options[]=get_string("no");
60                 $options[]=get_string("yes");
61                 choose_from_menu ($options, "auto", $form->auto);
62             ?>
63             </td>
64         </tr>
65     </table>
66     <input type="hidden" name=course    value="<?php p($form->course) ?>">
67     <input type="hidden" name=coursemodule      value="<?php p($form->coursemodule) ?>">
68     <input type="hidden" name=datadir   value="<?php p($form->datadir) ?>">
69     <input type="hidden" name=launch    value="<?php p($form->launch) ?>">
70     <input type="hidden" name=section   value="<?php p($form->section) ?>">
71     <input type="hidden" name=module    value="<?php p($form->module) ?>">
72     <input type="hidden" name=modulename        value="<?php p($form->modulename) ?>">
73     <input type="hidden" name=instance  value="<?php p($form->instance) ?>">
74     <input type="hidden" name=mode              value="<?php p($form->mode) ?>">
75     <input type="hidden" name=destination       value="<?php echo $ME ?>">
76     <center>
77         <input type="submit" value="<?php print_string("continue") ?>">
78     </center>
79 </form>