Permalink
Browse files

MDL-10606 Corrected course search box id

  • Loading branch information...
dongsheng
dongsheng committed Mar 25, 2008
1 parent c852b07 commit 66feb0092d2de85de735220bdfa91beea49c6e02
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/lib.php
View
@@ -1942,14 +1942,14 @@ function print_course_search($value="", $return=false, $format="plain") {
} else if ($format == 'short') {
$output = '<form id="'.$id.'" action="'.$CFG->wwwroot.'/course/search.php" method="get">';
$output .= '<fieldset class="coursesearchbox invisiblefieldset">';
- $output .= '<label for="coursesearchbox">'.$strsearchcourses.': </label>';
+ $output .= '<label for="shortsearchbox">'.$strsearchcourses.': </label>';
$output .= '<input type="text" id="shortsearchbox" size="12" name="search" alt="'.s($strsearchcourses).'" value="'.s($value, true).'" />';
$output .= '<input type="submit" value="'.get_string('go').'" />';
$output .= '</fieldset></form>';
} else if ($format == 'navbar') {
$output = '<form id="coursesearchnavbar" action="'.$CFG->wwwroot.'/course/search.php" method="get">';
$output .= '<fieldset class="coursesearchbox invisiblefieldset">';
- $output .= '<label for="coursesearchbox">'.$strsearchcourses.': </label>';
+ $output .= '<label for="navsearchbox">'.$strsearchcourses.': </label>';
$output .= '<input type="text" id="navsearchbox" size="20" name="search" alt="'.s($strsearchcourses).'" value="'.s($value, true).'" />';
$output .= '<input type="submit" value="'.get_string('go').'" />';
$output .= '</fieldset></form>';

0 comments on commit 66feb00

Please sign in to comment.