Skip to content
Browse files

Modified weekly course format with "People" section and sorted activi…

…ty modules
  • Loading branch information...
1 parent ef25340 commit 13c7e2719acec60a4343bb58a47c3419d6f846a4 martin committed Jun 1, 2002
Showing with 12 additions and 8 deletions.
  1. +1 −0 course/view.php
  2. +11 −8 course/weeks.php
View
1 course/view.php
@@ -47,6 +47,7 @@
$mods[$mod->id] = $mod;
$modtype[$mod->modname] = $mod->modfullname;
}
+ ksort($modtype);
}
switch ($course->format) {
View
19 course/weeks.php
@@ -33,28 +33,31 @@
// Layout the left column
- // Print all the course links on the side
+
+ // Links to people
+
+ print_simple_box("People", $align="CENTER", $width="100%", $color="$THEME->cellheading");
+ $moddata[]="<A HREF=\"../user/index.php?id=$course->id\">Participants</A>";
+ $modicon[]="<IMG SRC=\"../user/users.gif\" HEIGHT=16 WIDTH=16 ALT=\"List of everyone\">";
+ $moddata[]="<A HREF=\"../user/view.php?id=$USER->id&course=$course->id\">Edit my profile</A>";
+ $modicon[]="<IMG SRC=\"../user/user.gif\" HEIGHT=16 WIDTH=16 ALT=\"Me\">";
+ print_side_block("", $moddata, "", $modicon);
+
// Then all the links to module types
$moddata = array();
$modicon = array();
-
if ($modtype) {
foreach ($modtype as $modname => $modfullname) {
$moddata[] = "<A HREF=\"../mod/$modname/index.php?id=$course->id\">".$modfullname."s</A>";
$modicon[] = "<IMG SRC=\"../mod/$modname/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"$modfullname\">";
}
}
-
- $moddata[]="<A HREF=\"../user/index.php?id=$course->id\">Participants</A>";
- $modicon[]="<IMG SRC=\"../user/users.gif\" HEIGHT=16 WIDTH=16 ALT=\"Participants\">";
- $moddata[]="<A HREF=\"../user/view.php?id=$USER->id&course=$course->id\">Edit my info</A>";
- $modicon[]="<IMG SRC=\"../user/user.gif\" HEIGHT=16 WIDTH=16 ALT=\"Me\">";
-
print_simple_box("Activities", $align="CENTER", $width="100%", $color="$THEME->cellheading");
print_side_block("", $moddata, "", $modicon);
+
// Admin links and controls
if (isteacher($course->id)) {

0 comments on commit 13c7e27

Please sign in to comment.
Something went wrong with that request. Please try again.