Subversion Repositories wimsdev

Rev

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