Subversion Repositories wimsdev

Rev

Rev 11427 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11427 Rev 17228
Line 2... Line 2...
2
tit:formselect
2
tit:formselect
3
type:$type_exec
3
type:$type_exec
4
alias:htmlselect
4
alias:htmlselect
5
syntax:!formselect ``name'' from ``n1'' to ``n2'' prompt ``promptlist''\
5
syntax:!formselect ``name'' from ``n1'' to ``n2'' prompt ``promptlist''\
6
!formselect ``name'' list ``selectlist'' prompt ``promptlist''
6
!formselect ``name'' list ``selectlist'' prompt ``promptlist''
7
mean:Creates a select menu under a previously defined html form. <br/>\
7
mean:Creates a select menu under a previously defined html form. <br>\
8
  This command speeds up the creation of select menus, as well as simplifies\
8
  This command speeds up the creation of select menus, as well as simplifies\
9
  the source files. In the parameters, ``name'' defines the name field of the menu, \
9
  the source files. In the parameters, ``name'' defines the name field of the menu, \
10
  and the values of the menu are either integers going from ``n1'' to ``n2'' (in the first syntax),\
10
  and the values of the menu are either integers going from ``n1'' to ``n2'' (in the first syntax),\
11
  or items in the list ``selectlist''. <br/>\
11
  or items in the list ``selectlist''. <br>\
12
  The optional parameter ``promptlist'' can be used to generate user prompts for each items\
12
  The optional parameter ``promptlist'' can be used to generate user prompts for each items\
13
  in the list. If ``promptlist'' is empty or is shorter than ``selectlist'', the undefined prompts\
13
  in the list. If ``promptlist'' is empty or is shorter than ``selectlist'', the undefined prompts\
14
  will be replaced by the value. If it is longer, the rest will be ignored.\
14
  will be replaced by the value. If it is longer, the rest will be ignored.\
15
  <br/>\
15
  <br>\
16
  The default of the menu will be the current value of the variable ``&#36;name''. <br/>\
16
  The default of the menu will be the current value of the variable ``&#36;name''. <br>\
17
  The variable ``&#36;wims_formselect_switch'' may be used to set switches (for example by letting\
17
  The variable ``&#36;wims_formselect_switch'' may be used to set switches (for example by letting\
18
  <span class="tt">wims_formselect_switch=multiple</span>, the selection will be multiple.
18
  <span class="tt">wims_formselect_switch=multiple</span>, the selection will be multiple.