Subversion Repositories wimsdev

Rev

Rev 17465 | 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
      &nbsp;
51
      !set wims_ref_class=wims_button
52
      !href module=adm/class/reguser&step=1 $wims_name_addstudent
53
      &nbsp;
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
  &nbsp;
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 &#44; 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 &#44; 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 &#44; 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
18680 bpr 181
    <p>$name_sheetdetail
182
    !if $cutexam!=$empty
183
      $(name_cuttime[2])
184
    !endif
185
    </p>
12488 bpr 186
  !if $wims_typename notwordof group portal program
187
    <p>$name_click.</p>
188
  !endif
189
!endif
190
!reset table_center
191
!set table_id=TABLE_userlist
192
!set table_class=sortable
193
$table_header
194
!if $wims_typename notwordof group portal
195
  !if $job_affi=notes
196
    <caption>$name_formula2</caption>
197
  !else
198
    !let tmp=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheets
199
    !let tmp=!values v for v=1 to $tmp
200
    !let showsheet=!listintersect $showsheet and $tmp
201
    !if $job_affi=quality
202
      <caption>$name_qualitygot</caption>
23 reyssat 203
    !endif
12488 bpr 204
    !if $job_affi=points
205
      <caption>$name_percentagedone</caption>
23 reyssat 206
    !endif
12488 bpr 207
    !if $job_affi=best
208
      <caption>$name_percentagebest</caption>
209
    !endif
23 reyssat 210
  !endif
12488 bpr 211
!endif
12438 guerimand 212
<thead>
12488 bpr 213
!if $manual>0 and $job_affi=notes
214
  $table_hdtr
12700 bpr 215
  <th scope="col">$wims_name_lastname, $wims_name_firstname ($usercnt)</th>
12707 bpr 216
  <th scope="col" class="manual_notes small" data-sort-method="number">
217
    <div class="wims_tooltip">$(name_manual_notes[1])
218
      <div class="wims_tooltiptext">$[$manual/100]* $(name_manual_notes[2])
219
    + $[1-$manual/100]* $(name_manual_notes[3])
220
      </div>
221
    </div>
222
  </th>
223
  <th scope="col" class="manual_notes small" data-sort-method="number">
224
  <div class="wims_tooltip">$(name_manual_notes[2])
225
    <div class="wims_tooltiptext">
226
    $name_manualscore
227
  </div></div>
228
  </th>
229
  <th scope="col" class="manual_notes small" data-sort-method="number">
12946 guerimand 230
    <div class="wims_tooltip">$(name_manual_notes[3])<div class="wims_tooltiptext">$name_auto</div></div>
12707 bpr 231
  </th>
12946 guerimand 232
  !if $showsheet=$empty and $job=$empty
233
    <th scope="col" class="dtexolog">$name_dtexolog</th>
234
  !endif
12488 bpr 235
  !for j in $showsheet
236
    !if E isin $j
237
      !set k=!char 2 to -1 of $j
238
      <th scope="col" class="name_exam small" data-sort-method="number">$name_Exam $k</th>
2085 bpr 239
    !else
12488 bpr 240
      <th scope="col" class="show_sheet small" data-sort-method="number">
241
      !set s=!record $j of wimshome/log/classes/$wims_class/sheets/.sheets
242
      !set s=!line 3 of $s
243
      !set wims_ref_title=$s
244
      !href cmd=reply&job=showsheet&numshowsheet=$j $name_Sheet $j
245
      </th>
246
    !endif
247
  !next j
248
  </tr>
249
!else
14072 bpr 250
  $table_hdtr<th scope="col">$wims_name_lastname, $wims_name_firstname</th>
12488 bpr 251
  !if $wims_typename iswordof group portal
252
    !goto endgroup
253
  !endif
254
  !if $job_affi=notes
12711 lemaire 255
    <th scope="col" class="average" data-sort-method="number">
