]> git.mjollnir.org Git - moodle.git/commitdiff
Modified weekly course format with "People" section and sorted activity modules
authormartin <martin>
Sat, 1 Jun 2002 09:44:06 +0000 (09:44 +0000)
committermartin <martin>
Sat, 1 Jun 2002 09:44:06 +0000 (09:44 +0000)
course/view.php
course/weeks.php

index c36ebecc4c29663aaec5d8e419e8978194115f67..a91c9616bdc1907e92c3033cc1f515be44f87aa4 100644 (file)
@@ -47,6 +47,7 @@
             $mods[$mod->id] = $mod;
             $modtype[$mod->modname] = $mod->modfullname;
         }
+        ksort($modtype);
     }
 
     switch ($course->format) {
index c780522ff461fdafcf758cab9a525e5163bb8c26..aaad5b05b9983850172c7ae848d4f76a7ce92023 100644 (file)
     
     // 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)) {