From: martin Date: Mon, 29 Jul 2002 06:53:09 +0000 (+0000) Subject: Changed to use the new functions for lists of students, teachers etc X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4b232245df8721ae7f0565cba3d423e98a104354;p=moodle.git Changed to use the new functions for lists of students, teachers etc --- diff --git a/user/index.php b/user/index.php index fa6a8e68cf..d8e6535ebd 100644 --- a/user/index.php +++ b/user/index.php @@ -29,18 +29,14 @@ $teacherlinks = isteacher($course->id); - if ( $teachers = get_records_sql("SELECT u.* FROM user u, user_teachers t - WHERE t.course = '$course->id' AND t.user = u.id - ORDER BY t.authority")) { + if ( $teachers = get_course_teachers($course->id)) { echo "

".$course->teacher."s

"; foreach ($teachers as $teacher) { print_user($teacher, $course, $teacherlinks); } } - if ($students = get_records_sql("SELECT u.* FROM user u, user_students s - WHERE s.course = '$course->id' AND s.user = u.id - ORDER BY u.lastaccess DESC")) { + if ($students = get_course_students($course->id)) { echo "

".$course->student."s

"; foreach ($students as $student) { print_user($student, $course, $teacherlinks);