]> git.mjollnir.org Git - moodle.git/commitdiff
Tweaking student page, and also making it available to ordinary teachers
authormoodler <moodler>
Sun, 17 Aug 2003 07:29:36 +0000 (07:29 +0000)
committermoodler <moodler>
Sun, 17 Aug 2003 07:29:36 +0000 (07:29 +0000)
course/lib.php
course/student.php

index e5d33503bfe465a0e06f13fa0bdf89cf8a382512..274251074c23dd9a096eb4710fa224392e76b6ba 100644 (file)
@@ -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=\"\">";
         
index 3bc2fe63219c591d9a0b1b673babb9ca9884482a..35f87576f6395ec862419e79dd581c7924073227 100644 (file)
@@ -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>&nbsp;</td><th width=50%>$strpotentialstudents</th></tr>";
     echo "<tr><td width=50% nowrap valign=top>";
 
 /// First, show existing students for this course
         unset($studentarray);
     }
 
+    echo "<td>&nbsp;</td>";
     echo "<td width=50% nowrap valign=top>";
 
 /// Print list of potential students