Example #1
0
    echo for_id($option->text);
    ?>
 False' view='Candidate'>
			<material>
				<mattext texttype='text/html'><![CDATA[<?php 
    echo $fb;
    ?>
]]></mattext>
			</material>
		</itemfeedback>	
				
		<itemfeedback ident='<?php 
    echo $oid;
    ?>
 <?php 
    echo for_id($option->text);
    ?>
 Abstain' view='Candidate'>
			<material>
				<mattext texttype='text/html'><![CDATA[<?php 
    echo $option->fb_incorrect;
    ?>
]]></mattext>
			</material>
		</itemfeedback>			
<?php 
}
?>

		<!-- general feedback -->
		<itemfeedback ident='general' view='Candidate'>
Example #2
0
			</response_lid>
		</presentation>
		
		<resprocessing>
			<outcomes>
				<decvar/>
			</outcomes>
			
<?php 
foreach ($question->scale as $oid => $scale) {
    ?>
			<respcondition title="<?php 
    echo $oid;
    ?>
 <?php 
    echo for_id($scale);
    ?>
" >
				<conditionvar>
					<varequal respident="1"><?php 
    echo $this->ll[$oid];
    ?>
</varequal>
				</conditionvar>
				<setvar action="Set"><?php 
    echo $oid;
    ?>
</setvar>
			</respcondition>
<?php 
}
Example #3
0
		
		<resprocessing>
			<outcomes>
				<decvar/>
			</outcomes>
<?php 
foreach ($question->options as $oid => $option) {
    if ($option->order < 1 || $option->order > 26) {
        continue;
    }
    ?>
			<respcondition title="<?php 
    echo $oid;
    ?>
 <?php 
    echo for_id($option->stem);
    ?>
" continue="Yes">
				<conditionvar>
					<varequal respident="<?php 
    echo $oid;
    ?>
" case="No"><?php 
    echo $question->optlist[$option->order];
    ?>
</varequal>
				</conditionvar>
				<setvar action="Add"><?php 
    echo $option->marks_correct;
    ?>
</setvar>
Example #4
0
    if (substr($q, 0, 1) == "%") {
        ?>
			<response_lid ident="<?php 
        echo $respid++;
        ?>
">
				<render_choice shuffle="Yes">
<?php 
        // get the options set for this blank
        $optset = $question->options[$q];
        // output each option in the set
        $oid = 1;
        foreach ($optset as $option) {
            ?>
					<response_label ident="<?php 
            echo for_id($option->display);
            ?>
">
						<material>
							<mattext texttype="text/plain"><?php 
            echo $option->display;
            ?>
</mattext>
						</material>
					</response_label>
<?php 
            $oid++;
        }
        ?>
				</render_choice>
			</response_lid>