]> git.mjollnir.org Git - moodle.git/commitdiff
Added link in sco title for launch the sco in browse mode
authorbobopinna <bobopinna>
Thu, 26 Oct 2006 11:18:00 +0000 (11:18 +0000)
committerbobopinna <bobopinna>
Thu, 26 Oct 2006 11:18:00 +0000 (11:18 +0000)
mod/scorm/report.php

index ea4bf823b19081b4c6252f594f275cfb8b532208..ed12a39b6ce13ab45b26257dfa6fc3e04836d74b 100755 (executable)
@@ -96,6 +96,7 @@
 
     if (empty($b)) {
         if (empty($a)) {
+            // No options, show the global scorm report
             if ($scousers=get_records_select("scorm_scoes_track", "scormid='$scorm->id' GROUP BY userid,scormid", "", "userid,scormid")) {
                 $table = new stdClass();
                 $table->head = array('&nbsp;', get_string('name'));
             print_table($table);
         } else {
             if (!empty($user)) {
+                // User SCORM report
                 if ($scoes = get_records_select("scorm_scoes","scorm='$scorm->id' ORDER BY id")) {
                     if (!empty($userdata)) {
                         print_simple_box_start('center');
             }
         }
     } else {
+        // User SCO report
         if (!empty($userdata)) {
             print_simple_box_start('center');
-            print_heading(format_string($sco->title));
+            //print_heading(format_string($sco->title));
+            print_heading('<a href="'.$CFG->wwwroot.'/mod/scorm/player.php?a='.$scorm->id.'&mode=browse&scoid='.$sco->id.'" target="_new">'.format_string($sco->title).'</a>'); 
             echo '<div align="center">'."\n";
             print_user_picture($user, $course->id, $userdata->picture, false, false);
             echo "<a href=\"$CFG->wwwroot/user/view.php?id=$user&course=$course->id\">".