';
echo '| ';
- echo '';
+ echo '';
echo ' | ';
echo '';
echo "$answerId - $answer";
@@ -552,31 +553,31 @@ class ExerciseShowFunctions
|
|
|
getColorResponse(
- $studentChoice,
- $answerCorrect,
- $newOptions[$studentChoiceDegree]['position']
- );
- if ($degreeCertaintyColor == "#088A08" || $degreeCertaintyColor == "#FE2E2E") {
- $color = "#FFFFFF";
- } else {
- $color = "#000000";
- }
- $responseCode = $question->getCodeResponse(
- $studentChoice,
- $answerCorrect,
- $newOptions[$studentChoiceDegree]['position']
- );
+ $degreeCertaintyColor = $question->getColorResponse(
+ $studentChoice,
+ $answerCorrect,
+ $newOptions[$studentChoiceDegree]['position']
+ );
+ if ($degreeCertaintyColor == "#088A08" || $degreeCertaintyColor == "#FE2E2E") {
+ $color = "#FFFFFF";
+ } else {
+ $color = "#000000";
+ }
+ $responseCode = $question->getCodeResponse(
+ $studentChoice,
+ $answerCorrect,
+ $newOptions[$studentChoiceDegree]['position']
+ );
?>
'.nl2br($answerComment).'';
- }
+ $color = "black";
+ if (isset($newOptions[$studentChoice])) {
+ echo ''.nl2br($answerComment).'';
+ }
?>
|