12946 guerimand 256
      <div class="wims_tooltip">$name_Average <div class="wims_tooltiptext">$name_auto</div></div>
257
    </th>
12488 bpr 258
  !endif
12536 bpr 259
  !if $showsheet=$empty and $job=$empty
260
    <th scope="col" class="dtexolog" data-sort-method="number">$name_dtexolog</th>
261
  !endif
12488 bpr 262
  !for j in $showsheet
263
    !if E isin $j
264
      !set k=!char 2 to -1 of $j
265
      <th scope="col" class="name_exam small" data-sort-method="number">$name_Exam $k</th>
266
    !else
267
      <th scope="col" class="small" data-sort-method="number">
268
      !set s=!record $j of wimshome/log/classes/$wims_class/sheets/.sheets
269
      !set s=!line 3 of $s
270
      !set wims_ref_title=$s
271
      !href cmd=reply&job=showsheet&numshowsheet=$j $name_Sheet $j
12536 bpr 272
      </th>
2085 bpr 273
    !endif
12488 bpr 274
  !next j
12700 bpr 275
  </tr>
276
!endif
12395 bpr 277
:endgroup
12438 guerimand 278
</thead>
12488 bpr 279
!distribute item 0,0,0 into mean_tea,mean_auto,mean_glob
280
!distribute item 0,0,0 into cnt_tea,cnt_auto,cnt_glob
14003 bpr 281
!set trueusercnt=0
12438 guerimand 282
<tbody>
12488 bpr 283
!for i=1 to $usercnt
284
  !set uu=!record $i of wimshome/log/classes/$wims_class/.userlist
285
  !distribute items $uu into user_lastname,user_firstname,uu
286
  !if $varfilter_!=$empty
287
    !reset var_filter_test
288
    !read adm/vfilter/testfilter $uu\
12395 bpr 289
$varfilter_
12488 bpr 290
    !if $var_filter_test!=1
291
      !goto enduser
292
    !endif
293
  !endif
14003 bpr 294
  !increase trueusercnt
12488 bpr 295
  !set UU=!hex $uu
296
  $table_tr
297
  !reset css_connected
298
  !if $uu isitemof $wims_connectedlogin
299
    !set css_connected=class="wims_connected"
300
    !set wims_ref_title=connected
301
  !endif
302
  <td><span $css_connected>
303
  !href cmd=reply&job=getuser&getuser=$uu#sheet$(showsheet[1]) $user_lastname $user_firstname
304
  </span></td>
305
  !if $wims_typename iswordof group portal
306
    !goto enduser
307
  !endif
308
  !readproc adm/class/userscore $uu
309
  !if $manual>0 and $job_affi=notes
310
    !set glob=$[rint($manual*$(manual_$UU)+(100-$manual)*($per))/100]
311
    !if $glob>0
312
      !read adm/class/colors $[ceil($glob*10/$scoremax)]
313
        <td style=$style_note>$glob
314
    !else
315
      <td>--
316
    !endif
317
    </td>
318
    !if $(manual_$UU)>0
319
      !read adm/class/colors $[ceil($(manual_$UU)*10/$scoremax)]
320
      <td style=$style_note>$(manual_$UU)
321
    !else
322
      <td>--
323
    !endif
324
    </td>
325
    !if $per>0
326
      !read adm/class/colors $[ceil($per*10/$scoremax)]
327
        <td style=$style_note>$per
328
    !else
329
      <td>--
330
    !endif
331
    </td>
332
    !distribute item $[$mean_glob+$glob],$[$mean_tea+$(manual_$UU)] into mean_glob,mean_tea
333
    !if $glob>0
334
      !advance cnt_glob
335
      !if $(manual_$UU)>0
336
        !advance cnt_tea
1893 bpr 337
      !endif
12488 bpr 338
      !if $per>0
339
        !advance cnt_auto
7605 bpr 340
      !endif
12488 bpr 341
    !endif
342
  !else
343
    !if $wims_typename iswordof group portal
344
      </tr>
