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