1 <form method=
"post" action=
"module.php" id=
"form">
3 <input type=
"hidden" name=
"sesskey" value=
"<?php echo $USER->sesskey ?>" />
6 <table cellpadding
="9" cellspacing
="0" >
8 <td align
="right">resource_framesize
:</td
>
10 <input name
="resource_framesize" type
="text" size
="5" value
="<?php p($CFG->resource_framesize) ?>" />
13 <?php
print_string("configframesize", "resource") ?>
17 <td align=
"right">resource_websearch:
</td>
19 <input name=
"resource_websearch" type=
"text" size=
"30" value=
"<?php p($CFG->resource_websearch) ?>" />
22 <?php
print_string("configwebsearch", "resource") ?>
26 <td align=
"right">resource_defaulturl:
</td>
28 <input name=
"resource_defaulturl" type=
"text" size=
"30" value=
"<?php p($CFG->resource_defaulturl) ?>" />
31 <?php
print_string("configdefaulturl", "resource") ?>
35 <td align=
"right">resource_secretphrase:
</td>
37 <input name=
"resource_secretphrase" type=
"text" size=
"30" value=
"<?php p($CFG->resource_secretphrase) ?>" />
40 <?php
print_string("configsecretphrase", "resource") ?>
44 <td align=
"right">resource_allowlocalfiles:
</td>
48 $choices["0"] = get_string("no");
49 $choices["1"] = get_string("yes");
50 choose_from_menu ($choices, "resource_allowlocalfiles", $CFG->resource_allowlocalfiles
, "");
54 <?php print_string("configallowlocalfiles", "resource") ?>
58 <td align=
"right">resource_popup:
</td>
62 $choices[""] = get_string("no");
63 $choices["checked"] = get_string("yes");
64 choose_from_menu ($choices, "resource_popup", $CFG->resource_popup
, "");
68 <?php print_string("configpopup", "resource") ?>
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>";
76 if ($optionname == "height" or $optionname == "width") {
77 echo "<input name=\"$defaultvalue\" type=\"text\" size=\"5\" value=\"".$CFG->$defaultvalue."\" />";
79 choose_from_menu ($choices, $defaultvalue, $CFG->$defaultvalue, "");
83 print_string("configpopup$optionname", "resource");
89 <td align=
"right">resource_autofilerename:
</td>
93 $choices["0"] = get_string("no");
94 $choices["1"] = get_string("yes");
95 choose_from_menu ($choices, "resource_autofilerename", $CFG->resource_autofilerename
, "");
99 <?php print_string("configautofilerenamesettings", "resource") ?>
103 <td align=
"right">resource_blockdeletingfile:
</td>
107 $choices["0"] = get_string("no");
108 $choices["1"] = get_string("yes");
109 choose_from_menu ($choices, "resource_blockdeletingfile", $CFG->resource_blockdeletingfile
, "");
113 <?php print_string("configblockdeletingfilesettings", "resource") ?>
117 <td colspan=
"3" align=
"center">
118 <input type=
"submit" value=
"<?php print_string("savechanges
") ?>" /></td
>