Subversion Repositories wimsdev

Rev

Rev 9992 | 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
 
9567 guerimand 3
!! add for varfilter
4
!if $wims_user=supervisor
9992 guerimand 5
 !readproc adm/vfilter/listvarfilter.proc
6
 !readproc adm/vfilter/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
12429 bpr 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])]);])
43
        !if $s>=$livret_minac
44
          pal=$pal+$s/$nbit
45
        !else
46
          !if $s!=0
47
            pal=$pal+0
48
          !endif
49
        !endif
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
4570 guerimand 55
!next u