| @@ 212-218 (lines=7) @@ | ||
| 209 | $hide_expected_answer = true; |
|
| 210 | } |
|
| 211 | ||
| 212 | if ($resultsDisabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { |
|
| 213 | if ($showTotalScoreAndUserChoices) { |
|
| 214 | $hide_expected_answer = false; |
|
| 215 | } else { |
|
| 216 | $hide_expected_answer = true; |
|
| 217 | } |
|
| 218 | } |
|
| 219 | ||
| 220 | $hotspot_colors = array( |
|
| 221 | "", // $i starts from 1 on next loop (ugly fix) |
|
| @@ 301-307 (lines=7) @@ | ||
| 298 | $hide_expected_answer = true; |
|
| 299 | } |
|
| 300 | ||
| 301 | if ($resultsDisabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { |
|
| 302 | if ($showTotalScoreAndUserChoices) { |
|
| 303 | $hide_expected_answer = false; |
|
| 304 | } else { |
|
| 305 | $hide_expected_answer = true; |
|
| 306 | } |
|
| 307 | } |
|
| 308 | ||
| 309 | $icon = in_array($answerType, array(UNIQUE_ANSWER, UNIQUE_ANSWER_NO_OPTION)) ? 'radio':'checkbox'; |
|
| 310 | $icon .= $studentChoice?'_on':'_off'; |
|
| @@ 397-403 (lines=7) @@ | ||
| 394 | $hide_expected_answer = true; |
|
| 395 | } |
|
| 396 | ||
| 397 | if ($resultsDisabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { |
|
| 398 | if ($showTotalScoreAndUserChoices) { |
|
| 399 | $hide_expected_answer = false; |
|
| 400 | } else { |
|
| 401 | $hide_expected_answer = true; |
|
| 402 | } |
|
| 403 | } |
|
| 404 | ||
| 405 | ?> |
|
| 406 | <tr> |
|
| @@ 500-506 (lines=7) @@ | ||
| 497 | $hide_expected_answer = true; |
|
| 498 | } |
|
| 499 | ||
| 500 | if ($resultsDisabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { |
|
| 501 | if ($showTotalScoreAndUserChoices) { |
|
| 502 | $hide_expected_answer = false; |
|
| 503 | } else { |
|
| 504 | $hide_expected_answer = true; |
|
| 505 | } |
|
| 506 | } |
|
| 507 | ||
| 508 | ?> |
|
| 509 | <tr> |
|
| @@ 1116-1122 (lines=7) @@ | ||
| 1113 | $result = ''; |
|
| 1114 | $listStudentAnswerInfo = self::getAnswerInfo($answer, true); |
|
| 1115 | ||
| 1116 | if ($resultsDisabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { |
|
| 1117 | if ($showTotalScoreAndUserChoices) { |
|
| 1118 | $resultsDisabled = false; |
|
| 1119 | } else { |
|
| 1120 | $resultsDisabled = true; |
|
| 1121 | } |
|
| 1122 | } |
|
| 1123 | ||
| 1124 | // rebuild the answer with good HTML style |
|
| 1125 | // this is the student answer, right or wrong |
|