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