id); add_to_log($course->id, "course", "recent", "recent.php?id=$course->id", "$course->id"); $strrecentactivity = get_string("recentactivity"); $loggedinas = "

".user_login_string($course, $USER)."

"; print_header("$course->fullname: $strrecentactivity", "$course->fullname", "id\">$course->shortname -> $strrecentactivity", "", "", true, "", $loggedinas); get_all_mods($course->id, $mods, $modnames, $modnamesplural, $modnamesused); $heading = ""; foreach ($day_list as $count) { if ($count == "1") $day = $strday; else $day = $strdays; $heading = $heading . "wwwroot/course/recent.php?id=$id&days=$count\"> $count $day | "; } $heading = $strsince . ": wwwroot/course/recent.php?id=$id\">$strlastlogin" . " | " . $heading; print_heading($heading); if (empty($days)) { $timestart = $USER->lastlogin; } else { $timestart = time() - ($days * 3600 * 24); } print_heading(get_string("activitysince", "", userdate($timestart))); $sections = get_all_sections($course->id); for ($i=0; $i<=$course->numsections; $i++) { if (isset($sections[$i])) { // should always be true $section = $sections[$i]; if ($section->sequence) { echo "
"; echo "

"; switch ($course->format) { case "weeks": print_string("week"); break; case "topics": print_string("topic"); break; default: print_string("section"); break; } echo " $i

"; echo ""; } } } print_footer($course); ?>