echo '<a href="'.$CFG->wwwroot.'/course/recent.php?id='.$course->id.'">'.get_string('recentactivityreport').'</a>';
- echo '</div>';
+ echo "</div>\n";
// Firstly, have there been any new enrolments?
$users = get_recent_enrolments($course->id, $timestart);
+ //Accessibility: new users now appear in an <OL> list.
if ($users) {
echo '<div class="newusers">';
+ if (! $heading) {
+ print_headline(get_string("newusers").':', 3);
+ $heading = true;
+ $content = true;
+ }
+ echo "<ol class=\"list\">\n";
foreach ($users as $user) {
- if (! $heading) {
- print_headline(get_string("newusers").':', 3);
- $heading = true;
- $content = true;
- }
+
$fullname = fullname($user, $isteacher);
- echo '<span class="name"><a href="'.$CFG->wwwroot."/user/view.php?id=$user->id&course=$course->id\">$fullname</a></span><br />";
+ echo '<li class="name"><a href="'.$CFG->wwwroot."/user/view.php?id=$user->id&course=$course->id\">$fullname</a></li>\n";
}
- echo '</div>';
+ echo "</ol>\n</div>\n";
}
// Next, have there been any modifications to the course structure?