First step to SCORM2004, new communication subsystem
[moodle.git] / mod / scorm / index.php
index 48f5c8b..7bd56e4 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
 
@@ -8,12 +8,7 @@
         error("Course ID is incorrect");
     }
 
-    if ($course->category) {
-        require_login($course->id);
-        $navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
-    } else {
-        $navigation = '';
-    }
+    require_course_login($course->id);
 
     add_to_log($course->id, "scorm", "view all", "index.php?id=$course->id", "");
 
@@ -25,7 +20,7 @@
     $strsummary = get_string("summary");
     $strlastmodified = get_string("lastmodified");
 
-    print_header("$course->shortname: $strscorms", "$course->fullname", "$navigation $strscorms", 
+    print_header_simple("$strscorms", "", "$strscorms",
                  "", "", true, "", navmenu($course));
 
     if ($course->format == "weeks" or $course->format == "topics") {
 
     if ($course->format == "weeks") {
         $table->head  = array ($strweek, $strname, $strsummary);
-        $table->align = array ("CENTER", "LEFT", "LEFT");
+        $table->align = array ("center", "left", "left");
     } else if ($course->format == "topics") {
         $table->head  = array ($strtopic, $strname, $strsummary);
-        $table->align = array ("CENTER", "LEFT", "LEFT");
+        $table->align = array ("center", "left", "left");
     } else {
         $table->head  = array ($strlastmodified, $strname, $strsummary);
-        $table->align = array ("LEFT", "LEFT", "LEFT");
+        $table->align = array ("left", "left", "left");
     }
 
     foreach ($scorms as $scorm) {
                 $tt = "$scorm->section";
             }
         } else {
-            $tt = "<FONT SIZE=1>".userdate($scorm->timemodified);
+            $tt = "<font size=\"1\">".userdate($scorm->timemodified);
         }
         if (!$scorm->visible) {
            //Show dimmed if the mod is hidden
-           $table->data[] = array ($tt, "<A class=\"dimmed\" HREF=\"view.php?id=$scorm->coursemodule\">$scorm->name</A>",
+           $table->data[] = array ($tt, "<a class=\"dimmed\" href=\"view.php?id=$scorm->coursemodule\">$scorm->name</a>",
                                    text_to_html($scorm->summary) );
         } else {
            //Show normal if the mod is visible
-           $table->data[] = array ($tt, "<A HREF=\"view.php?id=$scorm->coursemodule\">$scorm->name</A>",
+           $table->data[] = array ($tt, "<a href=\"view.php?id=$scorm->coursemodule\">$scorm->name</a>",
                                    text_to_html($scorm->summary) );
         }
     }
 
-    echo "<BR>";
+    echo "<br />";
 
     print_table($table);
 
     print_footer($course);
 
+
 ?>