1 <p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
3 <ul style="padding: 0px; margin: 0px; list-style-type: none">
4 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
5 <li style="padding: 4px">
6 <select name="answers[<?php echo $this->row['question_id']; ?>][<?php echo $i; ?>]" id="choice_<?php echo $this->row['question_id'].'_'.$i; ?>" />
7 <option value="-1">-</option>
8 <?php for ($j=0; $j < $this->num_choices; $j++): ?>
9 <option value="<?php echo $j; ?>"<?php if (is_numeric($this->response[$i]) && $j == $this->response[$i]): ?>selected="selected"<?php endif; ?>><?php echo ($j+1); ?></option>
11 </select> <label for="choice_<?php echo $this->row['question_id'].'_'.$i; ?>"><?php echo AT_print($this->row['choice_'.$i], 'tests_questions.choice_'.$i); ?></label>