Rev 8355 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | !if $block=main |
12490 | bpr | 2 | module_title=$tit |
23 | reyssat | 3 | !else |
12490 | bpr | 4 | module_title=$tit / $titb |
23 | reyssat | 5 | !endif |
6 | !if robot isin $session |
||
12490 | bpr | 7 | !exit |
23 | reyssat | 8 | !endif |
9 | |||
6682 | bpr | 10 | !if $doctoc=yes and $block!=doctoc |
6676 | bpr | 11 | !set header=$header\ |
12490 | bpr | 12 | <script type="text/javascript">jQuery(function() {jQuery( "#doc_toc" ).menu();});</script> |
6676 | bpr | 13 | !endif |
14 | |||
23 | reyssat | 15 | sheetdata= |
16 | |||
17 | !if $foldin!=$empty |
||
12490 | bpr | 18 | foldin=!word 1 of $foldin |
19 | foldin=!char 1 to 50 of $foldin |
||
20 | foldlist=!item 1 to 200 of $foldlist |
||
21 | foldlist=!listunion $foldlist and $doc/$foldin |
||
23 | reyssat | 22 | !endif |
23 | |||
24 | !if $foldout!=$empty |
||
12490 | bpr | 25 | foldlist=!listcomplement $doc/$foldout in $foldlist |
23 | reyssat | 26 | !endif |
27 | |||
28 | !bound readcntadv between integer -1 and 1 default 0 |
||
29 | readcnt=$[max(0,$readcnt+($readcntadv))] |
||
30 | !if $readcnt>0 |
||
12490 | bpr | 31 | rlast=!line $readcnt of $readhist |
23 | reyssat | 32 | !endif |
33 | !distribute item $rlast into doclast,blocklast |
||
34 | |||
35 | !if $doc,$block!=$doclast,$blocklast |
||
12490 | bpr | 36 | readhist=!line 1 to $readcnt of $readhist |
37 | !advance readcnt |
||
38 | readhist=!append line $doc,$block to $readhist |
||
39 | !if $readcnt>50 |
||
40 | readhist=!line -50 to -1 of $readhist |
||
41 | readcnt=!linecnt $readhist |
||
42 | !endif |
||
23 | reyssat | 43 | !else |
12490 | bpr | 44 | rlast=!line $readcnt-1 of $readhist |
45 | !distribute item $rlast into doclast,blocklast |
||
23 | reyssat | 46 | !endif |
47 | |||
48 | histtot=!linecnt $readhist |
||
49 | !if $readcnt<$histtot |
||
12490 | bpr | 50 | rnext=!line $readcnt+1 of $readhist |
51 | !distribute item $rnext into docnext,blocknext |
||
23 | reyssat | 52 | !endif |
53 | |||
54 | !read popup.proc |
||
55 | !read readdates.proc |