choice.tpl

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

TPL
71
字号
{if $courselevelexport}<?xml version="1.0" encoding="UTF-8"?>{/if}<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="single" baseType="identifier">		<correctResponse>			<value>{$correctresponse.id}</value>		</correctResponse>		<mapping defaultValue="0">			<mapEntry mapKey="{$correctresponse.id}" mappedValue="{$correctresponse.fraction}"/>		</mapping>	</responseDeclaration>	<outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float">		<defaultValue>			<value>0</value>		</defaultValue>	</outcomeDeclaration>	<itemBody>		<p>{$questionText}</p>		<div class="intreactive.choiceSimple">			<choiceInteraction responseIdentifier="{$questionid}" shuffle="false" maxChoices="1">    		{section name=answer loop=$answers}				<simpleChoice identifier="{$answers[answer].id}">{$answers[answer].answer}                				{if $answers[answer].feedback != ''}    				{if $answers[answer].answer != $correctresponse.answer}	   			    <feedbackInline identifier="{$answers[answer].id}" outcomeIdentifier="FEEDBACK" showHide="hide">{$answers[answer].feedback}</feedbackInline>                    {/if}                {/if}				</simpleChoice>    		{/section}			</choiceInteraction>	{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}		</div>	</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>				<match>					<variable identifier="{$questionid}"/>					<correct identifier="{$questionid}"/>				</match>				<setOutcomeValue identifier="SCORE">					<baseValue baseType="float">1</baseValue>				</setOutcomeValue>			</responseIf>			<responseElse>				<setOutcomeValue identifier="SCORE">					<baseValue baseType="float">0</baseValue>				</setOutcomeValue>			</responseElse>		</responseCondition>        <setOutcomeValue identifier="FEEDBACK">            <variable identifier="{$questionid}"/>        </setOutcomeValue>			</responseProcessing>	{section name=answer loop=$answers}        {if $answers[answer].feedback != ''}	<modalFeedback outcomeIdentifier="FEEDBACK" identifier="{$answers[answer].id}" showHide="hide">{$answers[answer].feedback}</modalFeedback>    	{/if}	{/section}</assessmentItem>

⌨️ 快捷键说明

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