remove old readme
[atutor.git] / docs / themes / default / test_questions / matching_result.tmpl.php
1 <p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
2
3 <table style="width: 100%">
4 <tr>
5         <td valign="top">
6                 <ul style="padding: 0px; margin: 0px; list-style-type: none">
7                         <?php for ($i=0; $i < 10; $i++): ?>
8                                 <?php if ($this->row['choice_'. $i] != ''): ?>
9                                         <li style="padding: 4px">
10                                                 <?php if ($this->row['answer_'.$i] == $this->answers[$i]): ?>
11                                                         <img src="<?php echo $this->base_path; ?>images/checkmark.gif" alt="<?php echo _AT('correct_answer'); ?>" title="<?php echo _AT('correct_answer'); ?>" height="16" width="16" style="vertical-align: middle" />
12                                                 <?php else: ?>
13                                                         <img src="<?php echo $this->base_path; ?>images/x.gif" alt="<?php echo _AT('wrong_answer'); ?>" title="<?php echo _AT('wrong_answer'); ?>" height="16" width="16" style="vertical-align: middle" />
14                                                         <?php if ($this->row['answer_'.$i] >= 0): ?>
15                                                                 (<?php echo $this->letters[$this->row['answer_'.$i]]; ?>)
16                                                         <?php endif; ?>
17                                                 <?php endif; ?>
18                                                 <?php if ($this->answers[$i] != '' && $this->answers[$i] >= 0): ?>
19                                                         <?php echo $this->letters[$this->answers[$i]]; ?>.
20                                                 <?php else: ?>
21                                                         -.
22                                                 <?php endif; ?>
23                                                 <?php echo $this->row['choice_'. $i]; ?>
24                                         </li>
25                                 <?php endif; ?>
26                         <?php endfor; ?>
27                 </ul>
28         </td>
29         <td valign="top">
30                 <ul style="list-style-type: none; margin: 0px; padding: 0px">
31                         <?php for ($i=0; $i < $this->num_options; $i++): ?>
32                                 <li style="padding: 4px"><?php echo $this->letters[$i]; ?>. <?php echo $this->row['option_'. $i]; ?></li>
33                         <?php endfor; ?>
34                 </ul>
35         </td>
36 </tr>
37 </table>