Permalink
Browse files

Make frame width a variable

  • Loading branch information...
1 parent 5dc09fb commit 92a419a25cd6d4560100f5b95fb2a5a6d5bc56d5 moodler committed Jan 5, 2003
Showing with 5 additions and 2 deletions.
  1. +3 −0 mod/resource/lib.php
  2. +2 −2 mod/resource/view.php
View
@@ -16,6 +16,9 @@
HTML => get_string("resourcetype6", "resource"),
PROGRAM => get_string("resourcetype7", "resource") );
+$RESOURCE_FRAME_SIZE = 130;
+
+
function resource_list_all_resources($courseid=0, $sort="name ASC", $recent=0) {
// Returns list of all resource links in an array of strings
View
@@ -61,7 +61,7 @@
} 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=130,*>";
+ echo "<FRAMESET ROWS=$RESOURCE_FRAME_SIZE,*>";
echo "<FRAME SRC=\"view.php?id=$cm->id&frameset=true\">";
echo "<FRAME SRC=\"$resource->reference\">";
echo "</FRAMESET>";
@@ -82,7 +82,7 @@
$ffurl = "file.php?file=/$course->id/$resource->reference";
}
echo "<HEAD><TITLE>$course->shortname: $resource->name</TITLE></HEAD>\n";
- echo "<FRAMESET ROWS=130,*>";
+ echo "<FRAMESET ROWS=$RESOURCE_FRAME_SIZE,*>";
echo "<FRAME SRC=\"view.php?id=$cm->id&frameset=true\">";
echo "<FRAME SRC=\"$CFG->wwwroot/$ffurl\">";
echo "</FRAMESET>";

0 comments on commit 92a419a

Please sign in to comment.