Subversion Repositories wimsdev

Rev

Rev 6676 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
!nocache
2
!if $block=main
3
 module_title=$tit
4
!else
5
 module_title=$tit / $titb
6
!endif
7
!if robot isin $session
8
 !exit
9
!endif
10
 
11
sheetdata=
12
 
13
!if $foldin!=$empty
14
 foldin=!word 1 of $foldin
15
 foldin=!char 1 to 50 of $foldin
16
 foldlist=!item 1 to 200 of $foldlist
17
 foldlist=!listunion $foldlist and $doc/$foldin
18
!endif
19
 
20
!if $foldout!=$empty
21
 foldlist=!listcomplement $doc/$foldout in $foldlist
22
!endif
23
 
24
!bound readcntadv between integer -1 and 1 default 0
25
readcnt=$[max(0,$readcnt+($readcntadv))]
26
!if $readcnt>0
27
 rlast=!line $readcnt of $readhist
28
!endif
29
!distribute item $rlast into doclast,blocklast
30
 
31
!if $doc,$block!=$doclast,$blocklast
32
 readhist=!line 1 to $readcnt of $readhist
33
 !advance readcnt
34
 readhist=!append line $doc,$block to $readhist
35
 !if $readcnt>50
36
  readhist=!line -50 to -1 of $readhist
37
  readcnt=!linecnt $readhist
38
 !endif
39
!else
40
 rlast=!line $readcnt-1 of $readhist
41
 !distribute item $rlast into doclast,blocklast
42
!endif
43
 
44
histtot=!linecnt $readhist
45
!if $readcnt<$histtot
46
 rnext=!line $readcnt+1 of $readhist
47
 !distribute item $rnext into docnext,blocknext
48
!endif
49
 
50
!read docu/popup.proc
51
!read docu/readdates.proc
52