Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
2368 bpr 1
!read adm/class/classlang names.phtml
232 bpr 2
 
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
 
232 bpr 7
!if $wims_user!=supervisor
8
 error=not_supervisor
9
 !exit
10
!endif
11
 
12
!bound share within yes,no default no
13
!if $share=yes
14
 ssh=!defof sharing_sheet in wimshome/log/classes/$wims_class/neighbors
15
 !if $ssh!=$empty
16
  ssh=!item 1 of $ssh
17
  sh1=!defof sharable_sheet in wimshome/log/classes/$ssh/neighbors
18
  sht=
19
  !for sh in $sh1
20
   shs=!defof sharing_sheet in wimshome/log/classes/$sh/neighbors
21
   !if $shs=$ssh
22
    sht=$sht $sh
23
   !endif
24
  !next sh
25
 !endif
26
!endif
27
sharer=!defof sharable_sheet sharing_sheet in wimshome/log/classes/$wims_class/neighbors
28
sharer=!items2words $sharer $sht
29
 
30
stcnt=0
31
show=!listintersect $show and req,weight,cid,tot,scoremean,partmean,minmax,deviat
32
!if $show!=$empty
33
 test=!listintersect $show and tot,scoremean,partmean,minmax,deviat
34
 !if $test!=$empty
35
  hdrow=2
36
 !else
37
  hdrow=1
38
 !endif
39
 !bound types between integer 1 and 3 default 1
40
 t=!item $types of score,noscore,score noscore
41
 cl=$wims_class
42
 usercnt=!recordcnt wimshome/log/classes/$wims_class/.userlist
43
 !if $sharer!=$empty and $share=yes
44
  sha=!words2items $sharer
45
  sha=!listuniq $sha
46
  sha=!listcomplement $wims_class in $sha
47
  !for c in $sha
48
   cl=$cl $c
49
   cnt=!recordcnt wimshome/log/classes/$c/.userlist
50
   usercnt=$[$usercnt+$cnt]
51
  !next c
52
 !endif