mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Some tidy-ups
This commit is contained in:
parent
6466b6bb56
commit
a7d52d7449
3 changed files with 11 additions and 3 deletions
|
@ -60,7 +60,6 @@
|
||||||
"<a href=\"index.php\">$stradministration</a> -> <a href=\"users.php\">$strusers</a> -> $strassignadmins", "");
|
"<a href=\"index.php\">$stradministration</a> -> <a href=\"users.php\">$strusers</a> -> $strassignadmins", "");
|
||||||
|
|
||||||
/// Add an admin if one is specified
|
/// Add an admin if one is specified
|
||||||
|
|
||||||
if (!empty($_GET['add'])) {
|
if (!empty($_GET['add'])) {
|
||||||
if (! add_admin($add)) {
|
if (! add_admin($add)) {
|
||||||
error("Could not add that admin!");
|
error("Could not add that admin!");
|
||||||
|
@ -68,13 +67,17 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Remove an admin if one is specified.
|
/// Remove an admin if one is specified.
|
||||||
|
|
||||||
if (!empty($_GET['remove'])) {
|
if (!empty($_GET['remove'])) {
|
||||||
if (! remove_admin($remove)) {
|
if (! remove_admin($remove)) {
|
||||||
error("Could not remove that admin!");
|
error("Could not remove that admin!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Print a help notice about this page
|
||||||
|
if (empty($add) and empty($remove) and empty($search)) {
|
||||||
|
print_simple_box("<center>".get_string("adminhelpassignadmins")."</center>", "center", "50%");
|
||||||
|
}
|
||||||
|
|
||||||
/// Get all existing admins
|
/// Get all existing admins
|
||||||
$admins = get_admins();
|
$admins = get_admins();
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Print a help notice about this page
|
||||||
|
if (empty($add) and empty($remove) and empty($search)) {
|
||||||
|
print_simple_box("<center>".get_string("adminhelpassigncreators")."</center>", "center", "50%");
|
||||||
|
}
|
||||||
|
|
||||||
/// Get all existing creators
|
/// Get all existing creators
|
||||||
$creators = get_creators();
|
$creators = get_creators();
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
$stradministration = get_string("administration");
|
$stradministration = get_string("administration");
|
||||||
$strusers = get_string("users");
|
$strusers = get_string("users");
|
||||||
|
|
||||||
print_header("$site->shortname: $stradministration", "$site->fullname",
|
print_header("$site->shortname: $stradministration: $strusers", "$site->fullname",
|
||||||
"<a href=\"index.php\">$stradministration</a> -> $strusers");
|
"<a href=\"index.php\">$stradministration</a> -> $strusers");
|
||||||
|
|
||||||
print_heading($strusers);
|
print_heading($strusers);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue