Rev 12429 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1319 | guerimand | 1 | usercnt=!recordcnt wimshome/log/classes/$wims_class/.userlist |
2 | |||
1647 | czzmrn | 3 | wims_superclass=!defof class_superclass\ |
4 | in wimshome/log/classes/$wims_class/.def |
||
5 | |||
6 | !if $wims_superclass=$empty |
||
7 | wims_superclass=$wims_class |
||
8 | !endif |
||
9 | |||
1319 | guerimand | 10 | t=!defof user_exists\ |
11 | user_firstname\ |
||
1647 | czzmrn | 12 | user_lastname in wimshome/log/classes/$wims_superclass/.users/$user |
1319 | guerimand | 13 | !distribute line $t into test,user_firstname,user_lastname |
14 | !if $test!=yes |
||
12429 | bpr | 15 | error=nouser |
16 | !exit |
||
1319 | guerimand | 17 | !endif |
1857 | guerimand | 18 | score=!getscoremean user=$user |
1319 | guerimand | 19 | !for k=1 to $livret_nbcomp |
12429 | bpr | 20 | nbit_$k=0 |
21 | !for l=1 to $livret_nbpalier |
||
1319 | guerimand | 22 | l_$(k)_$(l)=0 |
12429 | bpr | 23 | !next l |
1319 | guerimand | 24 | !next k |
25 | |||
26 | maxnbpalier=0 |
||
27 | !for k=1 to $livret_nbcomp |
||
12429 | bpr | 28 | t=!record $k of wimshome/log/classes/$wims_class/livret/.comps |
29 | !distribute line $t into title_$k,nbpalier_$k |
||
30 | maxnbpalier=$[max($maxnbpalier,$(nbpalier_$k))] |
||
31 | !for l=1 to $(nbpalier_$k) |
||
32 | list=!record $l of wimshome/log/classes/$wims_class/livret/.comp$k |
||
33 | list=!line 2 of $list |
||
34 | nbit=!itemcnt $list |
||
35 | list2=$empty |
||
36 | !for it in $list |
||
37 | t=!replace internal . by , in $it |
||
38 | !if $(t[1]) notitemof $livret_nonactivesheet |
||
39 | list2=!append line $(t[1]),$(t[2]) to $list2 |
||
40 | !endif |
||
41 | !next it |
||
42 | nbit=!linecnt $list2 |
||
43 | !if $nbit>0 |
||
44 | !increase nbit_$k |
||
45 | !for m=1 to $nbit |
||
46 | t=!line $m of $list2 |
||
47 | s=!line $(convert_table[$(t[1])]) of $score |
||
48 | s=!word $(t[2]) of $s |
||
49 | !if $s>=$livret_minac |
||
50 | l_$(k)_$(l)=$(l_$(k)_$(l))+$s/$nbit |
||
51 | !else |
||
52 | !if $s>0 |
||
53 | l_$(k)_$(l)=$(l_$(k)_$(l))+0 |
||
54 | !endif |
||
55 | !endif |
||
56 | !next it |
||
3095 | guerimand | 57 | !endif |
12429 | bpr | 58 | !next l |
1319 | guerimand | 59 | !next k |