Rev 2356 | Rev 11848 | 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 |
||
5 | !reset cf_abandon |
||
6 | job=show |
||
7 | !exit |
||
8 | !endif |
||
9 | |||
10 | !if $seq>$maxseq |
||
11 | error=toomanyseq |
||
12 | !exit |
||
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 |
||
21 | !set listc=!makelist c_ i for i=1 to $doccnt |
||
22 | !set listexam=!makelist exam_ i for i=1 to $examcnt |
||
23 | !set listsheet=!makelist sheet_ i for i=1 to $sheetcnt |
||
24 | !set listvote=!makelist vote_ i for i=1 to $votecnt |
||
25 | list=!nospace $listc,$listdoc,$listsheet,$listexam,$listvote |
||
26 | list=!nonempty items $list |
||
27 | list1=debut |
||
28 | !for x in $list |
||
29 | list1=!append item $($x) to $list1 |
||
30 | !next |
||
31 | list1=$(list1[2..-1]) |
||
32 | listcnt=!replace internal ,0, by , in ,$list1, |
||
33 | listcnt=!nonempty items $listcnt |
||
34 | listcnt=!itemcnt $listcnt |
||
35 | !for j = 1 to $listcnt |
||
36 | jj=!positionof item $j in $list1 |
||
37 | !if $jj!= |
||
38 | listfinal=!append item $(list[$jj]) to $listfinal |
||
39 | !endif |
||
40 | !next |
||
41 | list=!replace internal _ by $ $ in $(listfinal) |
||
42 | new_data=!append line $list to $new_data |
||
43 | !writefile wimshome/log/classes/$wims_class/seq/.sequence$seq $new_data\ |
||
44 | $visible |
||
45 | |||
1625 | bpr | 46 | s_ =!record 0 of .sequences |
47 | s_=!line 2 to -1 of s_ |
||
1406 | bpr | 48 | !if $seq= $[$seq_cnt+1] |
49 | seq_cnt=$[$seq_cnt+1] |
||
1625 | bpr | 50 | !writefile wimshome/log/classes/$wims_class/seq/.sequences $seq_cnt\ |
51 | $s_ |
||
1406 | bpr | 52 | !endif |
53 |