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