1 <!-- single answer multiple choice question -->
2 <item title="Multiple choice question" ident="ITEM_<?php echo $this->row['question_id']; ?>">
6 <fieldlabel>qmd_itemtype</fieldlabel>
7 <fieldentry>Logical Identifier</fieldentry>
12 <fieldlabel>qmd_questiontype</fieldlabel>
13 <fieldentry>Multiple-choice</fieldentry>
20 <mattext texttype="text/html"><?php echo $this->row['question']; ?></mattext>
22 <response_lid ident="RESPONSE<?php echo $this->row['question_id']; ?>" rcardinality="Single">
23 <render_choice shuffle="No" minnumber="1" maxnumber="1">
24 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
25 <response_label ident="Choice<?php echo $i; ?>">
28 <mattext texttype="text/html"><?php echo $this->row['choice_'.$i]; ?></mattext>
41 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
42 <?php if ($this->row['answer_'.$i]): ?>
43 <respcondition title="CorrectResponse">
45 <varequal respident="RESPONSE<?php echo $this->row['question_id']; ?>">Choice<?php echo $i; ?></varequal>
47 <setvar varname="que_score" action="Set"><?php echo (isset($this->row['weight']))?$this->row['weight']:1; ?></setvar>
52 <?php if ($this->row['feedback']): ?>
53 <itemfeedback ident="FEEDBACK" view="All">
58 <mattext texttype="text/html"><?php echo $this->row['feedback']; ?></mattext>