Rev 16291 | Rev 16698 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
32 | reyssat | 1 | !! +exec+ +html+ |
14279 | obado | 2 | !goto end |
11210 | bpr | 3 | tit:formradio |
4 | type:$type_exec |
||
11220 | bpr | 5 | alias:htmlradio |
11292 | bpr | 6 | syntax:!formradio ``name'' from ``n1'' to ``n2'' prompt ``promptlist''\ |
7 | !formradio ``name'' list ``selectlist'' prompt ``promptlist'' |
||
16697 | bpr | 8 | |
11210 | bpr | 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\ |
||
11292 | bpr | 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/>\ |
||
14278 | obado | 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\ |
||
11210 | bpr | 16 | will be replaced by the value. If it is longer, the rest will be ignored.\ |
17 | <br/>\ |
||
14278 | obado | 18 | The default of the menu will be the current value of the variable ``$name''.\ |
16291 | bpr | 19 | An ``id'' is created automatically, except if the variable\ |
20 | ``wims_ref_id'' is specified just before. If the variable\ |
||
21 | ``wims_html_mode'' has a value as ``div'', ``li'', ``td'', the different items of\ |
||
22 | the html form will be in the corresponding html environmment. If the\ |
||
23 | variable ``wims_ref_class'' is non empty, the class of this html environment is the value \ |
||
24 | of this variable. The default of the menu will be the current value of the variable\ |
||
16697 | bpr | 25 | ``$name''.\ |
26 | <br/>\The variables ``wims_ref_id'' and ``wims_html_mode'' are reinitialized after\ |
||
27 | the html form. |
||
14279 | obado | 28 | sample:see below |
29 | :end |
||
30 | <tr> |
||
31 | <td><code>!formradio quest1 list 0,1,2 prompt zero,one,two</code></td> |
||
32 | <td> |
||
33 | !formradio quest1 list 0,1,2 prompt zero,one,two |
||
34 | </td> |
||
16291 | bpr | 35 | </tr><tr> |
14279 | obado | 36 | <td><code>!formradio quest2 from 0 to 2 prompt A,B,C</code></td> |
37 | <td> |
||
38 | !formradio quest2 from 0 to 2 prompt A,B,C |
||
39 | </td> |
||
16291 | bpr | 40 | </tr><tr> |
14279 | obado | 41 | <td><code>!set wims_ref_id=quest3_0<br/>!formradio quest3 list 0 prompt one choice</code></td> |
42 | <td> |
||
43 | !set wims_ref_id=quest3_0 |
||
44 | !formradio quest3 list 0 prompt one choice |
||
45 | </td> |
||
16291 | bpr | 46 | </tr><tr> |
16697 | bpr | 47 | <td><code><ol class="inline"><br/>!set wims_html_mode=li |
16291 | bpr | 48 | <br/>!formradio varCHK3 list apple,pear prompt &#x1f34e;,&#x1f350; |
16697 | bpr | 49 | <br/></ol> |
50 | <ul><br/>!set wims_html_mode=li |
||
51 | <br/>!formradio varCHK4 list apple,pear prompt &#x1f34e;,&#x1f350; |
||
16291 | bpr | 52 | <br/></ul></code></td> |
53 | <td> |
||
16697 | bpr | 54 | <ol class="inline"> |
16291 | bpr | 55 | !set wims_html_mode=li |
56 | !formradio varCHK3 list apple,pear prompt 🍎,🍐 |
||
16697 | bpr | 57 | </ol> |
58 | <ul> |
||
59 | !set wims_html_mode=li |
||
60 | !formradio varCHK4 list apple,pear prompt 🍎,🍐 |
||
16291 | bpr | 61 | </ul> |
62 | </td> |
||
14279 | obado | 63 | </tr> |