adding some strings
[moodle-linuxchix.git] / mod / resource / config.html
blobdf1343dfd83e630424cab24d12d20456fe49203a
1 <form method="post" action="module.php" id="form">
2 <div">
3 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
4 </div>
6 <table cellpadding="9" cellspacing="0" >
7 <tr valign="top">
8 <td align="right">resource_framesize:</td>
9 <td>
10 <input name="resource_framesize" type="text" size="5" value="<?php p($CFG->resource_framesize) ?>" />
11 </td>
12 <td>
13 <?php print_string("configframesize", "resource") ?>
14 </td>
15 </tr>
16 <tr valign="top">
17 <td align="right">resource_websearch:</td>
18 <td>
19 <input name="resource_websearch" type="text" size="30" value="<?php p($CFG->resource_websearch) ?>" />
20 </td>
21 <td>
22 <?php print_string("configwebsearch", "resource") ?>
23 </td>
24 </tr>
25 <tr valign="top">
26 <td align="right">resource_defaulturl:</td>
27 <td>
28 <input name="resource_defaulturl" type="text" size="30" value="<?php p($CFG->resource_defaulturl) ?>" />
29 </td>
30 <td>
31 <?php print_string("configdefaulturl", "resource") ?>
32 </td>
33 </tr>
34 <tr valign="top">
35 <td align="right">resource_secretphrase:</td>
36 <td>
37 <input name="resource_secretphrase" type="text" size="30" value="<?php p($CFG->resource_secretphrase) ?>" />
38 </td>
39 <td>
40 <?php print_string("configsecretphrase", "resource") ?>
41 </td>
42 </tr>
43 <tr valign="top">
44 <td align="right">resource_allowlocalfiles:</td>
45 <td>
46 <?php
47 unset($choices);
48 $choices["0"] = get_string("no");
49 $choices["1"] = get_string("yes");
50 choose_from_menu ($choices, "resource_allowlocalfiles", $CFG->resource_allowlocalfiles, "");
52 </td>
53 <td>
54 <?php print_string("configallowlocalfiles", "resource") ?>
55 </td>
56 </tr>
57 <tr valign="top">
58 <td align="right">resource_popup:</td>
59 <td>
60 <?php
61 unset($choices);
62 $choices[""] = get_string("no");
63 $choices["checked"] = get_string("yes");
64 choose_from_menu ($choices, "resource_popup", $CFG->resource_popup, "");
66 </td>
67 <td>
68 <?php print_string("configpopup", "resource") ?>
69 </td>
70 </tr>
71 <?php foreach ($RESOURCE_WINDOW_OPTIONS as $optionname) {
72 $defaultvalue = "resource_popup$optionname";
73 echo "<tr valign=\"top\">";
74 echo "<td align=\"right\">$defaultvalue:</td>";
75 echo "<td>";
76 if ($optionname == "height" or $optionname == "width") {
77 echo "<input name=\"$defaultvalue\" type=\"text\" size=\"5\" value=\"".$CFG->$defaultvalue."\" />";
78 } else {
79 choose_from_menu ($choices, $defaultvalue, $CFG->$defaultvalue, "");
81 echo "</td>";
82 echo "<td>";
83 print_string("configpopup$optionname", "resource");
84 echo "</td>";
85 echo "</tr>";
88 <tr valign="top">
89 <td align="right">resource_autofilerename:</td>
90 <td>
91 <?php
92 unset($choices);
93 $choices["0"] = get_string("no");
94 $choices["1"] = get_string("yes");
95 choose_from_menu ($choices, "resource_autofilerename", $CFG->resource_autofilerename, "");
97 </td>
98 <td>
99 <?php print_string("configautofilerenamesettings", "resource") ?>
100 </td>
101 </tr>
102 <tr valign="top">
103 <td align="right">resource_blockdeletingfile:</td>
104 <td>
105 <?php
106 unset($choices);
107 $choices["0"] = get_string("no");
108 $choices["1"] = get_string("yes");
109 choose_from_menu ($choices, "resource_blockdeletingfile", $CFG->resource_blockdeletingfile, "");
111 </td>
112 <td>
113 <?php print_string("configblockdeletingfilesettings", "resource") ?>
114 </td>
115 </tr>
116 <tr>
117 <td colspan="3" align="center">
118 <input type="submit" value="<?php print_string("savechanges") ?>" /></td>
119 </tr>
120 </table>
122 </form>