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 | |
17228 | bpr | 9 | mean:Creates a radio button list menu under a previously defined html form. <br>\ |
11210 | bpr | 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),\ |
||
17228 | bpr | 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.\ |
17228 | bpr | 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\ |
||
17228 | bpr | 25 | ``$name''. <br>\ |
16698 | bpr | 26 | The variables ``wims_ref_id'' and ``wims_html_mode'' are reinitialized after the html form. |
14279 | obado | 27 | sample:see below |
28 | :end |
||
29 | <tr> |
||
30 | <td><code>!formradio quest1 list 0,1,2 prompt zero,one,two</code></td> |
||
31 | <td> |
||
32 | !formradio quest1 list 0,1,2 prompt zero,one,two |
||
33 | </td> |
||
16291 | bpr | 34 | </tr><tr> |
14279 | obado | 35 | <td><code>!formradio quest2 from 0 to 2 prompt A,B,C</code></td> |
36 | <td> |
||
37 | !formradio quest2 from 0 to 2 prompt A,B,C |
||
38 | </td> |
||
16291 | bpr | 39 | </tr><tr> |
17228 | bpr | 40 | <td><code>!set wims_ref_id=quest3_0<br>!formradio quest3 list 0 prompt one choice</code></td> |
14279 | obado | 41 | <td> |
42 | !set wims_ref_id=quest3_0 |
||
43 | !formradio quest3 list 0 prompt one choice |
||
44 | </td> |
||
16291 | bpr | 45 | </tr><tr> |
17228 | bpr | 46 | <td><code><ol class="inline"><br>!set wims_html_mode=li |
47 | <br>!formradio varCHK3 list apple,pear prompt &#x1f34e;,&#x1f350; |
||
48 | <br></ol> |
||
49 | <ul><br>!set wims_html_mode=li |
||
50 | <br>!formradio varCHK4 list apple,pear prompt &#x1f34e;,&#x1f350; |
||
51 | <br></ul></code></td> |
||
16291 | bpr | 52 | <td> |
16697 | bpr | 53 | <ol class="inline"> |
16291 | bpr | 54 | !set wims_html_mode=li |
55 | !formradio varCHK3 list apple,pear prompt 🍎,🍐 |
||
16697 | bpr | 56 | </ol> |
57 | <ul> |
||
58 | !set wims_html_mode=li |
||
59 | !formradio varCHK4 list apple,pear prompt 🍎,🍐 |
||
16291 | bpr | 60 | </ul> |
61 | </td> |
||
14279 | obado | 62 | </tr> |