Project

General

Profile

root / trunk / model / sources / academic / gen / _web / transf / Uc / quiz / field.transf @ 1445

1
<?xml version="1.0" encoding="UTF-8"?><sma:assmntUnitEditXhtmlTransf xmlns:sma="kelis.fr:scenari/modeling/assessment" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" xmlns="http://www.w3.org/1999/xhtml" info="exercice d'entrainement, boutons solution score et reset, fonctions jouer - reset - afficher Solutions - masquer Solutions">
2
	<sm:model sc:refUri="/academic/model/Uc/quiz/field.model"/>
3
	<sm:scenario>
4
		<sm:sequence code="play">
5
			<sm:initBody>
6
				<sm:inputInteraction mode="enabled"/>
7
				<sm:solutionDisplay ifRight="collapsed" ifNotBestResponse="collapsed"/>
8
				<sm:elementDisplay refId="score" mode="invisible"/>
9
				<sm:elementDisplay refId="gExpln" mode="collapsed"/>
10
			</sm:initBody>
11
			<sm:loadData>
12
				<sm:responseSessionKey>
13
					<sm:fixedKey value=""/>
14
				</sm:responseSessionKey>
15
			</sm:loadData>
16
			<sm:saveData>
17
				<sm:responseSessionKey>
18
					<sm:fixedKey value=""/>
19
				</sm:responseSessionKey>
20
				<sm:scoreSessionKey>
21
					<sm:fixedKey value=""/>
22
				</sm:scoreSessionKey>
23
			</sm:saveData>
24
			<sm:scoreComputing>
25
				<sm:pointsPerField defaultPointsIfRight="1" defaultPointsIfWrong="0"/>
26
			</sm:scoreComputing>
27
			<sm:resultDisplaying>
28
				<sm:rangesClass prefixClass="assmntResult_" rangesCount="3"/>
29
			</sm:resultDisplaying>
30
		</sm:sequence>
31
	</sm:scenario>
32
	<sm:publicFunctions>
33
		<sm:function fctName="play">
34
			<sm:goToSequence refCode="play"/>
35
		</sm:function>
36
		<sm:function fctName="reset">
37
			<sm:resetSession response="yes" score="yes">
38
				<sm:sessionKey>
39
					<sm:fixedKey value=""/>
40
				</sm:sessionKey>
41
			</sm:resetSession>
42
			<sm:goToSequence refCode="play"/>
43
		</sm:function>
44
		<sm:function fctName="displaySol">
45
			<sm:solutionDisplay ifRight="collapsed" ifNotBestResponse="visible"/>
46
			<sm:elementDisplay refId="gExpln" mode="visible"/>
47
		</sm:function>
48
		<sm:function fctName="cleanSol">
49
			<sm:solutionDisplay ifRight="collapsed" ifNotBestResponse="collapsed"/>
50
			<sm:elementDisplay refId="gExpln" mode="collapsed"/>
51
		</sm:function>
52
	</sm:publicFunctions>
53
	<sm:assmntBody>
54
		<div class="bkSolResOut">
55
			<div class="bkSolResFra1">
56
				<div class="bkSolResFra2">
57
					<div class="bkSolResFra3">
58
						<div class="bkSolResCo">
59
							<div class="btnScore">
60
								<sm:WToggleButton widgetClass="btnQuiz">
61
									<sm:buttonBody>
62
										<span class="btnQuizCaption">Score</span>
63
									</sm:buttonBody>
64
									<sm:buttonTitle>
65
										<sm:fixedString value=";Calculer le score"/>
66
									</sm:buttonTitle>
67
									<sm:buttonActionOn>
68
										<sm:elementDisplay refId="score" mode="visible"/>
69
									</sm:buttonActionOn>
70
									<sm:buttonActionOff>
71
										<sm:elementDisplay refId="score" mode="invisible"/>
72
									</sm:buttonActionOff>
73
								</sm:WToggleButton>
74
							</div>
75
							<div class="btnSol">
76
								<sm:WToggleButton widgetClass="btnQuiz">
77
									<sm:buttonBody>
78
										<span class="btnQuizCaption">Solutions</span>
79
									</sm:buttonBody>
80
									<sm:buttonTitle>
81
										<sm:fixedString value=";Afficher ou masquer les solutions"/>
82
									</sm:buttonTitle>
83
									<sm:buttonActionOn>
84
										<sm:solutionDisplay ifRight="collapsed" ifNotBestResponse="visible"/>
85
										<sm:resultDisplay mode="addClass"/>
86
										<sm:elementDisplay refId="gExpln" mode="visible"/>
87
									</sm:buttonActionOn>
88
									<sm:buttonActionOff>
89
										<sm:solutionDisplay ifRight="collapsed" ifNotBestResponse="collapsed"/>
90
										<sm:resultDisplay mode="none"/>
91
										<sm:elementDisplay refId="gExpln" mode="collapsed"/>
92
									</sm:buttonActionOff>
93
								</sm:WToggleButton>
94
							</div>
95
							<div class="btnReset">
96
								<sm:WButton widgetClass="btnQuiz">
97
									<sm:buttonBody>
98
										<span class="btnQuizCaption">Recommencer</span>
99
									</sm:buttonBody>
100
									<sm:buttonTitle>
101
										<sm:fixedString value=";Effacer les réponses"/>
102
									</sm:buttonTitle>
103
									<sm:buttonAction>
104
										<sm:resetSession response="yes" score="yes">
105
											<sm:sessionKey>
106
												<sm:fixedKey value=""/>
107
											</sm:sessionKey>
108
										</sm:resetSession>
109
										<sm:goToSequence refCode="play"/>
110
									</sm:buttonAction>
111
								</sm:WButton>
112
							</div>
113
							<div class="scoreBox">
114
								<sm:WScore widgetClass="score" sm:id="score">
115
									<sm:scoreText>
116
										<sm:scaleScore min="0" max="100" step="1">
117
											<sm:display class="answBest" scoreMoreThan="99" valueFormat="numeric" suffix=";% de bonnes réponses"/>
118
											<sm:display class="answGood" scoreMoreThan="49" scoreLessOrEqualThan="99" valueFormat="numeric" suffix=";% de bonnes réponses"/>
119
											<sm:display class="answBad" scoreLessOrEqualThan="49" valueFormat="numeric" suffix=";% de bonnes réponses"/>
120
										</sm:scaleScore>
121
									</sm:scoreText>
122
								</sm:WScore>
123
							</div>
124
						</div>
125
					</div>
126
				</div>
127
			</div>
128
		</div>
129
		<div class="headerQ">
130
			<div class="question" sm:id="question">
131
				<sm:callQuestionModel/>
132
			</div>
133
		</div>
134
		<sm:WInputZone>
135
			<sm:singleField>
136
				<sm:forStringField codes="asw">
137
					<div class="exoAsw">
138
						<sm:WInputText widgetClass="exoInput"/>
139
						<sm:WSolution widgetClass="exoSol">
140
							<sm:solution/>
141
						</sm:WSolution>
142
					</div>
143
				</sm:forStringField>
144
			</sm:singleField>
145
		</sm:WInputZone>
146
		<sm:WGlobalExplanation widgetClass="gExpln" sm:id="gExpln">
147
			<sm:callExplanationModel/>
148
		</sm:WGlobalExplanation>
149
	</sm:assmntBody>
150
</sma:assmntUnitEditXhtmlTransf>
(2-2/7)