624201cfba3ceebf2cb96069f6d21009c6a77a01
[acontent.git] / docs / themes / default / tests / test_questions / multichoice_qti_2p1.tmpl.php
1 <<?php echo '?'; ?>xml version="1.0" encoding="<?php echo $this->encoding; ?>"<?php echo '?'; ?>>
2 <!-- single answer multiple choice 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         <responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier">
15           <correctResponse>
16                 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
17                         <?php if ($this->row['answer_'.$i]): ?>
18                                 <value>Choice<?php echo $i; ?></value>
19                         <?php endif; ?>
20                 <?php endfor; ?>
21           </correctResponse>
22           <?php if ($this->row['feedback']): ?>
23                   <outcomeDeclaration identifier="FEEDBACK" cardinality="single" baseType="identifier"/>
24           <?php endif; ?>
25         </responseDeclaration>
26
27         <itemBody>
28                 <choiceInteraction responseIdentifier="RESPONSE" shuffle="false" maxChoices="1">
29                         <prompt><?php echo $this->row['question']; ?></prompt>
30                         <?php for ($i=0; $i < $this->num_choices; $i++): ?>
31                                 <simpleChoice identifier="Choice<?php echo $i; ?>" fixed="false"><?php echo $this->row['choice_'.$i]; ?></simpleChoice> 
32                         <?php endfor; ?>
33           </choiceInteraction>
34         </itemBody>
35
36         <?php if ($this->row['feedback']): ?>
37                 <modalFeedback outcomeIdentifier="FEEDBACK" identifier="FEEDBACK" showHide="hide"><?php echo $this->row['feedback']; ?></modalFeedback> 
38         <?php endif; ?>
39 </assessmentItem>