Subversion Repositories wimsdev

Rev

Rev 9291 | Rev 11212 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9291 Rev 11210
Line 1... Line 1...
1
!set lstyle=<br/><span class="command_attr">
1
!set lstyle=<span class="command_attr">
-
 
2
!set lstyle2=<span class="tt">
2
!set lstend=</span>:
3
!set lstend=</span>
3
!set lst_tit=!char 5 to -1 of $tit
4
!set lst_tit=!char 5 to -1 of $tit
4
!set lst_titend=$titend
5
!set lst_titend=$titend
5
!set lst_type=$lstyle Type$lstend
6
!set lst_type=$lstyle Type$lstend
6
!set type_exec=$lst_type execution command
7
!set type_exec= execution command
7
!set type_pexec=$lst_type execution command (only valid for phtml files)
8
!set type_pexec= execution command (only valid for phtml files)
8
!set type_var =$lst_type variable command
9
!set type_var = variable command
9
!set type_both=$lst_type both execution and variable command
10
!set type_both= both execution and variable command
10
!set lst_syntax=$lstyle Syntax$lstend <span class="tt">!
11
!set lst_syntax=$lstyle Syntax$lstend:$lstyle2
-
 
12
!set lst_syntaxend=</span>
11
!set lst_alias=$lstyle Aliases$lstend
13
!set lst_alias=$lstyle Aliases$lstend:
12
!set lst_mean =$lstyle Meaning$lstend
14
!set lst_mean =$lstyle Meaning$lstend:
13
!set lst_sample =$lstyle Sample(s)$lstend
15
!set lst_sample =$lstyle Sample(s)$lstend:
14
 
16
 
15
<p>WIMS commands can be used in variable processing files and phtml files.
17
<p>WIMS commands can be used in variable processing files and phtml files.
16
  A command is a word preceeded by the character $emph!$emphend.</p>
18
  A command is a word preceeded by the character $emph!$emphend.</p>
17
<p>Commands has two types:</p>
19
<p>Commands has two types:</p>
18
 
20
 
Line 40... Line 42...
40
   </li>
42
   </li>
41
  !endif
43
  !endif
42
 !next i
44
 !next i
43
 </ul>
45
 </ul>
44
!endif
46
!endif
45
 
-
 
46
<ul>
47
<ul>
47
!for c in $cmdfiles
48
!for c in $cmdfiles
48
 <li class="wims_command" id="cmdlist_$(c)_">
49
 <li class="wims_command" id="cmdlist_$(c)_">
49
 !if $style != folding
50
 !if $style != folding
-
 
51
 <ul class="wims_nopuce">
-
 
52
 !for ff in tit,type,syntax, mean,alias,sample
-
 
53
   !set text=!lookup $ff in cmd/$c.phtml
-
 
54
   !if $text!=$empty
-
 
55
 <li>
-
 
56
   $(lst_$ff)
-
 
57
   !set text=!replace internal ` by $emph in $text
-
 
58
   !if $ff=syntax and $c=bound
-
 
59
     !set text=!replace internal $\
-
 
60
$ by $(lst_$(ff)end) <br/>$lstyle2 in $text
-
 
61
   !endif
-
 
62
   !replace internal ' by $emphend in $text
-
 
63
   $(lst_$(ff)end)
-
 
64
  </li>
-
 
65
  !endif
-
 
66
 !next
-
 
67
  </ul>
-
 
68
  !if $c iswordof if
50
  !read cmd/$c.phtml
69
    !read help/if.phtml
-
 
70
  !endif
-
 
71
  !if $c iswordof randfile record recordcnt
-
 
72
    <div>
-
 
73
    !read cmd/datafile.phtml
-
 
74
   </div>
-
 
75
  !endif
-
 
76
  !if $c iswordof word column char item line record
-
 
77
      <div>
-
 
78
    !set numlist_type=$c
-
 
79
    !read cmd/numlist
-
 
80
      </div>
-
 
81
  !endif
-
 
82
  !set text=!lookup numlist in cmd/$c.phtml
-
 
83
  !if $text!=$empty
-
 
84
    !set text=!replace internal ` by $emph in $text
-
 
85
    !replace internal ' by $emphend in $text
-
 
86
  !endif
51
 !else
87
 !else
52
  !if cmdlist_$(c)_ isin $expand
88
  !if cmdlist_$(c)_ isin $expand
53
   <a href="$httpd_SCRIPT_NAME?session=$session&+cmd=resume&+op=close&+subject=cmdlist_$(c)_#cmdlist_$(c)_"></a>
89
   <a href="$httpd_SCRIPT_NAME?session=$session&+cmd=resume&+op=close&+subject=cmdlist_$(c)_#cmdlist_$(c)_"></a>
54
   !read cmd/$c.phtml
90
   !!!read cmd/$c.phtml
55
  !else
91
  !else
56
   !href cmd=resume&op=open&subject=cmdlist_$(c)_#cmdlist_$(c)_ $c
92
   !href cmd=resume&op=open&subject=cmdlist_$(c)_#cmdlist_$(c)_ $c
57
  !endif
93
  !endif
58
 !endif
94
 !endif
59
 </li>
95
 </li>