| @@ 1000-1008 (lines=9) @@ | ||
| 997 | <td width="45%"> |
|
| 998 | HTML; |
|
| 999 | ||
| 1000 | if (isset($select_items[$lines_count])) { |
|
| 1001 | $s .= <<<HTML |
|
| 1002 | <div id="window_{$windowId}_answer" class="window window_right_question"> |
|
| 1003 | <strong>{$select_items[$lines_count]['letter']}.</strong> {$select_items[$lines_count]['answer']} |
|
| 1004 | </div> |
|
| 1005 | HTML; |
|
| 1006 | } else { |
|
| 1007 | $s .= ' '; |
|
| 1008 | } |
|
| 1009 | ||
| 1010 | $s .= '</td></tr>'; |
|
| 1011 | ||
| @@ 1014-1027 (lines=14) @@ | ||
| 1011 | ||
| 1012 | $lines_count++; |
|
| 1013 | ||
| 1014 | if (($lines_count - 1) == $num_suggestions) { |
|
| 1015 | while (isset($select_items[$lines_count])) { |
|
| 1016 | $s .= <<<HTML |
|
| 1017 | <tr> |
|
| 1018 | <td colspan="2"></td> |
|
| 1019 | <td> |
|
| 1020 | <strong>{$select_items[$lines_count]['letter']}</strong> |
|
| 1021 | {$select_items[$lines_count]['answer']} |
|
| 1022 | </td> |
|
| 1023 | </tr> |
|
| 1024 | HTML; |
|
| 1025 | $lines_count++; |
|
| 1026 | } |
|
| 1027 | } |
|
| 1028 | $matching_correct_answer++; |
|
| 1029 | } |
|
| 1030 | } |
|
| @@ 7398-7405 (lines=8) @@ | ||
| 7395 | //if the left side of the "matching" has been completely |
|
| 7396 | // shown but the right side still has values to show... |
|
| 7397 | ||
| 7398 | if (($lines_count - 1) == $num_suggestions) { |
|
| 7399 | // if it remains answers to shown at the right side |
|
| 7400 | while (isset($select_items[$lines_count])) { |
|
| 7401 | $s.='<b>'.$select_items[$lines_count]['letter'].'.</b>'; |
|
| 7402 | $s .= $select_items[$lines_count]['answer']; |
|
| 7403 | $lines_count++; |
|
| 7404 | } |
|
| 7405 | } |
|
| 7406 | $s .= '</div>'; |
|
| 7407 | $matching_correct_answer++; |
|
| 7408 | $s .= '</li>'; |
|