Subversion Repositories wimsdev

Rev

Rev 9252 | Rev 9365 | 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
6
!if $wims_user!=supervisor
7
 error=not_supervisor
8
 !exit
9
!endif
9252 bpr 10
!if $varfilter!=$empty
11
   !reset varfilter_
12
   !set varfilter_cnt=!linecnt $varfilter
13
   !for v=1 to $varfilter_cnt
14
    var_line=!singlespace $(varfilter[$v;])
15
    var_line =!replace $ $ by , in $var_line
16
    varfilter_=!append line $var_line to $varfilter_
17
  !next
18
!endif
9353 bpr 19
!exit
232 bpr 20
 
21
!bound share within yes,no default no
22
!if $share=yes
23
 ssh=!defof sharing_sheet in wimshome/log/classes/$wims_class/neighbors
24
 !if $ssh!=$empty
25
  ssh=!item 1 of $ssh
26
  sh1=!defof sharable_sheet in wimshome/log/classes/$ssh/neighbors
27
  sht=
28
  !for sh in $sh1
29
   shs=!defof sharing_sheet in wimshome/log/classes/$sh/neighbors
30
   !if $shs=$ssh
31
    sht=$sht $sh
32
   !endif
33
  !next sh
34
 !endif
35
!endif
36
sharer=!defof sharable_sheet sharing_sheet in wimshome/log/classes/$wims_class/neighbors
37
sharer=!items2words $sharer $sht
38
 
39
stcnt=0
40
show=!listintersect $show and req,weight,cid,tot,scoremean,partmean,minmax,deviat
41
!if $show!=$empty
42
 test=!listintersect $show and tot,scoremean,partmean,minmax,deviat
43
 !if $test!=$empty
44
  hdrow=2
45
 !else
46
  hdrow=1
47
 !endif
48
 !bound types between integer 1 and 3 default 1
49
 t=!item $types of score,noscore,score noscore
50
 cl=$wims_class
51
 usercnt=!recordcnt wimshome/log/classes/$wims_class/.userlist
52
 !if $sharer!=$empty and $share=yes
53
  sha=!words2items $sharer
54
  sha=!listuniq $sha
55
  sha=!listcomplement $wims_class in $sha
56
  !for c in $sha
57
   cl=$cl $c
58
   cnt=!recordcnt wimshome/log/classes/$c/.userlist
59
   usercnt=$[$usercnt+$cnt]
60
  !next c
9252 bpr 61
 !endif