Subversion Repositories wimsdev

Rev

Rev 9291 | Rev 11212 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11210 bpr 1
!set lstyle=<span class="command_attr">
2
!set lstyle2=<span class="tt">
3
!set lstend=</span>
32 reyssat 4
!set lst_tit=!char 5 to -1 of $tit
1091 bpr 5
!set lst_titend=$titend
32 reyssat 6
!set lst_type=$lstyle Type$lstend
11210 bpr 7
!set type_exec= execution command
8
!set type_pexec= execution command (only valid for phtml files)
9
!set type_var = variable command
10
!set type_both= both execution and variable command
11
!set lst_syntax=$lstyle Syntax$lstend:$lstyle2
12
!set lst_syntaxend=</span>
13
!set lst_alias=$lstyle Aliases$lstend:
14
!set lst_mean =$lstyle Meaning$lstend:
15
!set lst_sample =$lstyle Sample(s)$lstend:
32 reyssat 16
 
9291 obado 17
<p>WIMS commands can be used in variable processing files and phtml files.
18
  A command is a word preceeded by the character $emph!$emphend.</p>
19
<p>Commands has two types:</p>
20
 
32 reyssat 21
<ul>
9291 obado 22
 <li>Execution commands, which are placed as the first word of a line.</li>
23
 <li>Variable commands, which are placed at the beginning of a definition of
24
   a variable.</li>
32 reyssat 25
</ul>
26
 
9291 obado 27
<p>Some commands can be used both as execution command and as variable command.</p>
28
<p>Commands may accept parameters which are words following it. Parameter
29
fields are separated by white spaces or special words (depending on the command).</p>
30
 
31
<hr/>
32
 
33
<h4 id="cmdlist_list">Here is the list of $emph$(choose_$cmd_choose)$emphend commands.</h4>
34
 
32 reyssat 35
!if $style!=integral
9291 obado 36
 <p>You may switch to another list of commands:</p>
37
 <ul>
32 reyssat 38
 !for i in $cmd_choose_list
39
  !if $i != $cmd_choose
9291 obado 40
   <li class="wims_label inline command_list">
41
    !href cmd=resume&cmd_choose=$i#cmdlist_list $(choose_$i)
42
   </li>
32 reyssat 43
  !endif
44
 !next i
9291 obado 45
 </ul>
32 reyssat 46
!endif
47
<ul>
48
!for c in $cmdfiles
9291 obado 49
 <li class="wims_command" id="cmdlist_$(c)_">
32 reyssat 50
 !if $style != folding
11210 bpr 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
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
32 reyssat 87
 !else
88
  !if cmdlist_$(c)_ isin $expand
3492 bpr 89
   <a href="$httpd_SCRIPT_NAME?session=$session&+cmd=resume&+op=close&+subject=cmdlist_$(c)_#cmdlist_$(c)_"></a>
11210 bpr 90
   !!!read cmd/$c.phtml
32 reyssat 91
  !else
92
   !href cmd=resume&op=open&subject=cmdlist_$(c)_#cmdlist_$(c)_ $c
93
  !endif
94
 !endif
5920 bpr 95
 </li>
32 reyssat 96
!next c
97
</ul>