~ubuntu-branches/ubuntu/breezy/moodle/breezy

« back to all changes in this revision

Viewing changes to mod/quiz/format/qti2/templates/numerical.tpl

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Mitchell
  • Date: 2005-10-13 02:00:59 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051013020059-y2qcyo41t7nqppcg
Tags: 1.5.2-1ubuntu1
* Resync with debian (security update)
* changed dependencys to php5
* changed apache dependency to apache2 
* References
  CAN-2005-2247

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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="single" baseType="float">
 
4
                <correctResponse>
 
5
                        <value>{$answer->answer}</value>
 
6
                </correctResponse>
 
7
                <mapping defaultValue="0">
 
8
                        <mapEntry mapKey="{$answer->answer}" mappedValue="{$answer->fraction}" />
 
9
                </mapping>
 
10
        </responseDeclaration>
 
11
        <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>
 
12
        <itemBody>
 
13
                <p>{$questionText}</p>
 
14
                <div class="interactive.textEntry">
 
15
            <textEntryInteraction responseIdentifier="{$questionid}" expectedLength="10"/>
 
16
                </div>
 
17
        {if $question_has_image == 1}
 
18
                <div class="media">
 
19
            {if $hassize == 1}
 
20
                        <object type="{$question->mediamimetype}" data="{$question->mediaurl}" width="{$question->mediax}" height="{$question->mediay}" />
 
21
                {else}
 
22
                        <object type="{$question->mediamimetype}" data="{$question->mediaurl}" />     
 
23
                {/if}
 
24
                </div>
 
25
        {/if}
 
26
        </itemBody>
 
27
        <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">
 
28
                <responseCondition>
 
29
                        <responseIf>
 
30
                                <and>
 
31
                                <not>
 
32
                                        <isNull>
 
33
                                                <variable identifier="{$questionid}" />
 
34
                                        </isNull>
 
35
                                </not>
 
36
                                <gte>
 
37
                                        <baseValue baseType="float">{$lowerbound}</baseValue>
 
38
                                        <variable identifier="{$questionid}" />
 
39
                                </gte>
 
40
                                <lte>
 
41
                                        <baseValue baseType="float">{$upperbound}</baseValue>
 
42
                                        <variable identifier="{$questionid}" />
 
43
                                </lte>
 
44
                                </and>
 
45
                                <setOutcomeValue identifier="SCORE">
 
46
                                        <baseValue baseType="integer">1</baseValue>
 
47
                                </setOutcomeValue>
 
48
                        </responseIf>
 
49
                        <responseElse>
 
50
                                <setOutcomeValue identifier="SCORE">
 
51
                                        <baseValue baseType="integer">0</baseValue>
 
52
                                </setOutcomeValue>
 
53
                        </responseElse>
 
54
                </responseCondition>
 
55
        <setOutcomeValue identifier="FEEDBACK">
 
56
            <variable identifier="{$questionid}"/>
 
57
        </setOutcomeValue>              
 
58
        </responseProcessing>
 
59
{if $answer->feedback != ''}
 
60
        <modalFeedback outcomeIdentifier="FEEDBACK" identifier="{$answer->id}" showHide="show">{$answer->feedback}</modalFeedback>
 
61
{/if}
 
62
{if $answer->altfeedback != ''}
 
63
        <modalFeedback outcomeIdentifier="FEEDBACK" identifier="{$answer->id}" showHide="hide">{$answer->altfeedback}</modalFeedback>
 
64
{/if}
 
65
</assessmentItem>