Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
1406 bpr 1
 
3912 bpr 2
!bound seq between integer 1 and $seq_cnt+1 default $empty
1406 bpr 3
 
4
!if $cf_abandon!=$empty or $seq=$empty
12335 bpr 5
  !reset cf_abandon
6
  job=show
7
  !exit
1406 bpr 8
!endif
9
 
10
!if $seq>$maxseq
12335 bpr 11
  error=toomanyseq
12
  !exit
1406 bpr 13
!endif
14
 
15
!if $cmd=reply
16
 
17
new_data=:$seq_title\
18
$seq_desc
19
 
20
!set listdoc=!makelist doc_ i for i=1 to $docpubliccnt
11848 bpr 21
!set listc=!filelist $wims_home/log/classes/$wims_class/doc
22
!set listc=!lines2items $listc
23
!set listc=!replace internal c by c_$ $ in $listc
1406 bpr 24
!set listexam=!makelist exam_ i for i=1 to $examcnt
25
!set listsheet=!makelist sheet_ i for i=1 to $sheetcnt
26
!set listvote=!makelist vote_ i for i=1 to $votecnt
12338 bpr 27
!set listtool=!makelist tool_ i for i=1 to $toolcnt
28
list=!nospace $listc,$listdoc,$listsheet,$listexam,$listvote,$listtool
1406 bpr 29
list=!nonempty items $list
30
list1=debut
31
!for x in $list
32
  list1=!append item $($x) to $list1
33
!next
34
list1=$(list1[2..-1])
35
listcnt=!replace internal ,0, by , in ,$list1,
36
listcnt=!nonempty items $listcnt
37
listcnt=!itemcnt $listcnt
38
!for j = 1 to $listcnt
39
  jj=!positionof item $j in $list1
40
  !if $jj!=
41
    listfinal=!append item $(list[$jj]) to $listfinal
42
  !endif
43
!next
44
list=!replace internal _ by $ $ in $(listfinal)
45
new_data=!append line $list to $new_data
46
!writefile wimshome/log/classes/$wims_class/seq/.sequence$seq $new_data\
47
$visible
48
 
1625 bpr 49
s_ =!record 0 of .sequences
50
s_=!line 2 to -1 of s_
1406 bpr 51
!if $seq= $[$seq_cnt+1]
12335 bpr 52
  seq_cnt=$[$seq_cnt+1]
53
  !writefile wimshome/log/classes/$wims_class/seq/.sequences $seq_cnt\
1625 bpr 54
 $s_
1406 bpr 55
!endif