Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
232 bpr 1
 
2177 bpr 2
 
232 bpr 3
fields=typ,sh,exo,newcnt,sccnt,scsum,dursum,scavg,duravg,scmin,durmin,scmax,durmax,scdev,durdev,cid
4
wims_prefix=class user tmp n sharing sharable
5
!read tabletheme
2163 bpr 6
 
2177 bpr 7
!read lang/names.phtml.$moduclass_lang
2163 bpr 8
 
232 bpr 9
!if $wims_user!=supervisor
10
 error=not_supervisor
11
 !exit
12
!endif
13
 
14
!bound share within yes,no default no
15
!if $share=yes
16
 ssh=!defof sharing_sheet in wimshome/log/classes/$wims_class/neighbors
17
 !if $ssh!=$empty
18
  ssh=!item 1 of $ssh
19
  sh1=!defof sharable_sheet in wimshome/log/classes/$ssh/neighbors
20
  sht=
21
  !for sh in $sh1
22
   shs=!defof sharing_sheet in wimshome/log/classes/$sh/neighbors
23
   !if $shs=$ssh
24
    sht=$sht $sh
25
   !endif
26
  !next sh
27
 !endif
28
!endif
29
sharer=!defof sharable_sheet sharing_sheet in wimshome/log/classes/$wims_class/neighbors
30
sharer=!items2words $sharer $sht
31
 
32
stcnt=0
33
show=!listintersect $show and req,weight,cid,tot,scoremean,partmean,minmax,deviat
34
!if $show!=$empty
35
 test=!listintersect $show and tot,scoremean,partmean,minmax,deviat
36
 !if $test!=$empty
37
  hdrow=2
38
 !else
39
  hdrow=1
40
 !endif
41
 !bound types between integer 1 and 3 default 1
42
 t=!item $types of score,noscore,score noscore
43
 cl=$wims_class
44
 usercnt=!recordcnt wimshome/log/classes/$wims_class/.userlist
45
 !if $sharer!=$empty and $share=yes
46
  sha=!words2items $sharer
47
  sha=!listuniq $sha
48
  sha=!listcomplement $wims_class in $sha
49
  !for c in $sha
50
   cl=$cl $c
51
   cnt=!recordcnt wimshome/log/classes/$c/.userlist
52
   usercnt=$[$usercnt+$cnt]
53
  !next c
54
 !endif