8ce37cc33759f38e0f68cb53c4320a174d83bf34
[acontent.git] / docs / themes / default / tests / test_questions / long_qti_1p2.tmpl.php
1 <!-- open ended (free text) question -->
2                 <item title="Open ended question" ident="ITEM_<?php echo $this->row['question_id']; ?>">
3                         <itemmetadata>
4                                 <qtimetadata>
5                                         <qtimetadatafield>
6                                                 <fieldlabel>qmd_itemtype</fieldlabel>
7                                                 <fieldentry>String</fieldentry>
8                                         </qtimetadatafield>
9                                 </qtimetadata>
10                                 <qtimetadata>
11                                         <qtimetadatafield>
12                                                 <fieldlabel>qmd_questiontype</fieldlabel>
13                                                 <fieldentry>FIB-string</fieldentry>
14                                         </qtimetadatafield>
15                                 </qtimetadata>
16                         </itemmetadata>
17                         <presentation>
18                                 <flow>
19                                         <material>
20                                                 <mattext texttype="text/html"><?php echo $this->row['question']; ?></mattext>
21                                         </material>
22                                         <response_str ident="RESPONSE<?php echo $this->row['question_id']; ?>" rcardinality="Single">
23                                                 <?php
24                                                         $fib_columns = 20;
25                                                         $fib_rows = 1;
26
27                                                         if ($this->row['properties'] == 1){
28                                                                 $fib_columns = 5;
29                                                         } elseif ($this->row['properties'] == 2){
30                                                                 $fib_rows = 1;
31                                                         } elseif ($this->row['properties'] == 3){
32                                                                 $fib_rows = 3;
33                                                         } elseif ($this->row['properties'] == 4){
34                                                                 $fib_rows = 8;
35                                                         } 
36                                                 ?>
37                                                 <render_fib rows="<?php echo $fib_rows; ?>" columns="<?php echo $fib_columns; ?>">
38                                                         <response_label ident="Choice<?php echo $i; ?>" />
39                                                 </render_fib>
40                                         </response_str>
41                                 </flow>
42                         </presentation>
43                 </item>