Rev 5921 | Rev 11212 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5921 | Rev 11210 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | !! +exec+ +html+ |
1 | !! +exec+ +html+ |
2 |
|
2 | tit:formselect |
- | 3 | type:$type_exec |
|
3 |
|
4 | alias:!htmlselect |
4 |
|
5 | syntax:!formselect `name' from `n1' to `n2' prompt `promptlist'<br/>\ |
5 | to $emph n2$emphend prompt $emph promptlist $emphend<br/> |
- | |
6 |
|
6 | or<span class="tt"> <br/>\ |
7 | $!formselect $emph name$emphend list |
- | |
8 |
|
7 | $!formselect `name' list `selectlist' prompt `promptlist'</span> <br/> |
9 | </span> <br/> |
- | |
10 |
|
8 | mean:Creates a select menu under a previously defined html form. <br/>\ |
11 | This command speeds up the creation of select |
9 | This command speeds up the creation of select menus, as well as simplifies\ |
12 | the source files |
10 | the source files. In the parameters, `name' defines the name field of the menu, \ |
13 |
|
11 | and the values of the menu are either integers going from `n1' to `n2' (in the first syntax),\ |
14 | going from $emph n1$emphend to $emph n2$emphend (in the first syntax), or |
- | |
15 | items in the list |
12 | or items in the list `selectlist'. <br/>\ |
16 | The optional parameter |
13 | The optional parameter `promptlist' can be used to generate user prompts for each items\ |
17 | user prompts for each items in the list. If $emph promptlist$emphend is |
- | |
18 |
|
14 | in the list. If `promptlist' is empty or is shorter than `selectlist', the undefined prompts\ |
19 | will be replaced by the value. If it is longer, the rest will be ignored. |
15 | will be replaced by the value. If it is longer, the rest will be ignored.\ |
20 | <br/> |
16 | <br/>\ |
21 | The default of the menu will be the current value of the variable |
17 | The default of the menu will be the current value of the variable `$$name'. <br/>\ |
22 | $emph $$name$emphend. <br/> |
- | |
23 | The variable |
18 | The variable `wims_formselect_switch' may be used to set switches (for example by letting\ |
24 |
|
19 | <span class="tt">wims_formselect_switch=multiple</span>, the selection will be multiple. |
25 | the selection will be multiple. |
- | |
26 | - |