1 <p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
3 <table style="width: 100%">
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>
15 <?php echo AT_print($this->row['choice_'. $i], 'tests_questions.choice_'.$i); ?>
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>