Fixed last Explorer popup bug and added user score view
[moodle.git] / mod / scorm / view.php
index 97eae95..0765a28 100755 (executable)
                        echo "      <img src=\"pix/notattempted.gif\" alt=\"".get_string("notattempted","scorm")."\" />";
                        $incomplete = true;
                    }
-                   echo "      &nbsp;<a href=\"javascript:playSCO(".$sco->id.")\">$sco->title</a>\n    </li>\n";
+                   $score = "";
+                   if (($sco_user->cmi_core_lesson_status == "passed") || ($sco_user->cmi_core_lesson_status == "failed"))
+                       $score = "(".get_string("score","scorm").": ".$sco_user->cmi_core_score_raw.")";
+                   echo "      &nbsp;<a href=\"javascript:playSCO(".$sco->id.")\">$sco->title</a> $score\n    </li>\n";
                } else {
                    echo "      &nbsp;$sco->title\n    </li>\n";
                }