1 <form method=
"post" action=
"module.php" name=
"form">
3 <table cellpadding=
9 cellspacing=
0 >
5 <td align=right
><p>resource_framesize:
</td>
7 <input name=resource_framesize type=text size=
5 value=
"<?php p($CFG->resource_framesize) ?>">
10 <?php
print_string("configframesize", "resource") ?>
14 <td align=right
><p>resource_websearch:
</td>
16 <input name=resource_websearch type=text size=
30 value=
"<?php p($CFG->resource_websearch) ?>">
19 <?php
print_string("configwebsearch", "resource") ?>
23 <td align=right
><p>resource_defaulturl:
</td>
25 <input name=resource_defaulturl type=text size=
30 value=
"<?php p($CFG->resource_defaulturl) ?>">
28 <?php
print_string("configdefaulturl", "resource") ?>
32 <td align=right
><p>resource_filterexternalpages:
</td>
36 $choices["0"] = get_string("no");
37 $choices["1"] = get_string("yes");
38 choose_from_menu ($choices, "resource_filterexternalpages", $CFG->resource_filterexternalpages
, "");
42 <?php print_string("configfilterexternalpages", "resource") ?>
46 <td align=right
><p>resource_popup:
</td>
50 $choices[""] = get_string("no");
51 $choices["checked"] = get_string("yes");
52 choose_from_menu ($choices, "resource_popup", $CFG->resource_popup
, "");
56 <?php print_string("configpopup", "resource") ?>
59 <?php foreach ($RESOURCE_WINDOW_OPTIONS as $optionname) {
60 $defaultvalue = "resource_popup$optionname";
61 echo "<tr valign=top>";
62 echo "<td align=right><p>$defaultvalue:</td>";
64 if ($optionname == "height" or $optionname == "width") {
65 echo "<input name=$defaultvalue type=text size=5 value=\"".$CFG->$defaultvalue."\">";
67 choose_from_menu ($choices, $defaultvalue, $CFG->$defaultvalue, "");
71 print_string("configpopup$optionname", "resource");
77 <td colspan=
3 align=center
>
78 <input type=
"submit" value=
"<?php print_string("savechanges
") ?>"></td
>