Skip to content
Browse files

Changed to use the new functions for lists of students, teachers etc

  • Loading branch information...
1 parent 8a9e3fd commit 4b232245df8721ae7f0565cba3d423e98a104354 martin committed Jul 29, 2002
Showing with 2 additions and 6 deletions.
  1. +2 −6 user/index.php
View
8 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 "<H2 align=center>".$course->teacher."s</H2>";
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 "<H2 align=center>".$course->student."s</H2>";
foreach ($students as $student) {
print_user($student, $course, $teacherlinks);

0 comments on commit 4b23224

Please sign in to comment.
Something went wrong with that request. Please try again.