mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
92 lines
2.7 KiB
HTML
92 lines
2.7 KiB
HTML
<form method="post" action="module.php" name="form">
|
|
|
|
<table cellpadding=9 cellspacing=0 >
|
|
<tr valign=top>
|
|
<td align=right><p>resource_framesize:</td>
|
|
<td>
|
|
<input name=resource_framesize type=text size=5 value="<?php p($CFG->resource_framesize) ?>">
|
|
</td>
|
|
<td>
|
|
<?php print_string("configframesize", "resource") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td align=right><p>resource_websearch:</td>
|
|
<td>
|
|
<input name=resource_websearch type=text size=30 value="<?php p($CFG->resource_websearch) ?>">
|
|
</td>
|
|
<td>
|
|
<?php print_string("configwebsearch", "resource") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td align=right><p>resource_defaulturl:</td>
|
|
<td>
|
|
<input name=resource_defaulturl type=text size=30 value="<?php p($CFG->resource_defaulturl) ?>">
|
|
</td>
|
|
<td>
|
|
<?php print_string("configdefaulturl", "resource") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td align=right><p>resource_secretphrase:</td>
|
|
<td>
|
|
<input name=resource_secretphrase type=text size=30 value="<?php p($CFG->resource_secretphrase) ?>">
|
|
</td>
|
|
<td>
|
|
<?php print_string("configsecretphrase", "resource") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td align=right><p>resource_filterexternalpages:</td>
|
|
<td>
|
|
<?php
|
|
unset($choices);
|
|
$choices["0"] = get_string("no");
|
|
$choices["1"] = get_string("yes");
|
|
choose_from_menu ($choices, "resource_filterexternalpages", $CFG->resource_filterexternalpages, "");
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php print_string("configfilterexternalpages", "resource") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td align=right><p>resource_popup:</td>
|
|
<td>
|
|
<?php
|
|
unset($choices);
|
|
$choices[""] = get_string("no");
|
|
$choices["checked"] = get_string("yes");
|
|
choose_from_menu ($choices, "resource_popup", $CFG->resource_popup, "");
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php print_string("configpopup", "resource") ?>
|
|
</td>
|
|
</tr>
|
|
<?php foreach ($RESOURCE_WINDOW_OPTIONS as $optionname) {
|
|
$defaultvalue = "resource_popup$optionname";
|
|
echo "<tr valign=top>";
|
|
echo "<td align=right><p>$defaultvalue:</td>";
|
|
echo "<td>";
|
|
if ($optionname == "height" or $optionname == "width") {
|
|
echo "<input name=$defaultvalue type=text size=5 value=\"".$CFG->$defaultvalue."\">";
|
|
} else {
|
|
choose_from_menu ($choices, $defaultvalue, $CFG->$defaultvalue, "");
|
|
}
|
|
echo "</td>";
|
|
echo "<td>";
|
|
print_string("configpopup$optionname", "resource");
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
}
|
|
?>
|
|
<tr>
|
|
<td colspan=3 align=center>
|
|
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
|
|
</tr>
|
|
</table>
|
|
|
|
</form>
|