From: moodler Date: Sun, 17 Aug 2003 07:14:02 +0000 (+0000) Subject: Some tidy-ups for the students page X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c34509b070819ff61fab108abe79824800fb60c5;p=moodle.git Some tidy-ups for the students page --- diff --git a/course/student.php b/course/student.php index e900b12ec0..d70004d305 100644 --- a/course/student.php +++ b/course/student.php @@ -35,6 +35,7 @@ $strsearchresults = get_string("searchresults"); $strsearchagain = get_string("searchagain"); $strtoomanytoshow = get_string("toomanytoshow"); + $strstudents = get_string("students"); if ($search) { $searchstring = $strsearchagain; @@ -42,6 +43,12 @@ $searchstring = $strsearch; } + if ($course->students != $strstudents) { + $parastudents = " ($course->students)"; + } else { + $parastudents = ""; + } + print_header("$course->shortname: $strassignstudents", "$site->fullname", "id\">$course->shortname -> $strassignstudents", ""); @@ -67,7 +74,7 @@ if (empty($add) and empty($remove)) { $note = get_string("assignstudentsnote"); if ($course->password) { - $note .= "

".get_string("assignstudentspass", "", $course->password); + $note .= "

".get_string("assignstudentspass", "", "id\">$course->password"); } print_simple_box($note, "center", "50%"); } @@ -78,7 +85,7 @@ /// Print the lists of existing and potential students echo ""; - echo ""; + echo ""; echo "
$strexistingstudents$strpotentialstudents
$strexistingstudents$parastudents$strpotentialstudents
"; /// First, show existing students for this course diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 87fa7247ab..7fb3feb4a3 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -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";