Subversion Repositories wimsdev

Rev

Rev 11223 | Rev 11256 | 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
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
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
11223 bpr 51
   !read cmdone.phtml $c
32 reyssat 52
 !else
53
  !if cmdlist_$(c)_ isin $expand
3492 bpr 54
   <a href="$httpd_SCRIPT_NAME?session=$session&+cmd=resume&+op=close&+subject=cmdlist_$(c)_#cmdlist_$(c)_"></a>
11223 bpr 55
   !read cmdone.phtml $c
32 reyssat 56
  !else
57
   !href cmd=resume&op=open&subject=cmdlist_$(c)_#cmdlist_$(c)_ $c
58
  !endif
59
 !endif
5920 bpr 60
 </li>
32 reyssat 61
!next c
62
</ul>