Subversion Repositories wimsdev

Rev

Rev 12586 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8403 bpr 1
!if $docadm=1
12586 bpr 2
  !exit
8403 bpr 3
!endif
4
 
7237 bpr 5
!default doc=1
2373 bpr 6
!set modu_lang=$lang
7
!read docu/$lang/names
8
!if $lang_exists!=yes
12586 bpr 9
  !let modu_lang=en
10
  !read docu/$lang/names
2373 bpr 11
!endif
12
!set module_language=$lang
20 reyssat 13
 
7237 bpr 14
!read INDEX
15
translation_language=!items2words $translation_language
16
!if $lang iswordof $translation_language
17
  doc=1_$modu_lang
18
!endif
19
 
7235 bpr 20
module_title2=!detag $module_title
21
 
2373 bpr 22
!read docu/$modu_lang/names
20 reyssat 23
!if $cmd=help
12586 bpr 24
  !exit
20 reyssat 25
!endif
26
 
8367 bpr 27
!read docu/docdef
28
 
20 reyssat 29
!bound job within read,print,list,exosource default read
30
!if robot isin $session
12586 bpr 31
  job=print
20 reyssat 32
!endif
33
 
34
!read tabletheme
35
!for i=1 to 20
12586 bpr 36
  m_parm$i=$(parm$i)
37
  parm$i=
20 reyssat 38
!next i
1407 bpr 39
!if $seq>0
12586 bpr 40
  !set m_wims_sequence=$seq
1407 bpr 41
!endif
20 reyssat 42
 
43
block=!text select $namechars in $block
44
docdir=doc
45
Docdir=$module_dir/$docdir
46
readable=yes
47
editable=no
16693 guerimand 48
 
49
!! add to index fold with number instead of filename
50
!if $filelist=$empty
51
  nb=!recordcnt doc/$doc/.index
52
  !for i=1 to $nb
53
    l=!record $i of doc/$doc/.index
54
    l=!line 1 of $l
55
    filelist=!append item $l to $filelist
56
  !next i
57
!endif
58
 
20 reyssat 59
!default readcnt=0
9393 bpr 60
!read $docdir/$doc/.def
61
!! common_files is defined in the var.proc of the document can be yes now
62
!! or the address of a datamodule should be in $docdir/$doc/.def
8402 bpr 63
!if datamodule isin $common_files
12586 bpr 64
  m_filedir=!replace datamodule by modules/data in $common_files
65
!else
8402 bpr 66
  !if $common_files=yes
67
    m_filedir=$Docdir/files
68
  !else
69
    m_filedir=$Docdir/$doc/files
70
  !endif
7235 bpr 71
!endif
9393 bpr 72
 
20 reyssat 73
!if $tit!=$empty
74
  !default block=main
75
  block=!char 1 to $namelim of $block
76
  !read $docdir/$doc/$block.def
77
!else
78
  error=doc_not_exist
79
!endif
80
 
81
!set wims_module_log=$job $doc $block
9616 guerimand 82
!read getparm $module_init_parm wksheet
20 reyssat 83
!read docu/$job.proc