diff --git a/course/lib.php b/course/lib.php index 954fd51656c..9c3ad3275d6 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1891,17 +1891,26 @@ function print_my_moodle() { function print_course_search($value="", $return=false, $format="plain") { global $CFG; + static $count = 0; + + $count++; + + $id = 'coursesearch'; + + if ($count > 1) { + $id .= $count; + } $strsearchcourses= get_string("searchcourses"); if ($format == 'plain') { - $output = '
'; + $output = ''; $output .= '
'; $output .= ''; $output .= ''; $output .= '
'; } else if ($format == 'short') { - $output = '
'; + $output = ''; $output .= '
'; $output .= ''; $output .= ''; diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 9cd23577401..3d39a63828f 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -1591,7 +1591,8 @@ body#course-index .addcategory { padding-bottom:10px; } -#coursesearch { +#coursesearch, +#coursesearch2 { text-align:center; }