Rev 2184 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2368 | bpr | 1 | !!!!read adm/class/classlang names.phtml |
2 | |||
23 | reyssat | 3 | !if $wims_user!=supervisor |
4 | error=not_supervisor |
||
5 | !exit |
||
6 | !endif |
||
7 | |||
8 | ucnt=!recordcnt wimshome/log/classes/$wims_class/.userlist |
||
9 | !reset ulist,flist,llist,uulist |
||
10 | !for i=1 to $ucnt |
||
11 | u_=!record $i of wimshome/log/classes/$wims_class/.userlist |
||
12 | !distribute item $u_ into l_,f_,n_ |
||
13 | ulist=!append item $n_ to $ulist |
||
14 | flist=!append item $f_ to $flist |
||
15 | llist=!append item $l_ to $llist |
||
16 | !next i |
||
17 | |||
18 | uucnt=!recordcnt wimshome/log/classes/$wims_class/.grades |
||
19 | !if $uucnt>0 |
||
20 | uucnt=$[$uucnt-1] |
||
21 | !endif |
||
22 | !for i=1 to $uucnt |
||
23 | u_=!record $i+1 of wimshome/log/classes/$wims_class/.grades |
||
24 | n_=!item 1 of $u_ |
||
25 | uulist=!append item $n_ to $uulist |
||
26 | !next i |
||
27 | |||
28 | gr=!record 1 of wimshome/log/classes/$wims_class/.grades |
||
29 | gr=!trim $gr |
||
30 | !distribute lines $gr into percent,titles,weights |
||
31 | titles=!item 3 to -1 of $titles |
||
32 | weights=!item 3 to -1 of $weights |
||
33 | gcnt=!itemcnt $titles |
||
34 | !default percent=0 |
||
35 | |||
36 | wtot=0 |
||
37 | !for i=1 to $gcnt |
||
38 | w_=!item $i of $weights |
||
39 | !bound w_ between 0 and 1000 default 1 |
||
40 | wtot=$[$wtot+$w_] |
||
41 | !next i |
||
42 | |||
43 | m=!record 0 of wimshome/log/classes/$wims_class/sheets/.severity |
||
44 | maxscore=!word 1 of $m |
||
45 | !bound maxscore between 0 and 100000 default 10 |
||
46 |