Subversion Repositories wimsdev

Rev

Rev 14278 | Rev 16291 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !! +exec+ +html+
  2. !goto end
  3. tit:formradio
  4. type:$type_exec
  5. alias:htmlradio
  6.  
  7. syntax:!formradio ``name'' from ``n1'' to ``n2'' prompt ``promptlist''\
  8. !formradio ``name'' list ``selectlist'' prompt ``promptlist''
  9. mean:Creates a radio button list menu under a previously defined html form. <br/>\
  10.   This command speeds up the creation of radio buttoned 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.   The default of the menu will be the current value of the variable ``&#36;name''.\
  19.  <p>Optional : you can specify in the variable ``wims_ref_id'' the id for the option tag and its associated label. (useful when generating inside a loop)</p>
  20.  
  21. sample:see below
  22. :end
  23. <tr>
  24.   <td><code>!formradio quest1 list 0,1,2 prompt zero,one,two</code></td>
  25.   <td>
  26.     !formradio quest1 list 0,1,2 prompt zero,one,two
  27.   </td>
  28. </tr>
  29. <tr>
  30.   <td><code>!formradio quest2 from 0 to 2 prompt A,B,C</code></td>
  31.   <td>
  32.     !formradio quest2 from 0 to 2 prompt A,B,C
  33.   </td>
  34. </tr>
  35. <tr>
  36.   <td><code>!set wims_ref_id=quest3_0<br/>!formradio quest3 list 0 prompt one choice</code></td>
  37.   <td>
  38.     !set wims_ref_id=quest3_0
  39.     !formradio quest3 list 0 prompt one choice
  40.   </td>
  41. </tr>
  42.