#------------------------------------------------------------
$string['addresource'] = "Add resource";
+$string['configframesize'] = "When a web page or an uploaded file is displayed within a frame, this value is the size (in pixels) of the top frame (which contains the navigation).";
$string['editingaresource'] = "Editing a resource";
$string['example'] = "Example";
$string['examplereference'] = "Tobin, K. & Tippins, D (1993) Constructivism as a Referent for Teaching and Learning. In: K. Tobin (Ed) The Practice of Constructivism in Science Education, pp 3-21, Lawrence-Erlbaum, Hillsdale, NJ.";
--- /dev/null
+<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>
+ <td colspan=3 align=center>
+ <input type="submit" value="<?php print_string("savechanges") ?>"></td>
+</tr>
+</table>
+
+</form>
PROGRAM => get_string("resourcetype7", "resource"),
WIKITEXT => get_string("resourcetype8", "resource") );
-$RESOURCE_FRAME_SIZE = 130;
+if (!isset($CFG->resource_framesize)) {
+ set_config("resource_framesize", 130);
+}
$RESOURCE_WINDOW_OPTIONS = array("resizable", "scrollbars", "directories", "location",
"menubar", "toolbar", "status", "height", "width");
} else {
add_to_log($course->id, "resource", "view", "view.php?id=$cm->id", "$resource->id");
echo "<head><title>$course->shortname: $resource->name</title></head>\n";
- echo "<frameset rows=$RESOURCE_FRAME_SIZE,*>";
+ echo "<frameset rows=$CFG->resource_framesize,*>";
echo "<frame src=\"view.php?id=$cm->id&frameset=top\">";
echo "<frame src=\"$resource->reference\">";
echo "</frameset>";
} else { // Display resource in a frame of it's own.
echo "<head><title>$course->shortname: $resource->name</title></head>\n";
- echo "<frameset rows=$RESOURCE_FRAME_SIZE,*>";
+ echo "<frameset rows=$CFG->resource_framesize,*>";
echo "<frame src=\"view.php?id=$cm->id&frameset=top\">";
echo "<frame src=\"$fullurl\">";
echo "</frameset>";