First step for SCORM2004, new communication subsystem
[moodle.git] / mod / scorm / config.html
1 <form method="post" action="module.php" name="form">
2 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
4 <table cellpadding="9" cellspacing="0" >
5 <tr valign="top">
6     <td align="right">scorm_validate:</td>
7     <td>
8     <?php
9         unset($choices);
10         $choices[""] = get_string("none");
11         if (extension_loaded('domxml')) {
12             $choices["domxml"] = get_string("domxml","scorm");
13         }
14         if (version_compare(phpversion(),"5.0.0",">=")) {
15             $choices["php5"] = get_string("php5","scorm");
16         }
17         choose_from_menu ($choices, "scorm_validate", $CFG->scorm_validate, "");
18     ?>
19     </td>
20     <td>
21     <?php print_string("validationtype", "scorm") ?>
22     </td>
23 </tr>
24 <tr valign="top">
25     <td align="right">scorm_framesize:</td>
26     <td>
27         <input name="scorm_framesize" type="text" size="5" value="<?php p($CFG->scorm_framesize) ?>" />
28     </td>
29     <td>
30     <?php print_string("configframesize", "scorm") ?>
31     </td>
32 </tr>
33 <tr valign="top">
34     <td align="right">scorm_popup:</td>
35     <td>
36     <?php
37         unset($choices);
38         $choices[""] = get_string("no");
39         $choices["checked"] = get_string("yes");
40         choose_from_menu ($choices, "scorm_popup", $CFG->scorm_popup, "");
41     ?>
42     </td>
43     <td>
44     <?php print_string("configpopup", "scorm") ?>
45     </td>
46 </tr>
47 <?php foreach ($SCORM_WINDOW_OPTIONS as $optionname) {
48           $defaultvalue = "scorm_popup$optionname";
49           echo "<tr valign=\"top\">";
50               echo "<td align=\"right\">$defaultvalue:</td>";
51               echo "<td>";
52           if ($optionname == "height" or $optionname == "width") {
53               echo "<input name=$defaultvalue type=\"text\" size=\"5\" value=\"".$CFG->$defaultvalue."\" />";
54           } else {
55               choose_from_menu ($choices, $defaultvalue, $CFG->$defaultvalue, "");
56           }
57           echo "</td>";
58           echo "<td>";
59           print_string("configpopup$optionname", "scorm");
60           echo "</td>";
61           echo "</tr>";
62       }
63 ?>
64 <tr valign="top">
65     <td align="right"><p>scorm_windowsettings:</td>
66     <td>
67     <?php
68         unset($choices);
69         $choices[""] = get_string("no");
70         $choices["checked"] = get_string("yes");
71         choose_from_menu ($choices, "scorm_windowsettings", $CFG->scorm_windowsettings, "");
72     ?>
73     </td>
74     <td>
75     <?php print_string("windowsettings", "scorm") ?>
76     </td>
77 </tr>
78 <tr>
79     <td colspan="3" align="center">
80         <input type="submit" value="<?php print_string("savechanges") ?>" />
81     </td>
82 </tr>
83 </table>
85 </form>