AC_4897, AC_4898, AC_4899: Multifile uploader fixes.
[acontent.git] / themes / default / tests / test_questions / likert_qti_1p2.tmpl.php
1 <!-- likert question (aka multiple choice with no correct answer) -->
2                 <item title="Multiple choice question" ident="ITEM_<?php echo $this->row['question_id']; ?>">
3                         <itemmetadata>
4                                 <qtimetadata>
5                                         <qtimetadatafield>
6                                                 <fieldlabel>qmd_itemtype</fieldlabel>
7                                                 <fieldentry>Logical Identifier</fieldentry>
8                                         </qtimetadatafield>
9                                         <qtimetadatafield>
10                                                 <fieldlabel>qmd_questiontype</fieldlabel>
11                                                 <fieldentry>Multiple-choice</fieldentry>
12                                         </qtimetadatafield>
13                     <qtimetadatafield>
14                         <fieldlabel>cc_profile</fieldlabel>
15                         <fieldentry>cc.mutliple_choice.v0p1</fieldentry>
16                     </qtimetadatafield>
17                                 </qtimetadata>
18                         </itemmetadata>
19                         <presentation>
20                                 <flow>
21                                         <material>
22                                                 <mattext texttype="text/html"><?php echo $this->row['question']; ?></mattext>
23                                         </material>
24                                         <response_lid ident="RESPONSE<?php echo $this->row['question_id']; ?>" rcardinality="Single">
25                                                 <render_choice shuffle="No" minnumber="1" maxnumber="1">
26                                                         <flow_label>
27                                                         <?php for ($i=0; $i < $this->num_choices; $i++): ?>
28                                                                 <response_label ident="Choice<?php echo $i; ?>">        
29                                                                         <material>
30                                                                                 <mattext texttype="text/html"><?php echo $this->row['choice_'.$i]; ?></mattext>
31                                                                         </material>
32                                                                 </response_label>
33                                                         <?php endfor; ?>
34                                                         </flow_label>
35                                                 </render_choice>
36                                         </response_lid>
37                                 </flow>
38                         </presentation>
39
40                         <resprocessing>
41                                 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
42                                 <respcondition title="CorrectResponse">
43                                         <conditionvar>                                  
44                                                 <varequal respident="RESPONSE<?php echo $this->row['question_id']; ?>">Choice<?php echo $i; ?></varequal>
45                                         </conditionvar>
46                                         <setvar varname="que_score" action="Set"><?php echo (isset($this->row['weight']))?$this->row['weight']:1; ?></setvar>
47                                 </respcondition>
48                                 <?php endfor; ?>
49                         </resprocessing>
50                 </item>