345
      !goto enduser
346
    !endif
347
    !if $job_affi=notes
348
      !if $per>0
349
        !read adm/class/colors $[ceil($per*10/$scoremax)]
350
        <td style=$style_note>$per
351
        !advance cnt_auto
352
        !advance cnt_glob
353
      !else
354
        <td>--
7641 bpr 355
      !endif
12488 bpr 356
      </td>
357
    !endif
358
  !endif
359
  !set mean_auto=$[$mean_auto+$per]
360
  !for j in $showsheet
361
    !if E isin $j
362
      !set k=!char 2 to -1 of $j
363
      !set p_=$[rint(10*$scoremax*$(es_$k))/100]
364
      !if NaN isin $p_
365
        !set p_=0
366
      !endif
367
      !if $p_>0
368
        !read adm/class/colors $[ceil($p_*10/$scoremax)]
369
        <td style=$style_note>$p_
370
      !else
371
        <td>$p_
372
      !endif
373
      </td>
374
    !else
375
      !set p_=!line $j of $percents
376
      !distribute words $p_ into p1,p2,p3,p4
377
      !if $job_affi=notes
378
        !if $p2!=$empty
379
          !set sev=!line $j of $defaultformula
380
          !distribute word $(sev) into w_$j,s,ss
381
          !set tmp=!defof DF_SEVERITY in wimshome/public_html/bases/sys/define.conf
382
          !distribute words $tmp into bidon,tmp_s,tmp_ss
383
          !bound s between integer 0 and 6 default $tmp_s
384
          !bound ss between integer 0 and 2 default $tmp_ss
385
          !reset tmp tmp_s tmp_ss
386
          !set f_$j=!item $s+1 of $formula_list
387
          !set f_$j=!replace internal I by I$ss in $(f_$j)
388
          !distribute item $[$p1/100],$[$p2/10],$[$p3/100], $[$p4/100] into x0_,y_,x1_,x2_
389
          !set ff_$j=!mathsubst Q=$y_ in $(f_$j)
390
          !for sev=0 to 2
391
            !set ff_$j=!mathsubst I$sev=$(x$(sev)_) in $(ff_$j)
392
          !next
393
          !set p_=$[rint(100*$scoremax*$(ff_$j))/100]
12395 bpr 394
        !else
12488 bpr 395
          !set p_=0
12395 bpr 396
        !endif
12488 bpr 397
        !if $p_>0
398
          !read adm/class/colors $[ceil(10*$p_/$scoremax)]
399
          <td style=$style_note>$p_
12395 bpr 400
        !else
401
          <td>--
402
        !endif
403
        </td>
7665 bpr 404
      !else
12488 bpr 405
        !if quality iswordof $job_affi
406
          !set p_=$p2
407
          !if $p_>0
408
            !read adm/class/colors $[ceil($p_)]
409
            <td style=$style_note>$p_
12395 bpr 410
          !else
411
            <td>--
412
          !endif
413
          </td>
414
        !endif
12488 bpr 415
        !if points iswordof $job_affi
416
          !set p_=$p1
12395 bpr 417
          !if $p_>0
12488 bpr 418
            !read adm/class/colors $[ceil($p_/10)]
419
            <td style=$style_note>$p_ %
12395 bpr 420
          !else
421
            <td>--
422
          !endif
423
          </td>
12488 bpr 424
        !endif
12395 bpr 425
        !if best iswordof $job_affi
426
          !set p_=$p3
427
          !if $p_>0
428
            !read adm/class/colors $[ceil($p_/10)]
429
            <td style=$style_note>$p_ %
430
          !else
431
            <td>--
432
          !endif
433
          </td>
434
        !endif
435
        !if level iswordof $job_affi
436
          !set p_=$[$p4/10]
437
          !if $p_>0
438
            !read adm/class/colors $[ceil($p_)]
439
            <td style=$style_note>$p_
440
          !else
441
            <td>--
442
          !endif
