Rev 11240 | Rev 14279 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11240 | Rev 11292 | ||
---|---|---|---|
1 | !! +exec+ +html+ |
1 | !! +exec+ +html+ |
2 | tit:formcheckbox |
2 | tit:formcheckbox |
3 | type:$type_exec |
3 | type:$type_exec |
4 | alias:htmlcheckbox |
4 | alias:htmlcheckbox |
5 | syntax:!formcheckbox |
5 | syntax:!formcheckbox ``name'' from ``n1'' to ``n2'' prompt ``promptlist''\ |
6 | !formcheckbox |
6 | !formcheckbox ``name'' list ``selectlist'' prompt ``promptlist'' |
7 | 7 | ||
8 | mean:Creates a checkbox list menu under a previously defined html form. <br/>\ |
8 | mean:Creates a checkbox list menu under a previously defined html form. <br/>\ |
9 | This command speeds up the creation of checkboxed menus, as well as simplifies\ |
9 | This command speeds up the creation of checkboxed menus, as well as simplifies\ |
10 |
|
10 | the source files. In the parameters, ``name'' defines the name field of the menu, \ |
11 | and the values of the menu are either integers going from |
11 | and the values of the menu are either integers going from ``n1'' to ``n2'' (in the first syntax),\ |
12 | or items in the list |
12 | or items in the list ``selectlist''. <br/>\ |
13 |
|
13 | The optional parameter ``promptlist'' can be used to generate\ |
14 | user prompts for each items in the list. If |
14 | user prompts for each items in the list. If ``promptlist'' is\ |
15 |
|
15 | 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.\ |
16 | will be replaced by the value. If it is longer, the rest will be ignored.\ |
17 | <br/>\ |
17 | <br/>\ |
18 | An |
18 | An ``id'' is created automatically, except if the variable\ |
19 |
|
19 | ``wims_ref_id'' is specified just before. If the variable\ |
20 |
|
20 | ``wims_html_mode'' has a value as ``div'', ``li'', ``td'', the different items of\ |
21 | 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\ |
22 | variable |
22 | variable ``wims_ref_class'' is non empty, the class of this html environment is the value \ |
23 | 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\ |
24 |
|
24 | ``$name''. |
25 | 25 | ||
26 | :sample:<table class="wimstable" summary="list some samples for formcheckbox command">\ |
26 | :sample:<table class="wimstable" summary="list some samples for formcheckbox command">\ |
27 | <thead>\ |
27 | <thead>\ |
28 | <tr>\ |
28 | <tr>\ |
29 | <th>Command</th>\ |
29 | <th>Command</th>\ |
30 | <th>Result</th>\ |
30 | <th>Result</th>\ |
31 | </tr>\ |
31 | </tr>\ |
32 | </thead>\ |
32 | </thead>\ |
33 | <tbody>\ |
33 | <tbody>\ |
34 | <tr>\ |
34 | <tr>\ |
35 | <td><code>!formcheckbox varCHK1 from 1 to 3 prompt txt1,txt2,txt3</code></td>\ |
35 | <td><code>!formcheckbox varCHK1 from 1 to 3 prompt txt1,txt2,txt3</code></td>\ |
36 | <td>\ |
36 | <td>\ |
37 | !formcheckbox varCHK1 from 1 to 3 prompt txt1,txt2,txt3\ |
37 | !formcheckbox varCHK1 from 1 to 3 prompt txt1,txt2,txt3\ |
38 | </td>\ |
38 | </td>\ |
39 | </tr>\ |
39 | </tr>\ |
40 | <tr>\ |
40 | <tr>\ |
41 | <td><code>!formcheckbox varCHK2 list a,b,c prompt txtA,txtB,txtC</code></td>\ |
41 | <td><code>!formcheckbox varCHK2 list a,b,c prompt txtA,txtB,txtC</code></td>\ |
42 | <td>\ |
42 | <td>\ |
43 | !formcheckbox varCHK2 list a,b,c prompt txtA,txtB,txtC\ |
43 | !formcheckbox varCHK2 list a,b,c prompt txtA,txtB,txtC\ |
44 | </td>\ |
44 | </td>\ |
45 | </tr>\ |
45 | </tr>\ |
46 | </tbody>\ |
46 | </tbody>\ |
47 | </table>\ |
47 | </table>\ |
48 | </div> |
48 | </div> |
49 | 49 |