moved code up one level to eliminate the docs subdirectory
[acontent.git] / 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                                         <qtimetadatafield>
10                                                 <fieldlabel>qmd_questiontype</fieldlabel>
11                                                 <fieldentry>FIB-string</fieldentry>
12                                         </qtimetadatafield>
13                     <qtimetadatafield>
14                         <fieldlabel>cc_profile</fieldlabel>
15                         <fieldentry>cc.fib.v0p1</fieldentry>
16                     </qtimetadatafield>
17                     <qtimetadatafield>
18                         <fieldlabel>cc_weighting</fieldlabel>
19                         <fieldentry><?php echo $this->weight; ?></fieldentry>
20                     </qtimetadatafield>
21                                 </qtimetadata>
22                         </itemmetadata>
23                         <presentation>
24                                 <flow>
25                                         <material>
26                                                 <mattext texttype="text/html"><?php echo $this->row['question']; ?></mattext>
27                                         </material>
28                                         <response_str ident="RESPONSE<?php echo $this->row['question_id']; ?>" rcardinality="Single">
29                                                 <?php
30                                                         $fib_columns = 20;
31                                                         $fib_rows = 1;
32
33                                                         if ($this->row['properties'] == 1){
34                                                                 $fib_columns = 5;
35                                                         } elseif ($this->row['properties'] == 2){
36                                                                 $fib_rows = 1;
37                                                         } elseif ($this->row['properties'] == 3){
38                                                                 $fib_rows = 3;
39                                                         } elseif ($this->row['properties'] == 4){
40                                                                 $fib_rows = 8;
41                                                         } 
42                                                 ?>
43                                                 <render_fib rows="<?php echo $fib_rows; ?>" columns="<?php echo $fib_columns; ?>">
44                                                         <response_label ident="Choice<?php echo $i; ?>" />
45                                                 </render_fib>
46                                         </response_str>
47                                 </flow>
48                         </presentation>
49                 </item>