1 <!-- ordering question -->
2 <item title="Ordering question" ident="ITEM_<?php echo $this->row['question_id']; ?>">
6 <fieldlabel>qmd_itemtype</fieldlabel>
7 <fieldentry>Logical Identifier</fieldentry>
14 <mattext texttype="text/html"><?php echo $this->row['question']; ?></mattext>
16 <response_lid ident="RESPONSE<?php echo $this->row['question_id']; ?>" rcardinality="Ordered">
17 <render_choice shuffle="Yes" minnumber="<?php echo $this->num_choices;?>" maxnumber="<?php echo $this->num_choices;?>">
18 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
19 <response_label ident="Choice<?php echo $i; ?>">
22 <mattext texttype="text/html"><?php echo $this->row['choice_'.$i]; ?></mattext>
35 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
36 <respcondition title="CorrectResponse">
38 <varequal respident="RESPONSE<?php echo $this->row['question_id']; ?>">Choice<?php echo $i; ?></varequal>
40 <setvar varname="Respondus_Correct" action="Add"><?php echo (isset($this->row['weight']))?$this->row['weight']/$this->num_choices:1; ?></setvar>
44 <?php if ($this->row['feedback']): ?>
45 <itemfeedback ident="FEEDBACK" view="All">
50 <mattext texttype="text/html"><?php echo $this->row['feedback']; ?></mattext>