Subversion Repositories wimsdev

Rev

Rev 7612 | Rev 7664 | 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
!! add new indicator, it should be better if it would created in the line
11
!!percents in the future
12
!! w_$i etc are defined in sheetweights
7638 bpr 13
!!give an average for all sheets and for the user $uu - even not seen in sequences ??
20 reyssat 14
!for i=1 to $percnt
15
 perc=!line $i of $percents
7638 bpr 16
 !distribute words $perc into p1,p2,p3
20 reyssat 17
 !if $p2!=$empty and $(w_$i)!=$empty
7638 bpr 18
  !distribute item $[$p1/100],$[$p2/10],$[$p3/100] into x_,y_,z_
20 reyssat 19
  per=$[$per+($(w_$i))*$(f_$i)]
20
 !endif
21
!next i
22
 
23
examout=!examscore user=$uu
2733 guerimand 24
 
20 reyssat 25
!for i in $activexams
26
 es_$i=!word $i of $examout
27
 per=$[$per+$(ew_$i)*$(es_$i)/10]
28
!next i
29
 
30
!if $totweight>0
31
 per=$[rint($scoremax*100*$per/$totweight)/100]
32
!else
33
 per=0
34
!endif
35