| @@ 1019-1027 (lines=9) @@ | ||
| 1016 | <td width="45%"> |
|
| 1017 | HTML; |
|
| 1018 | ||
| 1019 | if (isset($select_items[$lines_count])) { |
|
| 1020 | $s .= <<<HTML |
|
| 1021 | <div id="window_{$windowId}_answer" class="window window_right_question"> |
|
| 1022 | <strong>{$select_items[$lines_count]['letter']}.</strong> {$select_items[$lines_count]['answer']} |
|
| 1023 | </div> |
|
| 1024 | HTML; |
|
| 1025 | } else { |
|
| 1026 | $s .= ' '; |
|
| 1027 | } |
|
| 1028 | ||
| 1029 | $s .= '</td></tr>'; |
|
| 1030 | ||
| @@ 1033-1046 (lines=14) @@ | ||
| 1030 | ||
| 1031 | $lines_count++; |
|
| 1032 | ||
| 1033 | if (($lines_count - 1) == $num_suggestions) { |
|
| 1034 | while (isset($select_items[$lines_count])) { |
|
| 1035 | $s .= <<<HTML |
|
| 1036 | <tr> |
|
| 1037 | <td colspan="2"></td> |
|
| 1038 | <td> |
|
| 1039 | <strong>{$select_items[$lines_count]['letter']}</strong> |
|
| 1040 | {$select_items[$lines_count]['answer']} |
|
| 1041 | </td> |
|
| 1042 | </tr> |
|
| 1043 | HTML; |
|
| 1044 | $lines_count++; |
|
| 1045 | } |
|
| 1046 | } |
|
| 1047 | $matching_correct_answer++; |
|
| 1048 | } |
|
| 1049 | } |
|
| @@ 7460-7467 (lines=8) @@ | ||
| 7457 | //if the left side of the "matching" has been completely |
|
| 7458 | // shown but the right side still has values to show... |
|
| 7459 | ||
| 7460 | if (($lines_count - 1) == $num_suggestions) { |
|
| 7461 | // if it remains answers to shown at the right side |
|
| 7462 | while (isset($select_items[$lines_count])) { |
|
| 7463 | $s.='<b>'.$select_items[$lines_count]['letter'].'.</b>'; |
|
| 7464 | $s .= $select_items[$lines_count]['answer']; |
|
| 7465 | $lines_count++; |
|
| 7466 | } |
|
| 7467 | } |
|
| 7468 | $s .= '</div>'; |
|
| 7469 | $matching_correct_answer++; |
|
| 7470 | $s .= '</li>'; |
|