Modified user score visualization
authorbobopinna <bobopinna>
Tue, 29 Jun 2004 08:02:39 +0000 (08:02 +0000)
committerbobopinna <bobopinna>
Tue, 29 Jun 2004 08:02:39 +0000 (08:02 +0000)
mod/scorm/playscorm.php
mod/scorm/view.php

index 06a8ee1..5eabc85 100755 (executable)
                            $incomplete = true;
                        }
                        $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.")";
+                       if ($sco_user->cmi_core_score_raw > 0)
+                           $score = "(".get_string("score","scorm").":&nbsp;".$sco_user->cmi_core_score_raw.")";
                        echo "      &nbsp;$startbold<a href=\"javascript:playSCO(".$sco->id.");\">$sco->title</a> $score$endbold\n    </li>\n";
                    } else {
                        echo "      &nbsp;$sco->title\n    </li>\n";
index 0765a28..c456c8b 100755 (executable)
                        $incomplete = true;
                    }
                    $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.")";
+                   if ($sco_user->cmi_core_score_raw > 0)
+                           $score = "(".get_string("score","scorm").":&nbsp;".$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";