Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / question / format / qti2 / templates / graphicGapMatch.tpl
blobe2b5d06ea5383dee4a3b2b22d32e2fc7e1885eb4
1 {if $courselevelexport}<?xml version="1.0" encoding="UTF-8"?>{/if}
2 <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_item_v2p0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_item_v2p0 ../imsqti_item_v2p0.xsd" identifier="{$assessmentitemidentifier}" title="{$assessmentitemtitle}" adaptive="false" timeDependent="false">
3         <responseDeclaration identifier="{$questionid}" cardinality="multiple" baseType="directedPair">
4                 <correctResponse>
5                 {section name=item loop=$gapitems}
6                                 <value>{$gapitems[item].id} {$gapitems[item].id}</value>
7                 {/section}
8                 </correctResponse>
9                 <mapping defaultValue="1">
10                 {section name=item loop=$gapitems}
11                                 <mapEntry mapKey="{$gapitems[item].id} {$gapitems[item].id}" mappedValue="1" />
12                 {/section}
13                 </mapping>
14         </responseDeclaration>
15         <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>
16         <itemBody>
17                 <div class="assesmentItemBody"><p>{$questionText}</p></div>
18                 <div class="interactive.graphicGapMatch">
19                         <graphicGapMatchInteraction responseIdentifier="{$questionid}">
20                                 <object type="{$question->mediamimetype}" data="{$question->mediaurl}" width="{$question->mediax}" height="{$question->mediay}"/>
21                 {section name=item loop=$gapitems}
22                                 <gapImg identifier="{$gapitems[item].id}" matchMax="1">
23                                         <object type="{$gapitems[item].mediamimetype}" data="{$gapitems[item].media}" width="{$gapitems[item].snaptowidth}" height="{$gapitems[item].snaptoheight}" label="{$gapitems[item].questiontext}"/>
24                                 </gapImg>
25                         {/section}
26                 {section name=item loop=$gapitems}
27                 <associableHotspot identifier="{$gapitems[item].id}" matchMax="{$hotspotmaxmatch}" shape="rect" coords="{$gapitems[item].targetx},{$gapitems[item].targety},{$gapitems[item].targetrx},{$gapitems[item].targetby}"/>
28                         {/section}
29                         </graphicGapMatchInteraction>
30                 </div>
31         </itemBody>
32         <responseProcessing template="http://www.imsglobal.org/xml/imsqti_item_v2p0/rpMapResponse" templateLocation="../RPTemplates/rpMapResponse.xml"/>
33 </assessmentItem>