$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", "");
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%");
}
/// 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
$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";
$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";