Tweaks to course format (search box)
authormartin <martin>
Tue, 11 Jun 2002 07:27:31 +0000 (07:27 +0000)
committermartin <martin>
Tue, 11 Jun 2002 07:27:31 +0000 (07:27 +0000)
course/view.php
course/weeks.php

index 1e9be96294889a66aed21fad61afcb8149198337..2e7acfeec67d314269023ba69b338eb4302e3d15 100644 (file)
@@ -31,7 +31,7 @@
         redirect("$CFG->wwwroot");
     }
 
-    print_header("Course: $course->fullname", "$course->fullname", "$course->shortname", "", "", true,
+    print_header("Course: $course->fullname", "$course->fullname", "$course->shortname", "search.search", "", true,
                   update_course_icon($course->id));
 
     if (! $modtypes = get_records_sql_menu("SELECT name,fullname FROM modules ORDER BY fullname") ) {
index 9d16975d19199f5aecafa4c988b46664bf34d21f..1581bfb682a6165fb01324da3d251e6ae6e4b0c7 100644 (file)
     print_simple_box("Activities", $align="CENTER", $width="100%", $color="$THEME->cellheading");
     print_side_block("", $moddata, "", $modicon);
 
+    // Print a form to search discussions
+    print_simple_box("Search Discussions", $align="CENTER", $width="100%", $color="$THEME->cellheading");
+    echo "<DIV ALIGN=CENTER>";
+    print_discussion_search_form($course);
+    echo "</DIV>";
 
     // Admin links and controls