files/index.php now allows choosing and it makes the coursefiles.php
[moodle.git] / mod / scorm / mod.html
blob841e6fc3d65cdd64a5d43d5a9fe5ae14ade59335
1 <?php
2 if (empty($form->name)) {
3 $form->name = "";
5 if (empty($form->reference)) {
6 $form->reference = "";
8 if (empty($form->summary)) {
9 $form->summary = "";
11 if (empty($form->launch)) {
12 $form->launch = "";
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");
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 ("/files/index.php?id=$course->id&choose=form.reference",
37 "coursefiles", $strchooseafile, 500, 750, $strchooseafile);
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);
51 </font>
52 </td>
53 <td>
54 <?php print_textarea($usehtmleditor, 20, 50, 680, 400, "summary", $form->summary); ?>
55 </td>
56 </tr>
57 </table>
58 <input type="hidden" name=course value="<?php p($form->course) ?>">
59 <input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
60 <input type="hidden" name=datadir value="<?php p($form->datadir) ?>">
61 <input type="hidden" name=launch value="<?php p($form->launch) ?>">
62 <input type="hidden" name=popup value="<?php p($form->popup) ?>">
63 <input type="hidden" name=auto value="<?php p($form->auto) ?>">
64 <input type="hidden" name="maxgrade" value="<?php p($form->maxgrade) ?>" />
65 <input type="hidden" name="grademethod" value="<?php p($form->grademethod) ?>" />
66 <input type="hidden" name=section value="<?php p($form->section) ?>">
67 <input type="hidden" name=module value="<?php p($form->module) ?>">
68 <input type="hidden" name=modulename value="<?php p($form->modulename) ?>">
69 <input type="hidden" name=instance value="<?php p($form->instance) ?>">
70 <input type="hidden" name=mode value="<?php p($form->mode) ?>">
71 <input type="hidden" name=destination value="<?php echo $ME ?>">
72 <center>
73 <input type="submit" value="<?php print_string("continue") ?>">
74 </center>
75 </form>