Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
23 reyssat 1
 
2
fields=typ,sh,exo,newcnt,sccnt,scsum,dursum,scavg,duravg,scmin,durmin,scmax,durmax,scdev,durdev,cid
3
wims_prefix=class user tmp n sharing sharable
4
!read tabletheme
5
 
6
!if $wims_user!=supervisor
7
 error=not_supervisor
8
 !exit
9
!endif
10
 
11
!bound share within yes,no default no
12
!if $share=yes
13
 ssh=!defof sharing_sheet in wimshome/log/classes/$wims_class/neighbors
14
 !if $ssh!=$empty
15
  ssh=!item 1 of $ssh
16
  sh1=!defof sharable_sheet in wimshome/log/classes/$ssh/neighbors
17
  sht=
18
  !for sh in $sh1
19
   shs=!defof sharing_sheet in wimshome/log/classes/$sh/neighbors
20
   !if $shs=$ssh
21
    sht=$sht $sh
22
   !endif
23
  !next sh
24
 !endif
25
!endif
26
sharer=!defof sharable_sheet sharing_sheet in wimshome/log/classes/$wims_class/neighbors
27
sharer=!items2words $sharer $sht
28
 
29
stcnt=0
30
show=!listintersect $show and req,weight,cid,tot,scoremean,partmean,minmax,deviat
31
!if $show!=$empty
32
 test=!listintersect $show and tot,scoremean,partmean,minmax,deviat
33
 !if $test!=$empty
34
  hdrow=2
35
 !else
36
  hdrow=1
37
 !endif
38
 !bound types between integer 1 and 3 default 1
39
 t=!item $types of score,noscore,score noscore
40
 cl=$wims_class
41
 usercnt=!recordcnt wimshome/log/classes/$wims_class/.userlist
42
 !if $sharer!=$empty and $share=yes
43
  sha=!words2items $sharer
44
  sha=!listuniq $sha
45
  sha=!listcomplement $wims_class in $sha
46
  !for c in $sha
47
   cl=$cl $c
48
   cnt=!recordcnt wimshome/log/classes/$c/.userlist
49
   usercnt=$[$usercnt+$cnt]
50
  !next c
51
 !endif
52
 !sh export exostat_dirbase exostat_types exostat_classes\
53
	exostat_dirbase=$wims_home/log/classes\
54
	exostat_types="$t"\
55
	exostat_classes="$cl"\
56
	../bin/exostat >$wims_home/log/classes/$wims_class/exostat
57
 stcnt=!recordcnt wimshome/log/classes/$wims_class/exostat
58
 lastsh=0
59
 lastty=
60
 listsh=
61
 !for i=1 to $stcnt
62
  l=!record $i of wimshome/log/classes/$wims_class/exostat
63
  !distribute words $l into t,sh,exo
64
  !if $sh!=$lastsh
65
   start$t$sh=$i
66
   !if $i>0 and $lastsh>0
67
    end$lastty$lastsh=$[$i-1]
68
   !endif
69
   lastsh=$sh
70
   lastty=$t
71
   listsh=!append item $t$sh to $listsh
72
  !endif
73
 !next i
74
 end$lastty$lastsh=$stcnt
75
!endif
76