]> git.mjollnir.org Git - moodle.git/commitdiff
Some tidy-ups
authormoodler <moodler>
Mon, 18 Aug 2003 03:47:49 +0000 (03:47 +0000)
committermoodler <moodler>
Mon, 18 Aug 2003 03:47:49 +0000 (03:47 +0000)
admin/admin.php
admin/creators.php
admin/users.php

index 91d7a56f2709a14ad19dc278ae738f370744f7e6..7f27e8ea74ae5c9e39a1ae0c735f7af0b1c89b08 100644 (file)
@@ -60,7 +60,6 @@
                  "<a href=\"index.php\">$stradministration</a> -> <a href=\"users.php\">$strusers</a> -> $strassignadmins", "");
 
 /// Add an admin if one is specified
-
     if (!empty($_GET['add'])) {
         if (! add_admin($add)) {
             error("Could not add that admin!");
     }
 
 /// Remove an admin if one is specified.
-
     if (!empty($_GET['remove'])) {
         if (! remove_admin($remove)) {
             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
     $admins = get_admins();
 
index 5c0055c3ae3d20441a2fb82fd5a6fc023f5ea1bd..d1f63071b4037e79617cf06fc9f0563198f95fa4 100755 (executable)
         }
     }
 
+/// 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
     $creators = get_creators();
 
index f27b1dc6751f0eb3f44c37fd809710a943da278d..1f7b7a72d1efec998ea98cb0aa1cfb890e372f35 100644 (file)
@@ -15,7 +15,7 @@
     $stradministration = get_string("administration");
     $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");
 
     print_heading($strusers);