From: moodler Date: Mon, 5 Feb 2007 07:58:29 +0000 (+0000) Subject: Resolved duplicate id issue MDL-8410 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1e0fb1054c9035b5196d880920a3a56fc47d5874;p=moodle.git Resolved duplicate id issue MDL-8410 --- diff --git a/course/lib.php b/course/lib.php index 954fd51656..9c3ad3275d 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 9cd2357740..3d39a63828 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; }