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