mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Course category listings now have a search box in the navbar for students
and non-users
This commit is contained in:
parent
ee44a11f06
commit
98e9a035d7
@ -27,13 +27,13 @@
|
||||
$USER->editing = false;
|
||||
}
|
||||
}
|
||||
$updatebutton = update_category_button($category->id);
|
||||
$navbaritem = update_category_button($category->id);
|
||||
|
||||
$creatorediting = !empty($USER->editing);
|
||||
$adminediting = (isadmin() and $creatorediting);
|
||||
|
||||
} else {
|
||||
$updatebutton = "";
|
||||
$navbaritem = print_course_search("", true, "navbar");
|
||||
$adminediting = false;
|
||||
}
|
||||
|
||||
@ -72,11 +72,11 @@
|
||||
"", "", true, $updatebutton);
|
||||
} else {
|
||||
print_header("$site->shortname: $category->name", "$site->fullname",
|
||||
"<a href=\"index.php\">$strcourses</a> -> $category->name", "", "", true, $updatebutton);
|
||||
"<a href=\"index.php\">$strcourses</a> -> $category->name", "", "", true, $navbaritem);
|
||||
}
|
||||
} else {
|
||||
print_header("$site->shortname: $category->name", "$site->fullname",
|
||||
"<a href=\"index.php\">$strcourses</a> -> $category->name", "", "", true, $updatebutton);
|
||||
"<a href=\"index.php\">$strcourses</a> -> $category->name", "", "", true, $navbaritem);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1147,7 +1147,6 @@ function print_course_search($value="", $return=false, $format="plain") {
|
||||
$output .= "<form name=\"coursesearch\" action=\"$CFG->wwwroot/course/search.php\" method=\"get\">";
|
||||
$output .= "<input type=\"text\" size=20 name=\"search\" value=\"$value\">";
|
||||
$output .= "<input type=\"submit\" value=\"$strsearchcourses\">";
|
||||
$output .= "<input name=id type=hidden value=\"$course->id\">";
|
||||
$output .= "</form>";
|
||||
$output .= "</td></tr></table>";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user