Subversion Repositories wimsdev

Rev

Rev 2356 | Rev 3095 | 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
21
 !for l=1 to $livret_nbpalier
22
    l_$(k)_$(l)=0
23
 !next l
24
!next k
25
 
26
maxnbpalier=0
27
!for k=1 to $livret_nbcomp
28
 t=!record $k of wimshome/log/classes/$wims_class/livret/.comps
29
 !distribute line $t into title_$k,nbpalier_$k
30
 maxnbpalier=$[max($maxnbpalier,$(nbpalier_$k))]
31
 !for l=1 to $(nbpalier_$k)
32
  list=!record $l of wimshome/log/classes/$wims_class/livret/.comp$k
33
  list=!line 2 of $list
34
  nbit=!itemcnt $list
35
  list2=$empty
36
  !for it in $list
37
   t=!replace internal . by , in $it
38
   !if $(t[1]) notitemof $livret_nonactivesheet
39
    list2=!append line $(t[1]),$(t[2]) to $list2
40
   !endif
41
  !next it
42
  nbit=!linecnt $list2
43
  !for m=1 to $nbit
44
   t=!line $m of $list2
2935 guerimand 45
   s=!line $(convert_table[$(t[1])]) of $score
1319 guerimand 46
   s=!word $(t[2]) of $s
1768 guerimand 47
   !if $s>=$livret_minac
48
    l_$(k)_$(l)=$(l_$(k)_$(l))+$s/$nbit
1857 guerimand 49
   !else
50
    !if $s>0
51
     l_$(k)_$(l)=$(l_$(k)_$(l))+0
52
    !endif    
1768 guerimand 53
   !endif
1319 guerimand 54
  !next it
55
 !next l
56
!next k
57