Subversion Repositories wimsdev

Rev

Rev 14279 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !set lstyle=<span class="command_attr">
  2. !set lstyle2=<span class="tt">
  3. !set lstend=</span>
  4. !set lst_tit=!char 5 to -1 of $tit
  5. !set lst_titend=$titend
  6. !set lst_type=$lstyle Type$lstend:
  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_adm = only for trusted modules (in particular administrative modules).
  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:
  17.  
  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.  
  22. <ul>
  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>
  26. </ul>
  27.  
  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.  
  32. <hr>
  33.  
  34. <h3 id="cmdlist_list">Here is the list of $emph$(choose_$cmd_choose)$emphend commands.</h3>
  35.  
  36. !if $style!=integral
  37.  <p>You may switch to another list of commands:</p>
  38.  <ul>
  39.  !for i in $cmd_choose_list
  40.   !if $i != $cmd_choose
  41.    <li class="wims_label inline command_list">
  42.     !href cmd=resume&cmd_choose=$i#cmdlist_list $(choose_$i)
  43.   </li>
  44.   !endif
  45.  !next i
  46.  </ul>
  47. !endif
  48. <ul class="wims_nopuce">
  49. !for c in $cmdfiles
  50.   <li class="wims_command" id="cmdlist_$(c)_">
  51.   !if $style != folding
  52.     !read cmdone.phtml $c
  53.   !else
  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
  60.   !endif
  61.   </li>
  62. !next c
  63. </ul>
  64.