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