move code up one directory
[atutor.git] / themes / default / test_questions / ordering_qti_2p1.tmpl.php
1 <<?php echo '?'; ?>xml version="1.0" encoding="<?php echo $this->encoding; ?>"<?php echo '?'; ?>>
2 <!-- ordering question -->
3 <assessmentItem 
4         xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1" 
5         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
6         xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 imsqti_v2p1.xsd" 
7         identifier="ATUTOR-<?php echo $this->row['question_id']; ?>" 
8         title="<?php echo $this->row['question']; ?>" 
9         adaptive="false" 
10         timeDependent="false"
11         toolname="ATutor - atutor.ca"
12         toolversion="<?php echo VERSION; ?>"
13 >
14
15         <responseDeclaration identifier="RESPONSE" cardinality="ordered" baseType="identifier">
16                 <correctResponse>
17                 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
18                         <value>Choice<?php echo $i; ?></value>
19                 <?php endfor; ?>
20                 </correctResponse>
21           <?php if ($this->row['feedback']): ?>
22                   <outcomeDeclaration identifier="FEEDBACK" cardinality="multiple" baseType="identifier"/>
23           <?php endif; ?>
24         </responseDeclaration>
25
26         <itemBody>
27                 <orderInteraction responseIdentifier="RESPONSE" shuffle="true">
28                         <prompt><?php echo $this->row['question']; ?></prompt>
29                         <?php for ($i=0; $i < $this->num_choices; $i++): ?>
30                                 <simpleChoice identifier="Choice<?php echo $i; ?>" fixed="false"><?php echo $this->row['choice_'.$i]; ?></simpleChoice> 
31                         <?php endfor; ?>
32                 </orderInteraction>
33         </itemBody>
34         <?php if ($this->row['feedback']): ?>
35                 <modalFeedback outcomeIdentifier="FEEDBACK" identifier="FEEDBACK<?php echo $this->row['question_id'];?>" showHide="hide"><?php echo $this->row['feedback']; ?></modalFeedback> 
36         <?php endif; ?>
37 </assessmentItem>