12488 bpr 443
          </td>
12395 bpr 444
        !endif
445
        !if $p2=$empty
446
          !set $p_=0
447
        !endif
448
      !endif
23 reyssat 449
    !endif
12395 bpr 450
    !set per_$j=$[$(per_$j)+$p_]
451
    !if $p_>0
452
      !advance cnt_$j
453
    !endif
23 reyssat 454
  !next j
12536 bpr 455
  !if $showsheet=$empty and $job=$empty
456
    !set exologs=!filelist $wims_home/log/classes/$wims_class/exolog/$uu
457
    !set dtexologs=!word -1 of $exologs
12700 bpr 458
    !set dtexologs=!char 1 to 8 of $dtexologs
12536 bpr 459
    <td>$dtexologs</td>
460
    !reset dtexologs
461
  !endif
5727 bpr 462
  </tr>
7720 bpr 463
:enduser
12395 bpr 464
!next i
12438 guerimand 465
</tbody>
12395 bpr 466
!if $wims_typename iswordof group portal
12638 obado 467
  $table_end
468
  !read tablesort.phtml
469
  !goto endtail
12395 bpr 470
!endif
12438 guerimand 471
<tfoot>
14003 bpr 472
!distribute item $[rint(100*$mean_auto/$trueusercnt)/100],\
473
  $[rint(100*$mean_tea/$trueusercnt)/100],\
474
  $[rint(100*$mean_glob/$trueusercnt)/100] into m_auto,m_tea,m_glob
14072 bpr 475
$table_hdtr<th>$name_groupAverage ($trueusercnt)</th>
12395 bpr 476
!if $job_affi=notes
1893 bpr 477
  !if $manual>0
12395 bpr 478
    !if $m_glob >0
479
      !read adm/class/colors $[ceil($m_glob*10/$scoremax)]
480
      <td style=$style_note>$m_glob
481
    !else
482
      <td>--
483
    !endif
12488 bpr 484
    </td>
12395 bpr 485
    !if $m_tea >0
486
      !read adm/class/colors $[ceil($m_tea*10/$scoremax)]
487
      <td style=$style_note>$m_tea
488
    !else
489
      <td>--
490
    !endif
491
    </td>
492
    !if $m_auto>0
493
      !read adm/class/colors $[ceil($m_auto*10/$scoremax)]
494
      <td style=$style_note>$m_auto
495
    !else
496
      <td>--
497
    !endif
498
    </td>
1893 bpr 499
  !else
12395 bpr 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
  !endif
12536 bpr 508
  !if $showsheet=$empty and $job=$empty
509
    <td>$showsheet</td>
510
  !endif
12395 bpr 511
!endif
512
!for j in $showsheet
14003 bpr 513
  !if $[rint(100*$(per_$j)/max(1,$trueusercnt))/100]>0
12395 bpr 514
    !if $job_affi=points
14003 bpr 515
      !read adm/class/colors $[ceil($(per_$j)/max(1,$trueusercnt)/10)]
516
      <td style=$style_note>$[rint(100*$(per_$j)/max(1,$trueusercnt))/100] %
12395 bpr 517
    !else
14003 bpr 518
      !read adm/class/colors $[ceil($(per_$j)/max(1,$trueusercnt)*10/$scoremax)]
519
      <td style=$style_note>$[rint(100*$(per_$j)/max(1,$trueusercnt))/100]
12395 bpr 520
    !endif
1893 bpr 521
  !else
5988 bpr 522
    <td>--
1893 bpr 523
  !endif
12488 bpr 524
  </td>
12395 bpr 525
!next j
526
!if $cnt_glob>0
23 reyssat 527
  !distribute item $[rint(100*$mean_auto/max(1,$cnt_auto))/100],\
9606 bpr 528
   $[rint(100*$mean_tea/max(1,$cnt_tea))/100],\
529
   $[rint(100*$mean_glob/max(1,$cnt_glob))/100] into m_auto,m_tea,m_glob
