| @@ 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> |
|
| @@ 1058-1064 (lines=7) @@ | ||
| 1055 | $result = ''; |
|
| 1056 | $listStudentAnswerInfo = self::getAnswerInfo($answer, true); |
|
| 1057 | ||
| 1058 | if ($resultsDisabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { |
|
| 1059 | if ($showTotalScoreAndUserChoices) { |
|
| 1060 | $resultsDisabled = false; |
|
| 1061 | } else { |
|
| 1062 | $resultsDisabled = true; |
|
| 1063 | } |
|
| 1064 | } |
|
| 1065 | ||
| 1066 | // rebuild the answer with good HTML style |
|
| 1067 | // this is the student answer, right or wrong |
|