From: moodler Date: Wed, 14 May 2003 16:05:21 +0000 (+0000) Subject: Some little fixes (can only see them on a server with lots of users!) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=46a244605d9e67d2e74439a5fc62f21c224ccb13;p=moodle.git Some little fixes (can only see them on a server with lots of users!) --- diff --git a/admin/admin.php b/admin/admin.php index da87eb1ca9..e393c180f2 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -7,6 +7,7 @@ optional_variable($add, ""); optional_variable($remove, ""); + optional_variable($search, ""); if (! $site = get_site()) { redirect("$CFG->wwwroot/$CFG->admin/index.php"); diff --git a/admin/teacher.php b/admin/teacher.php index 701af60626..3786513415 100644 --- a/admin/teacher.php +++ b/admin/teacher.php @@ -5,7 +5,10 @@ define("MAX_USERS_PER_PAGE", 30); - optional_variable($id); // course id + optional_variable($id); // course id + optional_variable($add, ""); + optional_variable($remove, ""); + optional_variable($search, ""); // search string if (! $site = get_site()) { redirect("$CFG->wwwroot/$CFG->admin/index.php"); @@ -30,6 +33,13 @@ $strsearchagain = get_string("searchagain"); $strtoomanytoshow = get_string("toomanytoshow"); + if ($search) { + $searchstring = $strsearchagain; + } else { + $searchstring = $strsearch; + } + + if (!$id) { print_header("$site->shortname: $strassignteachers", "$site->fullname", "$stradministration -> $strassignteachers"); @@ -181,6 +191,7 @@ if ($search or $usercount > MAX_USERS_PER_PAGE) { echo "
"; + echo "id\">"; echo ""; echo ""; echo "
";