]> git.mjollnir.org Git - moodle.git/commitdiff
A very quick and dirty try .... Williams? What do you think?
authormoodler <moodler>
Sat, 17 Jan 2004 10:18:12 +0000 (10:18 +0000)
committermoodler <moodler>
Sat, 17 Jan 2004 10:18:12 +0000 (10:18 +0000)
mod/glossary/showentry.php

index d1ad230d6c0d0460c7dcea7af3870fed0cb87d30..81b02d5fb4a2592461de67f0cbf37197e26da6b1 100644 (file)
@@ -9,9 +9,19 @@
 
     if (!empty($courseid)) {
         require_login($courseid);
+        $course = get_record("course", "id", $courseid);
+
+        $strglossaries = get_string("modulenameplural", "glossary");
+        $strsearch = get_string("search");
+
+        $CFG->framename = "newwindow";
+        print_header(strip_tags("$course->shortname: $glossary->name"), "$course->fullname",
+        "<a target=\"newwindow\" href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> -> $strglossaries -> $strsearch", "", "", true, "&nbsp;", "&nbsp;");
+
+    } else {
+        print_header();    // Needs to be something here to allow linking back to the whole glossary
     }
 
-    print_header();    // Needs to be something here to allow linking back to the whole glossary
 
     if ( $eid ) {
         $entries = get_records_sql("select e.* from {$CFG->prefix}glossary_entries e, {$CFG->prefix}glossary g".