Changeset 1040
- Timestamp:
- 03/21/07 12:57:07 (2 years ago)
- Files:
-
- devel/_admin/users.php (modified) (2 diffs)
- devel/lib/templates.php (modified) (1 diff)
- devel/units/admin/admin_admin_users.php (added)
- devel/units/admin/admin_banned_users.php (added)
- devel/units/admin/main.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/_admin/users.php
r659 r1040 12 12 templates_page_setup(); 13 13 14 $flag = optional_param("flag"); 15 switch($flag) { 16 case "admin": 17 $body = run("admin:users:admin"); 18 break; 19 case "banned": 20 $body = run("admin:users:banned"); 21 break; 22 default: 23 $body = run("admin:users"); 24 break; 25 } 26 14 27 // You must be logged on to view this! 15 28 … … 19 32 'context' => 'contentholder', 20 33 'title' => __gettext("Manage users"), 21 'body' => run("admin:users")34 'body' => $body 22 35 ) 23 36 ) devel/lib/templates.php
r1022 r1040 490 490 'html' => a_href("{$CFG->wwwroot}_admin/users.php", 491 491 __gettext("Manage users"))); 492 493 $PAGE->menu_sub[] = array( 494 'name' => 'admin:users', 495 'html' => a_href("{$CFG->wwwroot}_admin/users.php?flag=banned", 496 __gettext("Banned users"))); 497 498 $PAGE->menu_sub[] = array( 499 'name' => 'admin:users', 500 'html' => a_href("{$CFG->wwwroot}_admin/users.php?flag=admin", 501 __gettext("Admin users"))); 492 502 493 503 $PAGE->menu_sub[] = array( devel/units/admin/main.php
r963 r1040 30 30 // Menu to view all users 31 31 $function['admin:users'][] = $CFG->dirroot . "units/admin/admin_users.php"; 32 $function['admin:users:admin'][] = $CFG->dirroot . "units/admin/admin_admin_users.php"; 33 $function['admin:users:banned'][] = $CFG->dirroot . "units/admin/admin_banned_users.php"; 32 34 33 35 // Bulk user addition screen
