| @@ 1049-1055 (lines=7) @@ | ||
| 1046 | $result = ''; |
|
| 1047 | $listStudentAnswerInfo = self::getAnswerInfo($answer, true); |
|
| 1048 | ||
| 1049 | if ($resultsDisabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { |
|
| 1050 | if ($showTotalScoreAndUserChoices) { |
|
| 1051 | $resultsDisabled = true; |
|
| 1052 | } else { |
|
| 1053 | $resultsDisabled = false; |
|
| 1054 | } |
|
| 1055 | } |
|
| 1056 | ||
| 1057 | // rebuild the answer with good HTML style |
|
| 1058 | // this is the student answer, right or wrong |
|
| @@ 214-220 (lines=7) @@ | ||
| 211 | $hide_expected_answer = true; |
|
| 212 | } |
|
| 213 | ||
| 214 | if ($resultsDisabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { |
|
| 215 | if ($showTotalScoreAndUserChoices) { |
|
| 216 | $hide_expected_answer = true; |
|
| 217 | } else { |
|
| 218 | $hide_expected_answer = false; |
|
| 219 | } |
|
| 220 | } |
|
| 221 | ||
| 222 | $hotspot_colors = array( |
|
| 223 | "", // $i starts from 1 on next loop (ugly fix) |
|
| @@ 303-309 (lines=7) @@ | ||
| 300 | $hide_expected_answer = true; |
|
| 301 | } |
|
| 302 | ||
| 303 | if ($resultsDisabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { |
|
| 304 | if ($showTotalScoreAndUserChoices) { |
|
| 305 | $hide_expected_answer = true; |
|
| 306 | } else { |
|
| 307 | $hide_expected_answer = false; |
|
| 308 | } |
|
| 309 | } |
|
| 310 | ||
| 311 | $icon = in_array($answerType, array(UNIQUE_ANSWER, UNIQUE_ANSWER_NO_OPTION)) ? 'radio':'checkbox'; |
|
| 312 | $icon .= $studentChoice?'_on':'_off'; |
|
| @@ 399-405 (lines=7) @@ | ||
| 396 | $hide_expected_answer = true; |
|
| 397 | } |
|
| 398 | ||
| 399 | if ($resultsDisabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { |
|
| 400 | if ($showTotalScoreAndUserChoices) { |
|
| 401 | $hide_expected_answer = true; |
|
| 402 | } else { |
|
| 403 | $hide_expected_answer = false; |
|
| 404 | } |
|
| 405 | } |
|
| 406 | ||
| 407 | ?> |
|
| 408 | <tr> |
|
| @@ 502-508 (lines=7) @@ | ||
| 499 | $hide_expected_answer = true; |
|
| 500 | } |
|
| 501 | ||
| 502 | if ($resultsDisabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { |
|
| 503 | if ($showTotalScoreAndUserChoices) { |
|
| 504 | $hide_expected_answer = true; |
|
| 505 | } else { |
|
| 506 | $hide_expected_answer = false; |
|
| 507 | } |
|
| 508 | } |
|
| 509 | ||
| 510 | ?> |
|
| 511 | <tr> |
|