-<? // $Id$
+<?php // $Id$
// Library of useful functions
}
echo "<table width=\"100%\"><tr><td align=\"center\">";
- print_course_search();
+ print_course_search("", false, "short");
echo "</td><td align=\"center\">";
print_single_button("$CFG->wwwroot/course/index.php", NULL, get_string("fulllistofcourses"), "get");
echo "</td></tr></table>\n";
$output .= "<input type=\"text\" size=30 name=\"search\" value=\"$value\">";
$output .= "<input type=\"submit\" value=\"$strsearchcourses\">";
$output .= "</form></p></center>";
+ } else if ($format == "short") {
+ $output = "<center><p align=\"center\" class=\"coursesearchbox\">";
+ $output .= "<form name=\"coursesearch\" action=\"$CFG->wwwroot/course/search.php\" method=\"get\">";
+ $output .= "<input type=\"text\" size=12 name=\"search\" value=\"$value\">";
+ $output .= "<input type=\"submit\" value=\"$strsearchcourses\">";
+ $output .= "</form></p></center>";
} else if ($format == "navbar") {
$output = "<table border=0 cellpadding=0 cellspacing=0><tr><td nowrap>";
$output .= "<form name=\"coursesearch\" action=\"$CFG->wwwroot/course/search.php\" method=\"get\">";