Rev 2935 | Rev 9567 | 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 | |
4 | userlist=$empty |
||
4570 | guerimand | 5 | !! ------------ make of skill exercice contribution |
1319 | guerimand | 6 | !for k=1 to $livret_nbcomp |
7 | !for l=1 to $(nbpalier_$k) |
||
1845 | guerimand | 8 | list=!record $l of $livret_dir/.comp$k |
1319 | guerimand | 9 | list=!line 2 of $list |
10 | list2=$empty |
||
11 | !for it in $list |
||
12 | t=!replace internal . by , in $it |
||
13 | !if $(t[1]) notitemof $livret_nonactivesheet |
||
14 | list2=!append line $(t[1]),$(t[2]) to $list2 |
||
15 | !endif |
||
16 | !next it |
||
4570 | guerimand | 17 | skill_$(k)_$(l)=$list2 |
18 | !next l |
||
19 | !next k |
||
20 | |||
21 | !! ------------ make user skill database |
||
22 | !for u=1 to $usercnt |
||
23 | user=!record $u of wimshome/log/classes/$wims_class/.userlist |
||
24 | !distribute item $user into lastname,firstname,user |
||
25 | userlist=!append line $user,$lastname $firstname to $userlist |
||
26 | userlist=!append item $user to $userlist |
||
27 | userscore=!getscoremean user=$user |
||
28 | skillu_$u=$empty |
||
29 | !for k=1 to $livret_nbcomp |
||
30 | comp=$empty |
||
31 | !for l=1 to $(nbpalier_$k) |
||
32 | nbit=!linecnt $(skill_$(k)_$(l)) |
||
33 | pal=0 |
||
34 | !for m=1 to $nbit |
||
35 | t=!line $m of $(skill_$(k)_$(l)) |
||
36 | s=!word $(t[2]) of $(userscore[$(convert_table[$(t[1])]);]) |
||
1768 | guerimand | 37 | !if $s>=$livret_minac |
4570 | guerimand | 38 | pal=$pal+$s/$nbit |
1857 | guerimand | 39 | !else |
40 | !if $s!=0 |
||
4570 | guerimand | 41 | pal=$pal+0 |
1857 | guerimand | 42 | !endif |
1768 | guerimand | 43 | !endif |
4570 | guerimand | 44 | !next m |
45 | comp=!append item $pal to $comp |
||
46 | !next l |
||
47 | skillu_$u=!append line $comp to $(skillu_$u) |
||
48 | !next k |
||
49 | !next u |