mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
More tweaks to fix on/off button for admins o ncourse listings
This commit is contained in:
parent
c432fd3213
commit
9b16d1eada
2 changed files with 4 additions and 4 deletions
|
@ -69,7 +69,7 @@
|
|||
print_header("$site->shortname: $category->name", "$site->fullname",
|
||||
"<a href=\"../$CFG->admin/index.php\">$stradministration</a> -> ".
|
||||
"<a href=\"index.php\">$strcategories</a> -> $category->name",
|
||||
"", "", true, $updatebutton);
|
||||
"", "", true, $navbaritem);
|
||||
} else {
|
||||
print_header("$site->shortname: $category->name", "$site->fullname",
|
||||
"<a href=\"index.php\">$strcourses</a> -> $category->name", "", "", true, $navbaritem);
|
||||
|
@ -269,8 +269,8 @@
|
|||
echo "<tr>";
|
||||
echo "<td><a $linkcss href=\"view.php?id=$course->id\">$course->fullname</a></td>";
|
||||
if ($creatorediting) {
|
||||
echo "<td>";
|
||||
if ($adminediting) {
|
||||
echo "<td>";
|
||||
echo "<a title=\"$strassignteachers\" href=\"$CFG->wwwroot/course/teacher.php?id=$course->id\"><img".
|
||||
" src=\"$pixpath/t/user.gif\" height=11 width=11 border=0></a> ";
|
||||
echo "<a title=\"$strdelete\" href=\"delete.php?id=$course->id\"><img".
|
||||
|
|
|
@ -1265,8 +1265,8 @@ function update_category_button($categoryid) {
|
|||
} else {
|
||||
$string = get_string("turneditingon");
|
||||
$edit = "on";
|
||||
}
|
||||
return "<form target=_parent method=get action=\"$CFG->wwwroot/course/category.php\">".
|
||||
}
|
||||
return "<form method=get action=\"$CFG->wwwroot/course/category.php\">".
|
||||
"<input type=hidden name=id value=\"$categoryid\">".
|
||||
"<input type=hidden name=edit value=\"$edit\">".
|
||||
"<input type=submit value=\"$string\"></form>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue