multianswer_qti_2p1.tmpl.php

来自「是一个教学内容管理系统」· PHP 代码 · 共 44 行

PHP
44
字号
<<?php echo '?'; ?>xml version="1.0" encoding="<?php echo $this->encoding; ?>"<?php echo '?'; ?>><!-- multi answer multiple choice question with partial marks --><assessmentItem 	xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1" 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 	xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 imsqti_v2p1.xsd" 	identifier="ATUTOR-<?php echo $this->row['question_id']; ?>" 	title="<?php echo $this->row['question']; ?>" 	adaptive="false" 	timeDependent="false"	toolname="ATutor - atutor.ca"	toolversion="<?php echo VERSION; ?>">	<responseDeclaration identifier="RESPONSE" cardinality="multiple" baseType="identifier">	  <correctResponse>		<?php for ($i=0; $i < $this->num_choices; $i++): ?>			<?php if ($this->row['answer_'.$i]): ?>				<value>Choice<?php echo $i; ?></value>			<?php endif; ?>		<?php endfor; ?>	  </correctResponse>	  <mapping lowerBound="0" upperBound="<?php echo $this->num_correct; ?>" defaultValue="0">		<?php for ($i=0; $i < $this->num_choices; $i++): ?>			<?php if ($this->row['answer_'.$i]): ?>				<mapEntry mapKey="Choice<?php echo $i; ?>" mappedValue="1"/>			<?php endif; ?>		<?php endfor; ?>		</mapping>	  <?php if ($this->row['feedback']): ?>		  <outcomeDeclaration identifier="FEEDBACK" cardinality="multiple" baseType="identifier"/>	  <?php endif; ?>	</responseDeclaration>	<itemBody>		<choiceInteraction responseIdentifier="RESPONSE" shuffle="false" maxChoices="0">			<prompt><?php echo $this->row['question']; ?></prompt>			<?php for ($i=0; $i < $this->num_choices; $i++): ?>				<simpleChoice identifier="Choice<?php echo $i; ?>" fixed="false"><?php echo $this->row['choice_'.$i]; ?></simpleChoice> 			<?php endfor; ?>	  </choiceInteraction>	</itemBody>	<?php if ($this->row['feedback']): ?>		<modalFeedback outcomeIdentifier="FEEDBACK" identifier="FEEDBACK

⌨️ 快捷键说明

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