mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
Fixed up graph pages
This commit is contained in:
parent
c24d3070cc
commit
cbc83a39f3
@ -5,7 +5,7 @@
|
||||
|
||||
require_variable($id); // course id
|
||||
require_variable($user); // user id
|
||||
optional_variable($mode, "outline");
|
||||
optional_variable($mode, "graph");
|
||||
|
||||
if (! $course = get_record("course", "id", $id)) {
|
||||
error("Course id is incorrect.");
|
||||
@ -33,10 +33,10 @@
|
||||
|
||||
echo "<TABLE CELLPADDING=10 ALIGN=CENTER><TR>";
|
||||
echo "<TD>Reports: </TD>";
|
||||
if ($mode != "summary") {
|
||||
echo "<TD><A HREF=user.php?id=$course->id&user=$user->id&mode=summary>Summary</A></TD>";
|
||||
if ($mode != "graph") {
|
||||
echo "<TD><A HREF=user.php?id=$course->id&user=$user->id&mode=graph>Graph</A></TD>";
|
||||
} else {
|
||||
echo "<TD><U>Summary</U></TD>";
|
||||
echo "<TD><U>Graph</U></TD>";
|
||||
}
|
||||
if ($mode != "outline") {
|
||||
echo "<TD><A HREF=user.php?id=$course->id&user=$user->id&mode=outline>Outline</A></TD>";
|
||||
@ -54,10 +54,9 @@
|
||||
get_all_mods($course->id, $mods, $modtype);
|
||||
|
||||
switch ($mode) {
|
||||
case "summary" :
|
||||
case "graph" :
|
||||
echo "<HR>";
|
||||
echo "<CENTER><IMG SRC=\"loggraph.php?id=$course->id&user=$user->id&type=user.png\">";
|
||||
echo "<HR>";
|
||||
break;
|
||||
|
||||
case "outline" :
|
||||
|
Loading…
x
Reference in New Issue
Block a user