moved code up one level to eliminate the docs subdirectory
[acontent.git] / themes / default / tests / test_questions / likert.tmpl.php
1 <p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
2
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; display: inline; white-space: nowrap;">
6                         <input type="radio" name="answers[<?php echo $this->row['question_id']; ?>]" value="<?php echo $i; ?>" id="choice_<?php echo $this->row['question_id'].'_'.$i; ?>" <?php if ($this->response == $i): ?>checked="checked"<?php endif; ?>/><label for="choice_<?php echo $this->row['question_id'].'_'.$i; ?>"><?php echo AT_print($this->row['choice_'.$i], 'tests_answers.answer'); ?></label>
7                 </li>
8         <?php endfor; ?>
9         <li style="padding: 4px; display: inline; white-space: nowrap;">
10                 <input type="radio" name="answers[<?php echo $this->row['question_id']; ?>]" value="-1" id="choice_<?php echo $this->row['question_id']; ?>_x" <?php if ($this->response == -1): ?>checked="checked"<?php endif; ?>/><label for="choice_<?php echo $this->row['question_id']; ?>_x"><em><?php echo _AT('leave_blank'); ?></em></label>
11         </li>
12 </ul>