Rev 17180 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9115 | bpr | 1 | !if $(module_title_$moduclass_lang)!=$empty |
2 | !set module_title=$(module_title_$moduclass_lang) |
||
3 | !endif |
||
15900 | bpr | 4 | !if $job=examcheck |
5 | !set wims_help_parm=exam |
||
6 | !endif |
||
17465 | guerimand | 7 | |
8 | !if $job=userexam |
||
9 | !set wims_html_header=!append line <script src="scripts/js/chronoid.js"></script> to $wims_html_header |
||
10 | !endif |
||
4026 | bpr | 11 | !read adm/css.phtml |
4039 | bpr | 12 | !read adm/class/classname.phtml $wims_classname\ |
4026 | bpr | 13 | $wims_institutionname |
1988 | bpr | 14 | |
1051 | bpr | 15 | !header1 |
7810 | bpr | 16 | |
17 | !! not useful ??? |
||
18 | !!!if $cmd=help |
||
19 | !! !read lang/help.phtml |
||
20 | !! !goto end |
||
21 | !!!endif |
||
7812 | bpr | 22 | |
23 | reyssat | 23 | !if $job!=$empty and $job!=sheets |
12395 | bpr | 24 | !read $job.phtml |
12439 | guerimand | 25 | !goto endtail |
23 | reyssat | 26 | !endif |
27 | |||
1336 | bpr | 28 | !read adm/title.phtml 1\ |
4026 | bpr | 29 | $classname\ |
9115 | bpr | 30 | $module_title ($usercnt) |
7605 | bpr | 31 | |
23 | reyssat | 32 | !if $error!=$empty |
12395 | bpr | 33 | <div class="wims_msg alert"> |
34 | !read lang/msg.phtml.$moduclass_lang |
||
35 | </div> |
||
36 | !set wims_ref_class=wims_button |
||
37 | !if $wims_class!=$empty |
||
38 | !href module=home $wims_name_class_home |
||
39 | !else |
||
40 | !href module=home $wims_name_home |
||
41 | !endif |
||
12439 | guerimand | 42 | !goto endtail |
23 | reyssat | 43 | !endif |
8310 | guerimand | 44 | |
5658 | bpr | 45 | !set typen=!defof class_typename in wimshome/log/classes/$wims_class/.def |
23 | reyssat | 46 | !if $usercnt==0 |
12395 | bpr | 47 | <div class="wimscenter"> |
12946 | guerimand | 48 | $name_noyetparticipant |
49 | !if $typen!=level |
||
50 | |
||
51 | !set wims_ref_class=wims_button |
||
52 | !href module=adm/class/reguser&step=1 $wims_name_addstudent |
||
53 | |
||
54 | !endif |
||
8310 | guerimand | 55 | !set wims_ref_class=wims_button |
12946 | guerimand | 56 | !href cmd=reply&job=csv $wims_name_csv |
57 | </div> |
||
7119 | bpr | 58 | !else -- $usercnt>0 |
12488 | bpr | 59 | !! !set wims_ref_class=wims_button |
60 | !! !href cmd=reply&job=csv $wims_name_csv |
||
12395 | bpr | 61 | !if $seq_cnt=0 |
12488 | bpr | 62 | <p> |
7605 | bpr | 63 | $name_warning_no_sequence |
4580 | bpr | 64 | |
12395 | bpr | 65 | !set wims_ref_class=wims_button |
12488 | bpr | 66 | !href module=adm/class/sequence&job=config $wims_name_config |
5955 | bpr | 67 | </p> |
12488 | bpr | 68 | !endif |
69 | !!test inutile ? |
||
70 | !if $usercnt > 0 |
||
71 | !if $activecnt+$eactivecnt>=1 |
||
72 | !form reply |
||
17180 | bpr | 73 | <input type="hidden" name="job" value="sheets"> |
12488 | bpr | 74 | !set wims_formselect_switch=multiple="multiple" size="$[min($activecnt+$eactivecnt,6)]" |
7641 | bpr | 75 | |
12488 | bpr | 76 | <fieldset class="property_fields blockcenter"> |
77 | <legend>$name_donchoose</legend> |
||
9576 | guerimand | 78 | |
12395 | bpr | 79 | <div class="field box"> |
12488 | bpr | 80 | <label for="showsheet">$name_pickup</label> |
81 | !reset tmp |
||
82 | !set seq_open=!defof sequence_open in wimshome/log/classes/$wims_class/seq/.def |
||
83 | !for i=1 to $activecnt |
||
84 | !set sh=!line $i of $activesheets |
||
85 | !set se=!item 1 of $sh |
||
86 | !if $seq_open!=yes |
||
15763 | guerimand | 87 | !set ti=!item 4 to -1 of $sh |
12488 | bpr | 88 | !set ti=!replace internal , by , in $ti |
89 | !set tmp=!append item $se: $ti to $tmp |
||
90 | !else |
||
15763 | guerimand | 91 | !set ti=!item 5 to -1 of $sh |
12488 | bpr | 92 | !set ti=!replace internal , by , in $ti |
15763 | guerimand | 93 | !set seq=!item 4 of $sh |
12488 | bpr | 94 | !set tmp=!append item $seq/$se: $ti to $tmp |
12395 | bpr | 95 | !endif |
12488 | bpr | 96 | !next i |
97 | !set ash=$activesh |
||
98 | !for i=1 to $eactivecnt |
||
99 | !set tt=!item $i of $activexams |
||
100 | !set l=!record $tt of wimshome/log/classes/$wims_class/exams/.exams |
||
101 | !set l=!line 4 of $l |
||
102 | !set l=!replace internal , by , in $l |
||
103 | !set tmp=!append item $name_Exam $tt: $l to $tmp |
||
104 | !set ash=!append item E$tt to $ash |
||
105 | !next i |
||
106 | !formselect showsheet list $ash prompt $tmp |
||
107 | </div> |
||
108 | <div class="field box"> |
||
109 | $name_Post |
||
110 | !if $job_affi=notes or $job_affi=$empty |
||
111 | !set wims_ref_class=wims_button |
||
112 | !href cmd=reply&job_affi=quality $(name_affi[1]) |
||
113 | !set wims_ref_class=wims_button |
||
114 | !href cmd=reply&job_affi=points $(name_affi[2]) |
||
115 | <span class="wims_button disabled"> $(name_affi[3])</span> |
||
116 | !set wims_ref_class=wims_button |
||
117 | !href cmd=reply&job_affi=best $(name_affi[4]) |
||
118 | !set wims_ref_class=wims_button |
||
119 | !href cmd=reply&job_affi=level $(name_affi[5]) |
||
120 | !endif |
||
121 | !if $job_affi=quality |
||
122 | <span class="wims_button disabled"> $(name_affi[1])</span> |
||
123 | !set wims_ref_class=wims_button |
||
124 | !href cmd=reply&job_affi=points $(name_affi[2]) |
||
125 | !set wims_ref_class=wims_button |
||
126 | !href cmd=reply&job_affi=notes $(name_affi[3]) |
||
127 | !set wims_ref_class=wims_button |
||
128 | !href cmd=reply&job_affi=best $(name_affi[4]) |
||
129 | !set wims_ref_class=wims_button |
||
130 | !href cmd=reply&job_affi=level $(name_affi[5]) |
||
12395 | bpr | 131 | !endif |
12488 | bpr | 132 | !if $job_affi=points |
133 | !set wims_ref_class=wims_button |
||
134 | !href cmd=reply&job_affi=quality $(name_affi[1]) |
||
135 | <span class="wims_button disabled"> $(name_affi[2])</span> |
||
136 | !set wims_ref_class=wims_button |
||
137 | !href cmd=reply&job_affi=notes $(name_affi[3]) |
||
138 | !set wims_ref_class=wims_button |
||
139 | !href cmd=reply&job_affi=best $(name_affi[4]) |
||
140 | !set wims_ref_class=wims_button |
||
141 | !href cmd=reply&job_affi=level $(name_affi[5]) |
||
142 | !endif |
||
143 | !if $job_affi=best |
||
144 | !set wims_ref_class=wims_button |
||
145 | !href cmd=reply&job_affi=quality $(name_affi[1]) |
||
146 | !set wims_ref_class=wims_button |
||
147 | !href cmd=reply&job_affi=points $(name_affi[2]) |
||
148 | !set wims_ref_class=wims_button |
||
149 | !href cmd=reply&job_affi=notes $(name_affi[3]) |
||
150 | <span class="wims_button disabled"> $(name_affi[4])</span> |
||
151 | !set wims_ref_class=wims_button |
||
152 | !href cmd=reply&job_affi=level $(name_affi[5]) |
||
153 | !endif |
||
154 | !if $job_affi=level |
||
155 | !set wims_ref_class=wims_button |
||
156 | !href cmd=reply&job_affi=quality $(name_affi[1]) |
||
157 | !set wims_ref_class=wims_button |
||
158 | !href cmd=reply&job_affi=points $(name_affi[2]) |
||
159 | !set wims_ref_class=wims_button |
||
160 | !href cmd=reply&job_affi=notes $(name_affi[3]) |
||
161 | !set wims_ref_class=wims_button |
||
162 | !href cmd=reply&job_affi=best $(name_affi[4]) |
||
163 | <span class="wims_button disabled">$(name_affi[5])</span> |
||
164 | !endif |
||
165 | </div> |
||
166 | !if $tv_listtechvar!=$empty |
||
167 | !read adm/vfilter/varfilter htmldiv |
||
168 | !endif |
||
169 | <div class="wimsform wimscenter"> |
||
17180 | bpr | 170 | <input type="submit" value="$wims_name_Show"> |
12488 | bpr | 171 | </div> |
12395 | bpr | 172 | </fieldset> |
12488 | bpr | 173 | !else |
174 | !form reply |
||
175 | !if $tv_listtechvar!=$empty |
||
176 | !read adm/vfilter/varfilter html |
||
7720 | bpr | 177 | !endif |
12488 | bpr | 178 | !endif |
179 | !formend |
||
180 | !if $wims_typename notwordof group portal program |
||
181 | <p>$name_sheetdetail</p> |
||
182 | !endif |
||
183 | !if $wims_typename notwordof group portal program |
||
184 | <p>$name_click.</p> |
||
185 | !endif |
||
186 | !endif |
||
187 | !reset table_center |
||
188 | !set table_id=TABLE_userlist |
||
189 | !set table_class=sortable |
||
190 | $table_header |
||
191 | !if $wims_typename notwordof group portal |
||
192 | !if $job_affi=notes |
||
193 | <caption>$name_formula2</caption> |
||
194 | !else |
||
195 | !let tmp=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheets |
||
196 | !let tmp=!values v for v=1 to $tmp |
||
197 | !let showsheet=!listintersect $showsheet and $tmp |
||
198 | !if $job_affi=quality |
||
199 | <caption>$name_qualitygot</caption> |
||
23 | reyssat | 200 | !endif |
12488 | bpr | 201 | !if $job_affi=points |
202 | <caption>$name_percentagedone</caption> |
||
23 | reyssat | 203 | !endif |
12488 | bpr | 204 | !if $job_affi=best |
205 | <caption>$name_percentagebest</caption> |
||
206 | !endif |
||
23 | reyssat | 207 | !endif |
12488 | bpr | 208 | !endif |
12438 | guerimand | 209 | <thead> |
12488 | bpr | 210 | !if $manual>0 and $job_affi=notes |
211 | $table_hdtr |
||
12700 | bpr | 212 | <th scope="col">$wims_name_lastname, $wims_name_firstname ($usercnt)</th> |
12707 | bpr | 213 | <th scope="col" class="manual_notes small" data-sort-method="number"> |
214 | <div class="wims_tooltip">$(name_manual_notes[1]) |
||
215 | <div class="wims_tooltiptext">$[$manual/100]* $(name_manual_notes[2]) |
||
216 | + $[1-$manual/100]* $(name_manual_notes[3]) |
||
217 | </div> |
||
218 | </div> |
||
219 | </th> |
||
220 | <th scope="col" class="manual_notes small" data-sort-method="number"> |
||
221 | <div class="wims_tooltip">$(name_manual_notes[2]) |
||
222 | <div class="wims_tooltiptext"> |
||
223 | $name_manualscore |
||
224 | </div></div> |
||
225 | </th> |
||
226 | <th scope="col" class="manual_notes small" data-sort-method="number"> |
||
12946 | guerimand | 227 | <div class="wims_tooltip">$(name_manual_notes[3])<div class="wims_tooltiptext">$name_auto</div></div> |
12707 | bpr | 228 | </th> |
12946 | guerimand | 229 | !if $showsheet=$empty and $job=$empty |
230 | <th scope="col" class="dtexolog">$name_dtexolog</th> |
||
231 | !endif |
||
12488 | bpr | 232 | !for j in $showsheet |
233 | !if E isin $j |
||
234 | !set k=!char 2 to -1 of $j |
||
235 | <th scope="col" class="name_exam small" data-sort-method="number">$name_Exam $k</th> |
||
2085 | bpr | 236 | !else |
12488 | bpr | 237 | <th scope="col" class="show_sheet small" data-sort-method="number"> |
238 | !set s=!record $j of wimshome/log/classes/$wims_class/sheets/.sheets |
||
239 | !set s=!line 3 of $s |
||
240 | !set wims_ref_title=$s |
||
241 | !href cmd=reply&job=showsheet&numshowsheet=$j $name_Sheet $j |
||
242 | </th> |
||
243 | !endif |
||
244 | !next j |
||
245 | </tr> |
||
246 | !else |
||
14072 | bpr | 247 | $table_hdtr<th scope="col">$wims_name_lastname, $wims_name_firstname</th> |
12488 | bpr | 248 | !if $wims_typename iswordof group portal |
249 | !goto endgroup |
||
250 | !endif |
||
251 | !if $job_affi=notes |
||
12711 | lemaire | 252 | <th scope="col" class="average" data-sort-method="number"> |
12946 | guerimand | 253 | <div class="wims_tooltip">$name_Average <div class="wims_tooltiptext">$name_auto</div></div> |
254 | </th> |
||
12488 | bpr | 255 | !endif |
12536 | bpr | 256 | !if $showsheet=$empty and $job=$empty |
257 | <th scope="col" class="dtexolog" data-sort-method="number">$name_dtexolog</th> |
||
258 | !endif |
||
12488 | bpr | 259 | !for j in $showsheet |
260 | !if E isin $j |
||
261 | !set k=!char 2 to -1 of $j |
||
262 | <th scope="col" class="name_exam small" data-sort-method="number">$name_Exam $k</th> |
||
263 | !else |
||
264 | <th scope="col" class="small" data-sort-method="number"> |
||
265 | !set s=!record $j of wimshome/log/classes/$wims_class/sheets/.sheets |
||
266 | !set s=!line 3 of $s |
||
267 | !set wims_ref_title=$s |
||
268 | !href cmd=reply&job=showsheet&numshowsheet=$j $name_Sheet $j |
||
12536 | bpr | 269 | </th> |
2085 | bpr | 270 | !endif |
12488 | bpr | 271 | !next j |
12700 | bpr | 272 | </tr> |
273 | !endif |
||
12395 | bpr | 274 | :endgroup |
12438 | guerimand | 275 | </thead> |
12488 | bpr | 276 | !distribute item 0,0,0 into mean_tea,mean_auto,mean_glob |
277 | !distribute item 0,0,0 into cnt_tea,cnt_auto,cnt_glob |
||
14003 | bpr | 278 | !set trueusercnt=0 |
12438 | guerimand | 279 | <tbody> |
12488 | bpr | 280 | !for i=1 to $usercnt |
281 | !set uu=!record $i of wimshome/log/classes/$wims_class/.userlist |
||
282 | !distribute items $uu into user_lastname,user_firstname,uu |
||
283 | !if $varfilter_!=$empty |
||
284 | !reset var_filter_test |
||
285 | !read adm/vfilter/testfilter $uu\ |
||
12395 | bpr | 286 | $varfilter_ |
12488 | bpr | 287 | !if $var_filter_test!=1 |
288 | !goto enduser |
||
289 | !endif |
||
290 | !endif |
||
14003 | bpr | 291 | !increase trueusercnt |
12488 | bpr | 292 | !set UU=!hex $uu |
293 | $table_tr |
||
294 | !reset css_connected |
||
295 | !if $uu isitemof $wims_connectedlogin |
||
296 | !set css_connected=class="wims_connected" |
||
297 | !set wims_ref_title=connected |
||
298 | !endif |
||
299 | <td><span $css_connected> |
||
300 | !href cmd=reply&job=getuser&getuser=$uu#sheet$(showsheet[1]) $user_lastname $user_firstname |
||
301 | </span></td> |
||
302 | !if $wims_typename iswordof group portal |
||
303 | !goto enduser |
||
304 | !endif |
||
305 | !readproc adm/class/userscore $uu |
||
306 | !if $manual>0 and $job_affi=notes |
||
307 | !set glob=$[rint($manual*$(manual_$UU)+(100-$manual)*($per))/100] |
||
308 | !if $glob>0 |
||
309 | !read adm/class/colors $[ceil($glob*10/$scoremax)] |
||
310 | <td style=$style_note>$glob |
||
311 | !else |
||
312 | <td>-- |
||
313 | !endif |
||
314 | </td> |
||
315 | !if $(manual_$UU)>0 |
||
316 | !read adm/class/colors $[ceil($(manual_$UU)*10/$scoremax)] |
||
317 | <td style=$style_note>$(manual_$UU) |
||
318 | !else |
||
319 | <td>-- |
||
320 | !endif |
||
321 | </td> |
||
322 | !if $per>0 |
||
323 | !read adm/class/colors $[ceil($per*10/$scoremax)] |
||
324 | <td style=$style_note>$per |
||
325 | !else |
||
326 | <td>-- |
||
327 | !endif |
||
328 | </td> |
||
329 | !distribute item $[$mean_glob+$glob],$[$mean_tea+$(manual_$UU)] into mean_glob,mean_tea |
||
330 | !if $glob>0 |
||
331 | !advance cnt_glob |
||
332 | !if $(manual_$UU)>0 |
||
333 | !advance cnt_tea |
||
1893 | bpr | 334 | !endif |
12488 | bpr | 335 | !if $per>0 |
336 | !advance cnt_auto |
||
7605 | bpr | 337 | !endif |
12488 | bpr | 338 | !endif |
339 | !else |
||
340 | !if $wims_typename iswordof group portal |
||
341 | </tr> |
||
342 | !goto enduser |
||
343 | !endif |
||
344 | !if $job_affi=notes |
||
345 | !if $per>0 |
||
346 | !read adm/class/colors $[ceil($per*10/$scoremax)] |
||
347 | <td style=$style_note>$per |
||
348 | !advance cnt_auto |
||
349 | !advance cnt_glob |
||
350 | !else |
||
351 | <td>-- |
||
7641 | bpr | 352 | !endif |
12488 | bpr | 353 | </td> |
354 | !endif |
||
355 | !endif |
||
356 | !set mean_auto=$[$mean_auto+$per] |
||
357 | !for j in $showsheet |
||
358 | !if E isin $j |
||
359 | !set k=!char 2 to -1 of $j |
||
360 | !set p_=$[rint(10*$scoremax*$(es_$k))/100] |
||
361 | !if NaN isin $p_ |
||
362 | !set p_=0 |
||
363 | !endif |
||
364 | !if $p_>0 |
||
365 | !read adm/class/colors $[ceil($p_*10/$scoremax)] |
||
366 | <td style=$style_note>$p_ |
||
367 | !else |
||
368 | <td>$p_ |
||
369 | !endif |
||
370 | </td> |
||
371 | !else |
||
372 | !set p_=!line $j of $percents |
||
373 | !distribute words $p_ into p1,p2,p3,p4 |
||
374 | !if $job_affi=notes |
||
375 | !if $p2!=$empty |
||
376 | !set sev=!line $j of $defaultformula |
||
377 | !distribute word $(sev) into w_$j,s,ss |
||
378 | !set tmp=!defof DF_SEVERITY in wimshome/public_html/bases/sys/define.conf |
||
379 | !distribute words $tmp into bidon,tmp_s,tmp_ss |
||
380 | !bound s between integer 0 and 6 default $tmp_s |
||
381 | !bound ss between integer 0 and 2 default $tmp_ss |
||
382 | !reset tmp tmp_s tmp_ss |
||
383 | !set f_$j=!item $s+1 of $formula_list |
||
384 | !set f_$j=!replace internal I by I$ss in $(f_$j) |
||
385 | !distribute item $[$p1/100],$[$p2/10],$[$p3/100], $[$p4/100] into x0_,y_,x1_,x2_ |
||
386 | !set ff_$j=!mathsubst Q=$y_ in $(f_$j) |
||
387 | !for sev=0 to 2 |
||
388 | !set ff_$j=!mathsubst I$sev=$(x$(sev)_) in $(ff_$j) |
||
389 | !next |
||
390 | !set p_=$[rint(100*$scoremax*$(ff_$j))/100] |
||
12395 | bpr | 391 | !else |
12488 | bpr | 392 | !set p_=0 |
12395 | bpr | 393 | !endif |
12488 | bpr | 394 | !if $p_>0 |
395 | !read adm/class/colors $[ceil(10*$p_/$scoremax)] |
||
396 | <td style=$style_note>$p_ |
||
12395 | bpr | 397 | !else |
398 | <td>-- |
||
399 | !endif |
||
400 | </td> |
||
7665 | bpr | 401 | !else |
12488 | bpr | 402 | !if quality iswordof $job_affi |
403 | !set p_=$p2 |
||
404 | !if $p_>0 |
||
405 | !read adm/class/colors $[ceil($p_)] |
||
406 | <td style=$style_note>$p_ |
||
12395 | bpr | 407 | !else |
408 | <td>-- |
||
409 | !endif |
||
410 | </td> |
||
411 | !endif |
||
12488 | bpr | 412 | !if points iswordof $job_affi |
413 | !set p_=$p1 |
||
12395 | bpr | 414 | !if $p_>0 |
12488 | bpr | 415 | !read adm/class/colors $[ceil($p_/10)] |
416 | <td style=$style_note>$p_ % |
||
12395 | bpr | 417 | !else |
418 | <td>-- |
||
419 | !endif |
||
420 | </td> |
||
12488 | bpr | 421 | !endif |
12395 | bpr | 422 | !if best iswordof $job_affi |
423 | !set p_=$p3 |
||
424 | !if $p_>0 |
||
425 | !read adm/class/colors $[ceil($p_/10)] |
||
426 | <td style=$style_note>$p_ % |
||
427 | !else |
||
428 | <td>-- |
||
429 | !endif |
||
430 | </td> |
||
431 | !endif |
||
432 | !if level iswordof $job_affi |
||
433 | !set p_=$[$p4/10] |
||
434 | !if $p_>0 |
||
435 | !read adm/class/colors $[ceil($p_)] |
||
436 | <td style=$style_note>$p_ |
||
437 | !else |
||
438 | <td>-- |
||
439 | !endif |
||
12488 | bpr | 440 | </td> |
12395 | bpr | 441 | !endif |
442 | !if $p2=$empty |
||
443 | !set $p_=0 |
||
444 | !endif |
||
445 | !endif |
||
23 | reyssat | 446 | !endif |
12395 | bpr | 447 | !set per_$j=$[$(per_$j)+$p_] |
448 | !if $p_>0 |
||
449 | !advance cnt_$j |
||
450 | !endif |
||
23 | reyssat | 451 | !next j |
12536 | bpr | 452 | !if $showsheet=$empty and $job=$empty |
453 | !set exologs=!filelist $wims_home/log/classes/$wims_class/exolog/$uu |
||
454 | !set dtexologs=!word -1 of $exologs |
||
12700 | bpr | 455 | !set dtexologs=!char 1 to 8 of $dtexologs |
12536 | bpr | 456 | <td>$dtexologs</td> |
457 | !reset dtexologs |
||
458 | !endif |
||
5727 | bpr | 459 | </tr> |
7720 | bpr | 460 | :enduser |
12395 | bpr | 461 | !next i |
12438 | guerimand | 462 | </tbody> |
12395 | bpr | 463 | !if $wims_typename iswordof group portal |
12638 | obado | 464 | $table_end |
465 | !read tablesort.phtml |
||
466 | !goto endtail |
||
12395 | bpr | 467 | !endif |
12438 | guerimand | 468 | <tfoot> |
14003 | bpr | 469 | !distribute item $[rint(100*$mean_auto/$trueusercnt)/100],\ |
470 | $[rint(100*$mean_tea/$trueusercnt)/100],\ |
||
471 | $[rint(100*$mean_glob/$trueusercnt)/100] into m_auto,m_tea,m_glob |
||
14072 | bpr | 472 | $table_hdtr<th>$name_groupAverage ($trueusercnt)</th> |
12395 | bpr | 473 | !if $job_affi=notes |
1893 | bpr | 474 | !if $manual>0 |
12395 | bpr | 475 | !if $m_glob >0 |
476 | !read adm/class/colors $[ceil($m_glob*10/$scoremax)] |
||
477 | <td style=$style_note>$m_glob |
||
478 | !else |
||
479 | <td>-- |
||
480 | !endif |
||
12488 | bpr | 481 | </td> |
12395 | bpr | 482 | !if $m_tea >0 |
483 | !read adm/class/colors $[ceil($m_tea*10/$scoremax)] |
||
484 | <td style=$style_note>$m_tea |
||
485 | !else |
||
486 | <td>-- |
||
487 | !endif |
||
488 | </td> |
||
489 | !if $m_auto>0 |
||
490 | !read adm/class/colors $[ceil($m_auto*10/$scoremax)] |
||
491 | <td style=$style_note>$m_auto |
||
492 | !else |
||
493 | <td>-- |
||
494 | !endif |
||
495 | </td> |
||
1893 | bpr | 496 | !else |
12395 | bpr | 497 | !if $m_auto>0 |
498 | !read adm/class/colors $[ceil($m_auto*10/$scoremax)] |
||
499 | <td style=$style_note>$m_auto |
||
500 | !else |
||
501 | <td>-- |
||
502 | !endif |
||
503 | </td> |
||
1893 | bpr | 504 | !endif |
12536 | bpr | 505 | !if $showsheet=$empty and $job=$empty |
506 | <td>$showsheet</td> |
||
507 | !endif |
||
12395 | bpr | 508 | !endif |
509 | !for j in $showsheet |
||
14003 | bpr | 510 | !if $[rint(100*$(per_$j)/max(1,$trueusercnt))/100]>0 |
12395 | bpr | 511 | !if $job_affi=points |
14003 | bpr | 512 | !read adm/class/colors $[ceil($(per_$j)/max(1,$trueusercnt)/10)] |
513 | <td style=$style_note>$[rint(100*$(per_$j)/max(1,$trueusercnt))/100] % |
||
12395 | bpr | 514 | !else |
14003 | bpr | 515 | !read adm/class/colors $[ceil($(per_$j)/max(1,$trueusercnt)*10/$scoremax)] |
516 | <td style=$style_note>$[rint(100*$(per_$j)/max(1,$trueusercnt))/100] |
||
12395 | bpr | 517 | !endif |
1893 | bpr | 518 | !else |
5988 | bpr | 519 | <td>-- |
1893 | bpr | 520 | !endif |
12488 | bpr | 521 | </td> |
12395 | bpr | 522 | !next j |
523 | !if $cnt_glob>0 |
||
23 | reyssat | 524 | !distribute item $[rint(100*$mean_auto/max(1,$cnt_auto))/100],\ |
9606 | bpr | 525 | $[rint(100*$mean_tea/max(1,$cnt_tea))/100],\ |
526 | $[rint(100*$mean_glob/max(1,$cnt_glob))/100] into m_auto,m_tea,m_glob |
||
12395 | bpr | 527 | </tr> |
14074 | bpr | 528 | $table_hdtr<th>$name_posAverage ($cnt_glob)</th> |
23 | reyssat | 529 | !if $manual>0 |
1893 | bpr | 530 | !if $m_glob>0 |
12395 | bpr | 531 | !read adm/class/colors $[ceil($m_glob*10/$scoremax)] |
532 | <td style=$style_note>$m_glob |
||
1893 | bpr | 533 | !else |
12395 | bpr | 534 | <td>-- |
1893 | bpr | 535 | !endif |
536 | </td> |
||
537 | !if $m_tea>0 |
||
12395 | bpr | 538 | !read adm/class/colors $[ceil($m_tea*10/$scoremax)] |
539 | <td style=$style_note>$m_tea |
||
1893 | bpr | 540 | !else |
12395 | bpr | 541 | <td>-- |
1893 | bpr | 542 | !endif |
543 | </td> |
||
544 | !if $m_auto>0 |
||
12395 | bpr | 545 | !read adm/class/colors $[ceil($m_auto*10/$scoremax)] |
546 | <td style=$style_note>$m_auto |
||
547 | !else |
||
548 | <td>-- |
||
549 | !endif |
||
550 | </td> |
||
1893 | bpr | 551 | !else |
12395 | bpr | 552 | !if $m_auto>0 |
553 | !read adm/class/colors $[ceil($m_auto*10/$scoremax)] |
||
554 | <td style=$style_note>$m_auto |
||
555 | !else |
||
556 | <td>-- |
||
557 | !endif |
||
558 | </td> |
||
1893 | bpr | 559 | !endif |
12395 | bpr | 560 | !for j in $showsheet |
561 | !if $[rint(100*$(per_$j)/max(1,$(cnt_$j)))/100]>0 |
||
562 | !read adm/class/colors $[ceil($(per_$j)/max(1,$(cnt_$j))*10/$scoremax)] |
||
563 | <td style=$style_note>$[rint(100*$(per_$j)/max(1,$(cnt_$j)))/100] |
||
564 | !else |
||
565 | <td>-- |
||
566 | !endif |
||
567 | </td> |
||
568 | !next j |
||
12536 | bpr | 569 | !if $showsheet=$empty and $job=$empty |
570 | <td></td> |
||
571 | !endif |
||
23 | reyssat | 572 | !endif |
12395 | bpr | 573 | </tr> |
12488 | bpr | 574 | </tfoot> |
575 | $table_end |
||
12638 | obado | 576 | !read tablesort.phtml |
23 | reyssat | 577 | !endif (usercnt=0?) |
1293 | bpr | 578 | |
9809 | bpr | 579 | !set wims_menu_items=!append line itemsep,0,\ |
580 | csv,1,cmd=reply&job=csv\ |
||
581 | grades,1,module=adm/class/grades\ |
||
582 | itemsep,0,\ |
||
1323 | guerimand | 583 | formula,1,cmd=reply&job=formula&formula=prep\ |
1336 | bpr | 584 | to $wims_menu_items |
3095 | guerimand | 585 | !if (($wims_supertype<4 and $wims_typename=class) or ($wims_supertype=4 and $wims_typename iswordof course program)) and $wims_showlivret!=no |
12395 | bpr | 586 | !set wims_menu_items=!append line itemsep,0,$wims_name_Evaluation\ |
9351 | bpr | 587 | livret,1,module=adm/class/livret\ |
1868 | bpr | 588 | to $wims_menu_items |
589 | !endif |
||
1323 | guerimand | 590 | |
932 | bpr | 591 | !if $usercnt!=0 |
12395 | bpr | 592 | !set wims_menu_items=!append line activity,1,module=adm/class/activity\ |
9809 | bpr | 593 | class_stat,1,module=adm/class/stat\ |
1336 | bpr | 594 | to $wims_menu_items |
932 | bpr | 595 | !endif |
596 | |||
12707 | bpr | 597 | !!!!!if $manual>0 |
598 | !!!! <div class="wims_msg info">$wims_name_Explanations |
||
599 | !!!! <div class="wimscenter"> |
||
600 | !!!! moyenne des notes sur les feuilles et examens pondérée par les poids attribués à chacune de ces activités. |
||
601 | !!!! $(name_manual_notes[1]) = $[$manual/100]* $(name_manual_notes[2]) |
||
602 | !!!! + $[1-$manual/100]* $(name_manual_notes[3]) |
||
603 | !!!! </div> |
||
604 | !!!! </div> |
||
605 | !!!!!endif |
||
23 | reyssat | 606 | |
12439 | guerimand | 607 | :endtail |
23 | reyssat | 608 | !tail |
609 | |||
610 | !reset job,showsheet,getuser,getraw,delprep,deluser,formula,abandon,reg,\ |
||
9606 | bpr | 611 | passcheck |