Subversion Repositories wimsdev

Rev

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

  1. !! +exec+ +html+
  2. !goto end
  3. tit:formcheckbox
  4. type:$type_exec
  5. alias:htmlcheckbox
  6. syntax:!formcheckbox ``name'' from ``n1'' to ``n2'' prompt ``promptlist''\
  7. !formcheckbox ``name'' list ``selectlist'' prompt ``promptlist''
  8.  
  9. mean:Creates a checkbox list menu under a previously defined html form. <br>\
  10.   This command speeds up the creation of checkboxed menus, as well as simplifies\
  11.   the source files. In the parameters, ``name'' defines the name field of the menu, \
  12.   and the values of the menu are either integers going from ``n1'' to ``n2'' (in the first syntax),\
  13.   or items in the list ``selectlist''. <br>\
  14.   The optional parameter ``promptlist'' can be used to generate user prompts for each items in the list.\
  15.   If ``promptlist'' is empty or is shorter than ``selectlist'', the undefined prompts\
  16.   will be replaced by the value. If it is longer, the rest will be ignored.\
  17.   <br>\
  18.   An ``id'' is created automatically, except if the variable\
  19.   ``wims_ref_id'' is specified just before. If the variable\
  20.   ``wims_html_mode'' has a value as ``div'', ``li'', ``td'', the different items of\
  21.   the html form will be in the corresponding html environmment. If the\
  22.   variable ``wims_ref_class'' is non empty, the class of this html environment is the value \
  23.   of this variable. The default of the menu will be the current value of the variable\
  24.   ``&#36;name''. <br>\
  25.  The variables ``wims_ref_id'' and ``wims_html_mode'' are reinitialized after the html form.
  26. sample:see below
  27. :end
  28. <tr>
  29.   <td><code>!formcheckbox varCHK1 from 1 to 3 prompt txt1,txt2,txt3</code></td>
  30.   <td>
  31.     !formcheckbox varCHK1 from 1 to 3 prompt txt1,txt2,txt3
  32.   </td>
  33. </tr><tr>
  34.   <td><code>!formcheckbox varCHK2 list a,b,c prompt txtA,txtB,txtC</code></td>
  35.   <td>
  36.     !formcheckbox varCHK2 list a,b,c prompt txtA,txtB,txtC
  37.   </td>
  38. </tr><tr>
  39.   <td><code>&lt;ol&gt;<br>!set wims_html_mode=li
  40.   <br>!formcheckbox varCHK3 list apple,pear prompt &amp;#x1f34e;,&amp;#x1f350;
  41.  <br>&lt;/ol&gt;<br>
  42.   &lt;ul&gt;<br>!set wims_html_mode=li
  43.   <br>!formcheckbox varCHK4 list apple,pear prompt &amp;#x1f34e;,&amp;#x1f350;
  44.  <br>&lt;/ul&gt;</code></td>
  45.   <td>
  46.     <ol>
  47.     !set wims_html_mode=li
  48.     !formcheckbox varCHK3 list apple,pear prompt &#x1f34e;,&#x1f350;
  49.    </ol>
  50.     <ul>
  51.     !set wims_html_mode=li
  52.     !formcheckbox varCHK4 list apple,pear prompt &#x1f34e;,&#x1f350;
  53.    </ul>
  54.   </td>
  55. </tr>
  56.