Subversion Repositories wimsdev

Rev

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