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