12395 bpr 530
  </tr>
14074 bpr 531
  $table_hdtr<th>$name_posAverage ($cnt_glob)</th>
23 reyssat 532
  !if $manual>0
1893 bpr 533
    !if $m_glob>0
12395 bpr 534
      !read adm/class/colors $[ceil($m_glob*10/$scoremax)]
535
        <td style=$style_note>$m_glob
1893 bpr 536
    !else
12395 bpr 537
      <td>--
1893 bpr 538
    !endif
539
    </td>
540
    !if $m_tea>0
12395 bpr 541
      !read adm/class/colors $[ceil($m_tea*10/$scoremax)]
542
      <td style=$style_note>$m_tea
1893 bpr 543
    !else
12395 bpr 544
      <td>--
1893 bpr 545
    !endif
546
    </td>
547
    !if $m_auto>0
12395 bpr 548
      !read adm/class/colors $[ceil($m_auto*10/$scoremax)]
549
        <td style=$style_note>$m_auto
550
      !else
551
        <td>--
552
      !endif
553
      </td>
1893 bpr 554
    !else
12395 bpr 555
      !if $m_auto>0
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
    !endif
12395 bpr 563
    !for j in $showsheet
564
      !if $[rint(100*$(per_$j)/max(1,$(cnt_$j)))/100]>0
565
        !read adm/class/colors $[ceil($(per_$j)/max(1,$(cnt_$j))*10/$scoremax)]
566
        <td style=$style_note>$[rint(100*$(per_$j)/max(1,$(cnt_$j)))/100]
567
      !else
568
        <td>--
569
      !endif
570
       </td>
571
    !next j
12536 bpr 572
    !if $showsheet=$empty and $job=$empty
573
      <td></td>
574
    !endif
23 reyssat 575
  !endif
12395 bpr 576
  </tr>
12488 bpr 577
  </tfoot>
578
  $table_end
12638 obado 579
  !read tablesort.phtml
23 reyssat 580
!endif (usercnt=0?)
1293 bpr 581
 
9809 bpr 582
!set wims_menu_items=!append line itemsep,0,\
583
csv,1,cmd=reply&job=csv\
584
grades,1,module=adm/class/grades\
585
 itemsep,0,\
1323 guerimand 586
formula,1,cmd=reply&job=formula&formula=prep\
1336 bpr 587
to $wims_menu_items
3095 guerimand 588
!if (($wims_supertype<4 and $wims_typename=class) or ($wims_supertype=4 and $wims_typename iswordof course program)) and $wims_showlivret!=no
12395 bpr 589
  !set wims_menu_items=!append line itemsep,0,$wims_name_Evaluation\
9351 bpr 590
livret,1,module=adm/class/livret\
1868 bpr 591
  to $wims_menu_items
592
!endif
1323 guerimand 593
 
932 bpr 594
!if $usercnt!=0
12395 bpr 595
  !set wims_menu_items=!append line activity,1,module=adm/class/activity\
9809 bpr 596
 class_stat,1,module=adm/class/stat\
1336 bpr 597
to $wims_menu_items
932 bpr 598
!endif
599
 
12707 bpr 600
!!!!!if $manual>0
601
!!!!  <div class="wims_msg info">$wims_name_Explanations
602
!!!!  <div class="wimscenter">
603
!!!!  moyenne des notes sur les feuilles et examens pondérée par les poids attribués à chacune de  ces activités.
604
!!!!  $(name_manual_notes[1]) = $[$manual/100]* $(name_manual_notes[2])
605
!!!!    + $[1-$manual/100]* $(name_manual_notes[3])
606
!!!!  </div>
607
!!!!  </div>
608
!!!!!endif
23 reyssat 609
 
12439 guerimand 610
:endtail
23 reyssat 611
!tail
612
 
613
!reset job,showsheet,getuser,getraw,delprep,deluser,formula,abandon,reg,\
9606 bpr 614
   passcheck