Project

General

Profile

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

1
<?xml version="1.0" encoding="UTF-8"?><sma:assmntUnitMlqXhtmlTransf 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/ordWord.model"/>
3
	<sm:scenario>
4
		<sm:sequence code="play">
5
			<sm:initBody>
6
				<sm:labelInteraction mode="enabled"/>
7
				<sm:resultDisplay mode="none"/>
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:scoreSessionKey>
16
					<sm:fixedKey value=""/>
17
				</sm:scoreSessionKey>
18
			</sm:loadData>
19
			<sm:saveData>
20
				<sm:responseSessionKey>
21
					<sm:fixedKey value=""/>
22
				</sm:responseSessionKey>
23
				<sm:scoreSessionKey>
24
					<sm:fixedKey value=""/>
25
				</sm:scoreSessionKey>
26
			</sm:saveData>
27
			<sm:scoreComputing>
28
				<sm:orderingScoring algorithm="distance"/>
29
			</sm:scoreComputing>
30
			<sm:resultDisplaying classIfRight="ddLabel_Right" classIfWrong="ddLabel_Wrong"/>
31
		</sm:sequence>
32
	</sm:scenario>
33
	<sm:publicFunctions>
34
		<sm:function fctName="play">
35
			<sm:goToSequence refCode="play"/>
36
		</sm:function>
37
		<sm:function fctName="reset">
38
			<sm:resetSession response="yes" score="yes">
39
				<sm:sessionKey>
40
					<sm:fixedKey value=""/>
41
				</sm:sessionKey>
42
			</sm:resetSession>
43
			<sm:goToSequence refCode="play"/>
44
		</sm:function>
45
		<sm:function fctName="displaySol">
46
			<sm:resultDisplay mode="addClass"/>
47
			<sm:elementDisplay refId="gExpln" mode="visible"/>
48
		</sm:function>
49
		<sm:function fctName="cleanSol">
50
			<sm:resultDisplay mode="none"/>
51
			<sm:elementDisplay refId="gExpln" mode="collapsed"/>
52
		</sm:function>
53
	</sm:publicFunctions>
54
	<sm:assmntBody>
55
		<div class="bkSolResOut">
56
			<div class="bkSolResFra1">
57
				<div class="bkSolResFra2">
58
					<div class="bkSolResFra3">
59
						<div class="bkSolResCo">
60
							<div class="btnScore">
61
								<sm:WToggleButton widgetClass="btnQuiz">
62
									<sm:buttonBody>
63
										<span class="btnQuizCaption">Score</span>
64
									</sm:buttonBody>
65
									<sm:buttonTitle>
66
										<sm:fixedString value=";Calculer le score"/>
67
									</sm:buttonTitle>
68
									<sm:buttonActionOn>
69
										<sm:elementDisplay refId="score" mode="visible"/>
70
									</sm:buttonActionOn>
71
									<sm:buttonActionOff>
72
										<sm:elementDisplay refId="score" mode="invisible"/>
73
									</sm:buttonActionOff>
74
								</sm:WToggleButton>
75
							</div>
76
							<div class="btnHelp">
77
								<sm:WToggleButton widgetClass="btnQuiz">
78
									<sm:buttonBody>
79
										<span class="btnQuizCaption">Aide</span>
80
									</sm:buttonBody>
81
									<sm:buttonTitle>
82
										<sm:fixedString value=";Afficher ou masquer l'aide"/>
83
									</sm:buttonTitle>
84
									<sm:buttonActionOn>
85
										<sm:resultDisplay mode="addClass"/>
86
										<sm:elementDisplay refId="gExpln" mode="visible"/>
87
									</sm:buttonActionOn>
88
									<sm:buttonActionOff>
89
										<sm:resultDisplay mode="none"/>
90
										<sm:elementDisplay refId="gExpln" mode="collapsed"/>
91
									</sm:buttonActionOff>
92
								</sm:WToggleButton>
93
							</div>
94
							<div class="btnReset">
95
								<sm:WButton widgetClass="btnQuiz">
96
									<sm:buttonBody>
97
										<span class="btnQuizCaption">Recommencer</span>
98
									</sm:buttonBody>
99
									<sm:buttonTitle>
100
										<sm:fixedString value=";Effacer les réponses"/>
101
									</sm:buttonTitle>
102
									<sm:buttonAction>
103
										<sm:resetSession response="yes" score="yes">
104
											<sm:sessionKey>
105
												<sm:fixedKey value=""/>
106
											</sm:sessionKey>
107
										</sm:resetSession>
108
										<sm:goToSequence refCode="play"/>
109
									</sm:buttonAction>
110
								</sm:WButton>
111
							</div>
112
							<div class="scoreBox">
113
								<sm:WScore widgetClass="score" sm:id="score">
114
									<sm:scoreText>
115
										<sm:scaleScore min="0" max="100" step="1">
116
											<sm:display class="answBest" scoreMoreThan="99" valueFormat="numeric" suffix=";% de bonnes réponses"/>
117
											<sm:display class="answGood" scoreMoreThan="49" scoreLessOrEqualThan="99" valueFormat="numeric" suffix=";% de bonnes réponses"/>
118
											<sm:display class="answBad" scoreLessOrEqualThan="49" valueFormat="numeric" suffix=";% de bonnes réponses"/>
119
										</sm:scaleScore>
120
									</sm:scoreText>
121
								</sm:WScore>
122
							</div>
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:WLabelsBasket widgetClass="ddBasket" tagName="div">
135
				<sm:WDragDropContainer widgetClass="ddBasketCatch" tagName="div" dropMode="append" onDragOverClass="ddBasketDragOver">
136
					<sm:WContainer widgetClass="ddBasketCont" tagName="div">
137
						<sm:forRandomLabel>
138
							<sm:WDraggableLabel widgetClass="ddLabel" tagName="div" onDragClass="ddLabelDrag">
139
								<sm:callLabelModel/>
140
							</sm:WDraggableLabel>
141
						</sm:forRandomLabel>
142
					</sm:WContainer>
143
					<sm:WIfContainerEmpty widgetClass="ddBasketIfEmpty" tagName="div">
144
						<span>Plus d'éléments à ordonner</span>
145
					</sm:WIfContainerEmpty>
146
					<div class="ddBasketEnd"/>
147
				</sm:WDragDropContainer>
148
			</sm:WLabelsBasket>
149
			<sm:WResponseArea widgetClass="ddRepArea" tagName="div">
150
				<sm:WDragDropContainer widgetClass="ddDropCatch" tagName="div" dropMode="ordered" onDragOverClass="ddCatchDragOver">
151
					<sm:WContainer widgetClass="ddDropCont" tagName="div"/>
152
					<sm:WIfContainerEmpty widgetClass="ddDropContIfEmpty" tagName="div">
153
						<span>Déposez ici</span>
154
					</sm:WIfContainerEmpty>
155
					<div class="ddCatchDragEnd"/>
156
				</sm:WDragDropContainer>
157
			</sm:WResponseArea>
158
			<sm:WGlobalExplanation widgetClass="gExpln" sm:id="gExpln">
159
				<sm:callExplanationModel/>
160
			</sm:WGlobalExplanation>
161
		</div>
162
	</sm:assmntBody>
163
</sma:assmntUnitMlqXhtmlTransf>
(6-6/7)