]> git.mjollnir.org Git - moodle.git/commitdiff
Some tidy-ups for the students page
authormoodler <moodler>
Sun, 17 Aug 2003 07:14:02 +0000 (07:14 +0000)
committermoodler <moodler>
Sun, 17 Aug 2003 07:14:02 +0000 (07:14 +0000)
course/student.php
lang/en/moodle.php

index e900b12ec0f5d95ee25a1ae6faa3f1cd726119a0..d70004d3055494c51dd469c10e0bcc06cec2f50e 100644 (file)
@@ -35,6 +35,7 @@
     $strsearchresults  = get_string("searchresults");
     $strsearchagain   = get_string("searchagain");
     $strtoomanytoshow   = get_string("toomanytoshow");
+    $strstudents   = get_string("students");
 
     if ($search) {
         $searchstring = $strsearchagain;
         $searchstring = $strsearch;
     }
 
+    if ($course->students != $strstudents) {
+        $parastudents = " ($course->students)";
+    } else {
+        $parastudents = "";
+    }
+
        print_header("$course->shortname: $strassignstudents", 
                  "$site->fullname", 
                  "<a href=\"view.php?id=$course->id\">$course->shortname</a> -> $strassignstudents", "");
@@ -67,7 +74,7 @@
     if (empty($add) and empty($remove)) {
         $note = get_string("assignstudentsnote");
         if ($course->password) {
-            $note .= "<p>".get_string("assignstudentspass", "", $course->password);
+            $note .= "<p>".get_string("assignstudentspass", "", "<a href=\"edit.php?id=$course->id\">$course->password</a>");
         }
         print_simple_box($note, "center", "50%");
     }
@@ -78,7 +85,7 @@
 /// Print the lists of existing and potential students
 
     echo "<table cellpadding=2 cellspacing=10 align=center>";
-    echo "<tr><th width=50%>$strexistingstudents</th><th width=50%>$strpotentialstudents</th></tr>";
+    echo "<tr><th width=50%>$strexistingstudents$parastudents</th><th width=50%>$strpotentialstudents</th></tr>";
     echo "<tr><td width=50% nowrap valign=top>";
 
 /// First, show existing students for this course
index 87fa7247ab5359e1870b7f948bfd0a1393086138..7fb3feb4a3243867625e632544dbf0e60b3a6c4b 100644 (file)
@@ -60,7 +60,7 @@ $string['areyousuretorestorethis'] = "Are you sure to restore it ?";
 $string['assessment'] = "Assessment";
 $string['assignadmins'] = "Assign admins";
 $string['assigncreators'] = "Assign creators";
-$string['assignstudents'] = "Assign students";
+$string['assignstudents'] = "Enroll students";
 $string['assignstudentsnote'] = "Note: it may not be necessary to use this page, since it is possible for students to enrol themselves in this course.";
 $string['assignstudentspass'] = "All you may need to do is notify your students of the enrolment key for this course, which is currently set to: '\$a'";
 $string['assignteachers'] = "Assign teachers";
@@ -291,7 +291,7 @@ $string['existingcourse'] = "Existing course";
 $string['existingcourseadding'] = "Existing course, adding data to it";
 $string['existingcoursedeleting'] = "Existing course, deleting it first";
 $string['existingcreators'] = "Existing course creators";
-$string['existingstudents'] = "Existing students";
+$string['existingstudents'] = "Enrolled students";
 $string['existingteachers'] = "Existing teachers";
 $string['feedback'] = "Feedback";
 $string['filemissing'] = "\$a is missing";