id); if (!$course->category) { if (!$CFG->showsiteparticipantslist and !isteacher(SITEID)) { notice(get_string('sitepartlist0')); } if ($CFG->showsiteparticipantslist < 2 and !isteacherinanycourse()) { notice(get_string('sitepartlist1')); } } add_to_log($course->id, "user", "view all", "index.php?id=$course->id", ""); $isteacher = isteacher($course->id); $showteachers = ($page == 0 and $sort == "lastaccess" and $dir == "desc"); if ($showteachers) { $participantslink = get_string("participants"); } else { $participantslink = "id\">".get_string("participants").""; } $isseparategroups = ($course->groupmode == SEPARATEGROUPS and $course->groupmodeforce and !isteacheredit($course->id)); $currentgroup = $isseparategroups ? get_current_group($course->id) : NULL; if ($course->category) { print_header("$course->shortname: ".get_string("participants"), "$course->fullname", "id\">$course->shortname -> ". "$participantslink", "", "", true, " ", navmenu($course)); } else { print_header("$course->shortname: ".get_string("participants"), "$course->fullname", "$participantslink", "", "", true, " ", navmenu($course)); } echo '