Permalink
Browse files

Fixes to Activity reports

  • Loading branch information...
1 parent bbfe835 commit 82f5285f5f5fe570a4c8a1cbc8dbc714a433bde5 martin committed Jul 23, 2002
Showing with 12 additions and 5 deletions.
  1. +12 −1 course/user.php
  2. +0 −4 mod/journal/user.php
View
@@ -53,7 +53,10 @@
switch ($mode) {
case "summary" :
- echo "<P>Not supported yet</P>";
+ echo "<P>Not done yet</P>";
+ echo "<P>Graph goes here that shows accesses by day over the course</P>";
+ echo "<HR>";
+ echo "<P>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" :
@@ -93,7 +96,15 @@
$output = include($userfile);
print_outline_row($mod, $instance, $output);
} else {
+
+ $image = "<IMG SRC=\"../mod/$mod->modname/icon.gif\" ".
+ "HEIGHT=16 WIDTH=16 ALT=\"$mod->modfullname\">";
+ echo "<H3>$image $mod->modfullname: ".
+ "<A HREF=\"$CFG->wwwroot/mod/$mod->modname/view.php?id=$mod->id\">".
+ "$instance->name</A></H3>";
+ echo "<UL>";
include($userfile);
+ echo "</UL>";
}
}
}
View
@@ -40,9 +40,6 @@ function user_journal_outline($course, $user, $mod, $journal) {
function user_journal_complete($course, $user, $mod, $journal) {
global $CFG, $THEME;
- echo "<H3>Journal: <A HREF=\"$CFG->wwwroot/mod/journal/view.php?id=$mod->id\">$journal->name</A></H3>";
- echo "<UL>";
-
if ($entry = get_record_sql("SELECT * FROM journal_entries
WHERE user='$user->id' AND journal='$journal->id'")) {
@@ -74,7 +71,6 @@ function user_journal_complete($course, $user, $mod, $journal) {
} else {
echo "No entry";
}
- echo "</UL>";
}
?>

0 comments on commit 82f5285

Please sign in to comment.