Rev 16291 | Rev 16698 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 16291 | Rev 16697 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | !! +exec+ +html+ |
1 | !! +exec+ +html+ |
2 | !goto end |
2 | !goto end |
3 | tit:formradio |
3 | tit:formradio |
4 | type:$type_exec |
4 | type:$type_exec |
5 | alias:htmlradio |
5 | alias:htmlradio |
6 | - | ||
7 | syntax:!formradio ``name'' from ``n1'' to ``n2'' prompt ``promptlist''\ |
6 | syntax:!formradio ``name'' from ``n1'' to ``n2'' prompt ``promptlist''\ |
8 | !formradio ``name'' list ``selectlist'' prompt ``promptlist'' |
7 | !formradio ``name'' list ``selectlist'' prompt ``promptlist'' |
- | 8 | ||
9 | mean:Creates a radio button list menu under a previously defined html form. <br/>\ |
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\ |
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, \ |
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),\ |
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/>\ |
13 | or items in the list ``selectlist''. <br/>\ |
Line 20... | Line 20... | ||
20 | ``wims_ref_id'' is specified just before. 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\ |
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\ |
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 \ |
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\ |
24 | of this variable. The default of the menu will be the current value of the variable\ |
25 | ``$name''. |
25 | ``$name''.\ |
- | 26 | <br/>\The variables ``wims_ref_id'' and ``wims_html_mode'' are reinitialized after\ |
|
- | 27 | the html form. |
|
26 | sample:see below |
28 | sample:see below |
27 | :end |
29 | :end |
28 | <tr> |
30 | <tr> |
29 | <td><code>!formradio quest1 list 0,1,2 prompt zero,one,two</code></td> |
31 | <td><code>!formradio quest1 list 0,1,2 prompt zero,one,two</code></td> |
30 | <td> |
32 | <td> |
31 | !formradio quest1 list 0,1,2 prompt zero,one,two |
33 | !formradio quest1 list 0,1,2 prompt zero,one,two |
32 | </td> |
34 | </td> |
33 | </tr><tr> |
35 | </tr><tr> |
34 | <td><code>!formradio quest2 from 0 to 2 prompt A,B,C</code></td> |
36 | <td><code>!formradio quest2 from 0 to 2 prompt A,B,C</code></td> |
35 | <td> |
37 | <td> |
36 | !formradio quest2 from 0 to 2 prompt A,B,C |
38 | !formradio quest2 from 0 to 2 prompt A,B,C |
37 | </td> |
39 | </td> |
38 | </tr><tr> |
40 | </tr><tr> |
Line 40... | Line 42... | ||
40 | <td> |
42 | <td> |
41 | !set wims_ref_id=quest3_0 |
43 | !set wims_ref_id=quest3_0 |
42 | !formradio quest3 list 0 prompt one choice |
44 | !formradio quest3 list 0 prompt one choice |
43 | </td> |
45 | </td> |
44 | </tr><tr> |
46 | </tr><tr> |
45 | <td><code>< |
47 | <td><code><ol class="inline"><br/>!set wims_html_mode=li |
46 | <br/>!formradio varCHK3 list apple,pear prompt &#x1f34e;,&#x1f350; |
48 | <br/>!formradio varCHK3 list apple,pear prompt &#x1f34e;,&#x1f350; |
- | 49 | <br/></ol> |
|
- | 50 | <ul><br/>!set wims_html_mode=li |
|
- | 51 | <br/>!formradio varCHK4 list apple,pear prompt &#x1f34e;,&#x1f350; |
|
47 | <br/></ul></code></td> |
52 | <br/></ul></code></td> |
48 | <td> |
53 | <td> |
49 | < |
54 | <ol class="inline"> |
50 | !set wims_html_mode=li |
55 | !set wims_html_mode=li |
51 | !formradio varCHK3 list apple,pear prompt 🍎,🍐 |
56 | !formradio varCHK3 list apple,pear prompt 🍎,🍐 |
- | 57 | </ol> |
|
- | 58 | <ul> |
|
- | 59 | !set wims_html_mode=li |
|
- | 60 | !formradio varCHK4 list apple,pear prompt 🍎,🍐 |
|
52 | </ul> |
61 | </ul> |
53 | </td> |
62 | </td> |
54 | </tr> |
63 | </tr> |