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