moved code up one level to eliminate the docs subdirectory
[acontent.git] / themes / default / tests / test_questions / matching.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 < $this->num_choices; $i++): ?>
8                                 <li style="padding: 4px">
9                                 <select name="answers[<?php echo $this->row['question_id']; ?>][<?php echo $i; ?>]">
10                                         <option value="-1" <?php if ('' === $this->response[$i] || -1 == $this->response[$i]): ?>selected="selected"<?php endif; ?>>-</option>
11                                         <?php for ($j=0; $j < $this->num_options; $j++): ?>
12                                                 <option value="<?php echo $j; ?>" <?php if (is_numeric($this->response[$i]) && $j == $this->response[$i]): ?>selected="selected"<?php endif; ?>><?php echo $this->letters[$j]; ?></option>
13                                         <?php endfor; ?>
14                                 </select>
15                                 <?php echo AT_print($this->row['choice_'. $i], 'tests_questions.choice_'.$i); ?>
16                                 </li>
17                         <?php endfor; ?>
18                 </ul>
19         </td>
20         <td valign="top">
21                 <ul style="list-style-type: none; margin: 0px; padding: 0px">
22                         <?php for ($i=0; $i < $this->num_options; $i++): ?>
23                                 <li style="padding: 4px"><?php echo $this->letters[$i]; ?>. <?php echo AT_print($this->row['option_'. $i], 'tests_questions.option_'.$i); ?></li>
24                         <?php endfor; ?>
25                 </ul>
26         </td>
27 </tr>
28 </table>