]> git.mjollnir.org Git - moodle.git/commitdiff
added little edit icons on participants list, see bug 1896
authorgustav_delius <gustav_delius>
Sat, 4 Sep 2004 13:51:19 +0000 (13:51 +0000)
committergustav_delius <gustav_delius>
Sat, 4 Sep 2004 13:51:19 +0000 (13:51 +0000)
user/index.php

index dec2266489758b7e561e335d3ef802285d0f9ef4..270d98e23b7071d8a33cf52821edd1e2cb69cf80 100644 (file)
                       // do not have to be shown as users as well. Only relevant on site course.
     if ($showteachers) {
         if ($teachers = get_course_teachers($course->id)) {
-            echo "<h2 align=\"center\">$course->teachers</h2>";
+            echo "<h2 align=\"center\">$course->teachers";
+            if (isadmin() or ($course->category and (iscreator() or ($isteacheredit and !empty($CFG->teacherassignteachers))))) {
+                echo ' <a href="../course/teacher.php?id='.$course->id.'">';
+                echo '<img src="'.$CFG->pixpath.'/i/edit.gif" height="16" width="16" alt=""></a>';
+            }
+            echo '</h2>';
             if($compactmode) {
                 $exceptions .= implode(',', array_keys($teachers));
                 print_user_table($teachers, $isteacher);
         }
     }
 
-    echo "<h2 align=center>$totalcount $course->students</h2>";
+    echo "<h2 align=center>$totalcount $course->students";
+    if (isteacheredit($course->id)) {
+        echo ' <a href="../course/student.php?id='.$course->id.'">';
+        echo '<img src="'.$CFG->pixpath.'/i/edit.gif" height="16" width="16" alt=""></a>';
+    }
+    echo '</h2>';
 
     if (($CFG->longtimenosee < 500) and (!$page) and ($sort == "lastaccess")) {
         echo "<center><p><font size=1>(";