remove old readme
[atutor.git] / docs / themes / default / test_questions / truefalse_qti_2p1.tmpl.php
1 <<?php echo '?'; ?>xml version="1.0" encoding="<?php echo $this->encoding; ?>"<?php echo '?'; ?>>
2 <!-- true or false question (aka multiple choice with two choices) -->
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 if ($this->row['answer_0'] == 1): ?>
17                         <value>ChoiceT</value>
18                 <?php else: ?>
19                         <value>ChoiceF</value>
20                 <?php endif; ?>
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<?php echo $this->row['question_id']; ?>" shuffle="false" maxChoices="1">
29                         <prompt><?php echo $this->row['question']; ?></prompt>
30                         <simpleChoice identifier="ChoiceT" fixed="true"><?php echo _AT('true'); ?></simpleChoice> 
31                         <simpleChoice identifier="ChoiceF" fixed="true"><?php echo _AT('false'); ?></simpleChoice> 
32           </choiceInteraction>
33         </itemBody>
34
35         <?php if ($this->row['feedback']): ?>
36                 <modalFeedback outcomeIdentifier="FEEDBACK" identifier="FEEDBACK" showHide="hide"><?php echo $this->row['feedback']; ?></modalFeedback> 
37         <?php endif; ?>
38 </assessmentItem>