id); if (! $user = get_record("user", "id", $user)) { error("User ID is incorrect"); } if (!isteacher($course->id) and $user->id != $USER->id ) { error("You are not allowed to look at this page"); } add_to_log($course->id, "course", "user record", "user.php?id=$course->id&user=$user->id", "$user->id"); print_header("$course->shortname: Activity Report", "$course->fullname", "id\">$course->shortname -> id\">Participants -> id&course=$course->id\">$user->firstname $user->lastname -> Activity Report ($mode)", ""); print_heading("$user->firstname $user->lastname"); echo ""; echo ""; if ($mode != "summary") { echo ""; } else { echo ""; } if ($mode != "outline") { echo ""; } else { echo ""; } if ($mode != "complete") { echo ""; } else { echo ""; } echo "
Reports: id&user=$user->id&mode=summary>SummarySummaryid&user=$user->id&mode=outline>OutlineOutlineid&user=$user->id&mode=complete>CompleteComplete
"; get_all_mods($course->id, $mods, $modtype); switch ($mode) { case "summary" : echo "

Not done yet

"; echo "

Graph goes here that shows accesses by day over the course

"; echo "
"; echo "

Table goes here that summarises all activity by this student by module. eg 3/7 journals done, 3/3 surveys, 12 posts in all discussions. Each of these are links so that you can drill down to see all the surveys on one page, or all the posts, or all their journals."; break; case "outline" : case "complete" : default: $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 ""; } } } break; } print_footer($course); function print_outline_row($mod, $instance, $info) { $image = "modname/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"$mod->modfullname\">"; echo "$image"; echo ""; echo "modfullname\""; echo " HREF=\"../mod/$mod->modname/view.php?id=$mod->id\">$instance->name"; echo "   "; echo "$info"; } ?>