Rev 16291 | Rev 17228 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 16291 | Rev 16697 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | mean:Creates a checkbox list menu under a previously defined html form. <br/>\ |
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\ |
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, \ |
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/>\ |
14 | The optional parameter ``promptlist'' can be used to |
14 | The optional parameter ``promptlist'' can be used to generate user prompts for each items in the list.\ |
15 | user prompts for each items in the list. If ``promptlist'' is\ |
- | |
16 | empty or is shorter than ``selectlist'', the undefined prompts\ |
15 | If ``promptlist'' is empty or is shorter than ``selectlist'', the undefined prompts\ |
17 | will be replaced by the value. If it is longer, the rest will be ignored.\ |
16 | will be replaced by the value. If it is longer, the rest will be ignored.\ |
18 | <br/>\ |
17 | <br/>\ |
19 | An ``id'' is created automatically, except if the variable\ |
18 | An ``id'' is created automatically, except if the variable\ |
20 | ``wims_ref_id'' is specified just before. If the variable\ |
19 | ``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\ |
20 | ``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\ |
21 | 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 \ |
22 | 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\ |
23 | of this variable. The default of the menu will be the current value of the variable\ |
25 | ``$name''. |
24 | ``$name''. <br/>\ |
26 | - | ||
- | 25 | The variables ``wims_ref_id'' and ``wims_html_mode'' are reinitialized after the html form. |
|
27 | sample:see below |
26 | sample:see below |
28 | :end |
27 | :end |
29 | <tr> |
28 | <tr> |
30 | <td><code>!formcheckbox varCHK1 from 1 to 3 prompt txt1,txt2,txt3</code></td> |
29 | <td><code>!formcheckbox varCHK1 from 1 to 3 prompt txt1,txt2,txt3</code></td> |
31 | <td> |
30 | <td> |
Line 37... | Line 36... | ||
37 | !formcheckbox varCHK2 list a,b,c prompt txtA,txtB,txtC |
36 | !formcheckbox varCHK2 list a,b,c prompt txtA,txtB,txtC |
38 | </td> |
37 | </td> |
39 | </tr><tr> |
38 | </tr><tr> |
40 | <td><code><ol><br/>!set wims_html_mode=li |
39 | <td><code><ol><br/>!set wims_html_mode=li |
41 | <br/>!formcheckbox varCHK3 list apple,pear prompt &#x1f34e;,&#x1f350; |
40 | <br/>!formcheckbox varCHK3 list apple,pear prompt &#x1f34e;,&#x1f350; |
- | 41 | <br/></ol><br/> |
|
- | 42 | <ul><br/>!set wims_html_mode=li |
|
- | 43 | <br/>!formcheckbox varCHK4 list apple,pear prompt &#x1f34e;,&#x1f350; |
|
42 | <br/></ |
44 | <br/></ul></code></td> |
43 | <td> |
45 | <td> |
44 | <ol> |
46 | <ol> |
45 | !set wims_html_mode=li |
47 | !set wims_html_mode=li |
46 | !formcheckbox varCHK3 list apple,pear prompt 🍎,🍐 |
48 | !formcheckbox varCHK3 list apple,pear prompt 🍎,🍐 |
47 | </ol> |
49 | </ol> |
- | 50 | <ul> |
|
- | 51 | !set wims_html_mode=li |
|
- | 52 | !formcheckbox varCHK4 list apple,pear prompt 🍎,🍐 |
|
- | 53 | </ul> |
|
48 | </td> |
54 | </td> |
49 | </tr> |
55 | </tr> |