Subversion Repositories wimsdev

Rev

Rev 14279 | 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
11224 bpr 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
13439 obado 10
!set type_adm = only for trusted modules (in particular administrative modules).
11210 bpr 11
!set type_both= both execution and variable command
12
!set lst_syntax=$lstyle Syntax$lstend:$lstyle2
13
!set lst_syntaxend=</span>
14
!set lst_alias=$lstyle Aliases$lstend:
15
!set lst_mean =$lstyle Meaning$lstend:
16
!set lst_sample =$lstyle Sample(s)$lstend:
32 reyssat 17
 
9291 obado 18
<p>WIMS commands can be used in variable processing files and phtml files.
19
  A command is a word preceeded by the character $emph!$emphend.</p>
20
<p>Commands has two types:</p>
21
 
32 reyssat 22
<ul>
9291 obado 23
 <li>Execution commands, which are placed as the first word of a line.</li>
24
 <li>Variable commands, which are placed at the beginning of a definition of
25
   a variable.</li>
32 reyssat 26
</ul>
27
 
9291 obado 28
<p>Some commands can be used both as execution command and as variable command.</p>
29
<p>Commands may accept parameters which are words following it. Parameter
30
fields are separated by white spaces or special words (depending on the command).</p>
31
 
17228 bpr 32
<hr>
9291 obado 33
 
14279 obado 34
<h3 id="cmdlist_list">Here is the list of $emph$(choose_$cmd_choose)$emphend commands.</h3>
9291 obado 35
 
32 reyssat 36
!if $style!=integral
9291 obado 37
 <p>You may switch to another list of commands:</p>
38
 <ul>
32 reyssat 39
 !for i in $cmd_choose_list
40
  !if $i != $cmd_choose
9291 obado 41
   <li class="wims_label inline command_list">
42
    !href cmd=resume&cmd_choose=$i#cmdlist_list $(choose_$i)
43
   </li>
32 reyssat 44
  !endif
45
 !next i
9291 obado 46
 </ul>
32 reyssat 47
!endif
11293 bpr 48
<ul class="wims_nopuce">
32 reyssat 49
!for c in $cmdfiles
14279 obado 50
  <li class="wims_command" id="cmdlist_$(c)_">
51
  !if $style != folding
52
    !read cmdone.phtml $c
32 reyssat 53
  !else
14279 obado 54
    !if cmdlist_$(c)_ isin $expand
55
      <a href="$httpd_SCRIPT_NAME?session=$session&+cmd=resume&+op=close&+subject=cmdlist_$(c)_#cmdlist_$(c)_"></a>
56
      !read cmdone.phtml $c
57
    !else
58
      !href cmd=resume&op=open&subject=cmdlist_$(c)_#cmdlist_$(c)_ $c
59
    !endif
32 reyssat 60
  !endif
14279 obado 61
  </li>
32 reyssat 62
!next c
63
</ul>