| @@ 237-262 (lines=26) @@ | ||
| 234 | ); |
|
| 235 | } |
|
| 236 | ||
| 237 | if ($show_comment) { |
|
| 238 | if ( |
|
| 239 | in_array( |
|
| 240 | $answerType, |
|
| 241 | array( |
|
| 242 | MULTIPLE_ANSWER, |
|
| 243 | MULTIPLE_ANSWER_COMBINATION, |
|
| 244 | UNIQUE_ANSWER, |
|
| 245 | UNIQUE_ANSWER_IMAGE, |
|
| 246 | UNIQUE_ANSWER_NO_OPTION, |
|
| 247 | GLOBAL_MULTIPLE_ANSWER |
|
| 248 | ) |
|
| 249 | ) |
|
| 250 | ) { |
|
| 251 | $header = Display::tag('th', get_lang('Options')); |
|
| 252 | if ($exercise_feedback == EXERCISE_FEEDBACK_TYPE_END) { |
|
| 253 | $header .= Display::tag('th', get_lang('Feedback')); |
|
| 254 | } |
|
| 255 | $s .= '<table class="table table-hover table-striped">'; |
|
| 256 | $s .= Display::tag( |
|
| 257 | 'tr', |
|
| 258 | $header, |
|
| 259 | array('style' => 'text-align:left;') |
|
| 260 | ); |
|
| 261 | } |
|
| 262 | } |
|
| 263 | ||
| 264 | $matching_correct_answer = 0; |
|
| 265 | $user_choice_array = array(); |
|
| @@ 7058-7067 (lines=10) @@ | ||
| 7055 | $s .= Display::tag('tr', $header, array('style' => 'text-align:left;')); |
|
| 7056 | } |
|
| 7057 | ||
| 7058 | if ($show_comment) { |
|
| 7059 | if (in_array($answerType, array(MULTIPLE_ANSWER, MULTIPLE_ANSWER_COMBINATION, UNIQUE_ANSWER, UNIQUE_ANSWER_NO_OPTION, GLOBAL_MULTIPLE_ANSWER))) { |
|
| 7060 | $header = Display::tag('th', get_lang('Options')); |
|
| 7061 | if ($exercise_feedback == EXERCISE_FEEDBACK_TYPE_END) { |
|
| 7062 | $header .= Display::tag('th', get_lang('Feedback')); |
|
| 7063 | } |
|
| 7064 | $s .= '<table class="data_table">'; |
|
| 7065 | $s.= Display::tag('tr', $header, array('style' => 'text-align:left;')); |
|
| 7066 | } |
|
| 7067 | } |
|
| 7068 | ||
| 7069 | $matching_correct_answer = 0; |
|
| 7070 | $user_choice_array = array(); |
|