1 <!-- matching question with partial marks -->
2 <item title="Mathcing question" ident="ITEM_<?php echo $this->row['question_id']; ?>">
6 <fieldlabel>qmd_itemtype</fieldlabel>
7 <fieldentry>Logical Groups</fieldentry>
10 <fieldlabel>qmd_questiontype</fieldlabel>
11 <fieldentry>Drag-and-drop</fieldentry>
14 <fieldlabel>cc_profile</fieldlabel>
15 <fieldentry>cc.pattern_match.v0p1</fieldentry>
18 <fieldlabel>cc_weighting</fieldlabel>
19 <fieldentry><?php echo $this->weight; ?></fieldentry>
26 <mattext texttype="text/html"><?php echo $this->row['question']; ?></mattext>
28 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
29 <response_lid ident="RESPONSE-<?php echo md5($this->row['question_id'].$i); ?>" rcardinality="Multiple">
31 <mattext texttype="text/html"><?php echo $this->row['choice_'.$i]; ?></mattext>
33 <render_choice shuffle="No">
34 <?php for ($j=0; $j < $this->num_options; $j++): ?>
35 <response_label ident="Option<?php echo $j; ?>">
38 <mattext texttype="text/html"><?php echo $this->row['option_'.$j]; ?></mattext>
51 <decvar varname="SCORE" />
53 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
54 <?php if ($this->row['answer_'.$i] > -1): ?>
55 <respcondition title="CorrectResponse">
57 <varequal respident="RESPONSE-<?php echo md5($this->row['question_id'].$i); ?>">Option<?php echo $this->row['answer_'.$i]; ?></varequal>
59 <setvar varname="Respondus_Correct"><?php echo (isset($this->row['weight']))?$this->row['weight']:1; ?></setvar>
64 <?php if ($this->row['feedback']): ?>
65 <itemfeedback ident="FEEDBACK">
70 <mattext texttype="text/html"><?php echo $this->row['feedback']; ?></mattext>