From 4d9d90c0066288df488fc5988a0288cd6afccf59 Mon Sep 17 00:00:00 2001 From: moodler <moodler> Date: Sun, 17 Aug 2003 07:29:36 +0000 Subject: [PATCH] Tweaking student page, and also making it available to ordinary teachers --- course/lib.php | 6 ++++-- course/student.php | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/course/lib.php b/course/lib.php index e5d33503bf..274251074c 100644 --- a/course/lib.php +++ b/course/lib.php @@ -752,10 +752,12 @@ function print_course_admin_links($course, $width=180) { } $admindata[]="<a href=\"teacher.php?id=$course->id\">$course->teachers...</a>"; $adminicon[]="<img src=\"$pixpath/i/users.gif\" height=16 width=16 alt=\"\">"; + } - $admindata[]="<a href=\"student.php?id=$course->id\">$course->students...</a>"; - $adminicon[]="<img src=\"$pixpath/i/users.gif\" height=16 width=16 alt=\"\">"; + $admindata[]="<a href=\"student.php?id=$course->id\">$course->students...</a>"; + $adminicon[]="<img src=\"$pixpath/i/users.gif\" height=16 width=16 alt=\"\">"; + if (isteacheredit($course->id)) { $admindata[]="<a href=\"$CFG->wwwroot/backup/backup.php?id=$course->id\">".get_string("backup")."...</a>"; $adminicon[]="<img src=\"$pixpath/i/backup.gif\" height=16 width=16 alt=\"\">"; diff --git a/course/student.php b/course/student.php index 3bc2fe6321..35f87576f6 100644 --- a/course/student.php +++ b/course/student.php @@ -84,8 +84,8 @@ /// Print the lists of existing and potential students - echo "<table cellpadding=2 cellspacing=10 align=center>"; - echo "<tr><th width=50%>$strexistingstudents$parastudents</th><th width=50%>$strpotentialstudents</th></tr>"; + echo "<table cellpadding=1 cellspacing=5 align=center>"; + echo "<tr><th width=50%>$strexistingstudents$parastudents</th><td> </td><th width=50%>$strpotentialstudents</th></tr>"; echo "<tr><td width=50% nowrap valign=top>"; /// First, show existing students for this course @@ -104,6 +104,7 @@ unset($studentarray); } + echo "<td> </td>"; echo "<td width=50% nowrap valign=top>"; /// Print list of potential students -- 2.39.5