Subversion Repositories wimsdev

Rev

Rev 7664 | Rev 8528 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
!default uu=$wims_read_parm
2
 
7612 bpr 3
!!one line by sheet : points quality
20 reyssat 4
percents=!getscorepercent user=$uu
7638 bpr 5
 
20 reyssat 6
percnt=!linecnt $percents
7
per=0
8
av=0
9
 
7612 bpr 10
!! w_$i etc are defined in sheetweights
7638 bpr 11
!!give an average for all sheets and for the user $uu - even not seen in sequences ??
7664 bpr 12
 
20 reyssat 13
!for i=1 to $percnt
14
 perc=!line $i of $percents
7664 bpr 15
 !distribute words $perc into p1,p2,p3,p4
20 reyssat 16
 !if $p2!=$empty and $(w_$i)!=$empty
7664 bpr 17
  !distribute item $[$p1/100],$[$p2/10],$[$p3/100],$[$p4/100] into x0_,y_,x1_,x2_
18
  !set ff_$i=!mathsubst Q=$y_ in $(f_$i)
19
  !for sev=0 to 2
20
     !set ff_$i=!mathsubst I$sev=$(x$(sev)_) in $(ff_$i)
21
  !next
22
   per=$[$per+($(w_$i))*$(ff_$i)]
20 reyssat 23
 !endif
24
!next i
25
 
26
examout=!examscore user=$uu
2733 guerimand 27
 
20 reyssat 28
!for i in $activexams
29
 es_$i=!word $i of $examout
30
 per=$[$per+$(ew_$i)*$(es_$i)/10]
31
!next i
32
 
33
!if $totweight>0
34
 per=$[rint($scoremax*100*$per/$totweight)/100]
35
!else
36
 per=0
37
!endif
38