From 8a6e783ff020a142fa3268cef1d8df1a1ef92b8a Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sun, 13 Feb 2005 21:43:43 +0000 Subject: [PATCH] small fix --- course/student.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/course/student.php b/course/student.php index 11f364fbb7f..581b0c9ba71 100644 --- a/course/student.php +++ b/course/student.php @@ -47,9 +47,9 @@ $strexistingstudents .= " ($course->students)"; } - print_header("$course->shortname: $strassignstudents", - "$site->fullname", - "id\">$course->shortname -> $strassignstudents", + print_header("$course->shortname: $strassignstudents", + "$site->fullname", + "id\">$course->shortname -> $strassignstudents", "studentform.searchtext"); /// Don't allow restricted teachers to even see this page (because it contains @@ -60,10 +60,10 @@ /// Print a help notice about the need to use this page if (!$frm = data_submitted()) { - $note = get_string("assignstudentsnote"); + $note = get_string("assignstudentsnote"); if ($course->password) { - $note .= "

".get_string("assignstudentspass", "", + $note .= "

".get_string("assignstudentspass", "", "id\">$course->password"); } print_simple_box($note, "center", "50%"); @@ -113,26 +113,26 @@ $existinguserarray[] = $teacher->id; } $existinguserlist = implode(',', $existinguserarray); - + unset($existinguserarray); /// Get search results excluding any users already in this course if (!empty($frm->searchtext) and $previoussearch) { - $searchusers = get_users(true, $frm->searchtext, true, $existinguserlist, 'firstname ASC, lastname ASC', + $searchusers = get_users(true, $frm->searchtext, true, $existinguserlist, 'firstname ASC, lastname ASC', '', '', 0, 99999, 'id, firstname, lastname, email'); - $usercount = get_users(false, '', true, $studentlist); + $usercount = get_users(false, '', true, $existinguserlist); } - + /// If no search results then get potential students for this course excluding users already in course if (empty($searchusers)) { - - $usercount = get_users(false, '', true, $existinguserlist, 'firstname ASC, lastname ASC', '', '', + + $usercount = get_users(false, '', true, $existinguserlist, 'firstname ASC, lastname ASC', '', '', 0, 99999, 'id, firstname, lastname, email') ; $users = array(); - + if ($usercount <= MAX_USERS_PER_PAGE) { - $users = get_users(true, '', true, $existinguserlist, 'firstname ASC, lastname ASC', '', '', + $users = get_users(true, '', true, $existinguserlist, 'firstname ASC, lastname ASC', '', '', 0, 99999, 'id, firstname, lastname, email'); }