match.tpl

来自「很棒的在线教学系统」· TPL 代码 · 共 63 行

TPL
63
字号
<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">	<responseDeclaration identifier="{$questionid}" cardinality="multiple" baseType="directedPair">		<correctResponse>   		{section name=set loop=$matchsets}				<value>q{$matchsets[set].id} a{$matchsets[set].id}</value>   		{/section}		</correctResponse>		<mapping defaultValue="0">   		{section name=set loop=$matchsets}   		   <mapEntry mapKey="q{$matchsets[set].id} a{$matchsets[set].id}" mappedValue="1"/>   		{/section}		</mapping>	</responseDeclaration>	<outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>	<itemBody>		<p>{$questionText}</p>		<div class="interactive.match">			<matchInteraction responseIdentifier="{$questionid}" shuffle="false" maxAssociations="{$setcount}">				<simpleMatchSet>           		{section name=set loop=$matchsets}    				<simpleAssociableChoice identifier="q{$matchsets[set].id}" matchMax="1">{$matchsets[set].questiontext}</simpleAssociableChoice>           		{/section}				</simpleMatchSet>				<simpleMatchSet>           		{section name=set loop=$matchsets}    				<simpleAssociableChoice identifier="a{$matchsets[set].id}" matchMax="{$setcount}">{$matchsets[set].answertext}</simpleAssociableChoice>           		{/section}				</simpleMatchSet>			</matchInteraction>		</div>	{if $question_has_image == 1}		<div class="media">	    {if $hassize == 1}			<object type="{$question->mediamimetype}" data="{$question->mediaurl}" width="{$question->mediax}" height="{$question->mediay}" />		{else}			<object type="{$question->mediamimetype}" data="{$question->mediaurl}" />     		{/if}		</div>	{/if}	</itemBody>	<responseProcessing 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">		<responseCondition>			<responseIf>				<isNull>					<variable identifier="{$questionid}"/>				</isNull>				<setOutcomeValue identifier="SCORE">					<baseValue baseType="integer">0</baseValue>				</setOutcomeValue>			</responseIf>			<responseElse>				<setOutcomeValue identifier="SCORE">					<mapResponse identifier="{$questionid}"/>				</setOutcomeValue>			</responseElse>		</responseCondition>	</responseProcessing></assessmentItem>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?