moved code up one level to eliminate the docs subdirectory
[acontent.git] / themes / default / tests / test_questions / multianswer.tmpl.php
1 <p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
2
3 <input type="hidden" name="answers[<?php echo $this->row['question_id']; ?>][]" value="-1" />
4
5 <ul style="padding: 0px; margin: 0px; list-style-type: none">
6         <?php for ($i=0; $i < $this->num_choices; $i++): ?>
7                 <li style="padding: 4px">
8                         <input type="checkbox" name="answers[<?php echo $this->row['question_id']; ?>][]" value="<?php echo $i; ?>" id="choice_<?php echo $this->row['question_id'].'_'.$i; ?>" <?php if (in_array($i, $this->response)): ?>checked="checked"<?php endif; ?>/><label for="choice_<?php echo $this->row['question_id'].'_'.$i; ?>"><?php echo AT_print($this->row['choice_'.$i], 'tests_questions.choice_'.$i); ?></label>
9         <?php endfor; ?>
10 </ul>