Subversion Repositories wimsdev

Rev

Rev 17228 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
32 reyssat 1
!! +exec+ +html+
14279 obado 2
!goto end
11212 bpr 3
tit:formcheckbox
11210 bpr 4
type:$type_exec
11220 bpr 5
alias:htmlcheckbox
11292 bpr 6
syntax:!formcheckbox ``name'' from ``n1'' to ``n2'' prompt ``promptlist''\
7
!formcheckbox ``name'' list ``selectlist'' prompt ``promptlist''
9291 obado 8
 
17228 bpr 9
mean:Creates a checkbox list menu under a previously defined html form. <br>\
18225 bpr 10
  This command speeds up the creation of checkboxed menus (limited to MAX_MENU_ITEMS), as well as simplifies\
11292 bpr 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),\
17228 bpr 13
  or items in the list ``selectlist''. <br>\
16697 bpr 14
  The optional parameter ``promptlist'' can be used to generate user prompts for each items in the list.\
15
  If ``promptlist'' is empty or is shorter than ``selectlist'', the undefined prompts\
11210 bpr 16
  will be replaced by the value. If it is longer, the rest will be ignored.\
17228 bpr 17
  <br>\
11292 bpr 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\
11210 bpr 21
  the html form will be in the corresponding html environmment. If the\
11292 bpr 22
  variable ``wims_ref_class'' is non empty, the class of this html environment is the value \
11210 bpr 23
  of this variable. The default of the menu will be the current value of the variable\
17228 bpr 24
  ``&#36;name''. <br>\
16697 bpr 25
  The variables ``wims_ref_id'' and ``wims_html_mode'' are reinitialized after the html form.
14279 obado 26
sample:see below
18225 bpr 27
 
14279 obado 28
:end
29
<tr>
30
  <td><code>!formcheckbox varCHK1 from 1 to 3 prompt txt1,txt2,txt3</code></td>
31
  <td>
32
    !formcheckbox varCHK1 from 1 to 3 prompt txt1,txt2,txt3
33
  </td>
16291 bpr 34
</tr><tr>
14279 obado 35
  <td><code>!formcheckbox varCHK2 list a,b,c prompt txtA,txtB,txtC</code></td>
36
  <td>
37
    !formcheckbox varCHK2 list a,b,c prompt txtA,txtB,txtC
38
  </td>
16291 bpr 39
</tr><tr>
17228 bpr 40
  <td><code>&lt;ol&gt;<br>!set wims_html_mode=li
41
  <br>!formcheckbox varCHK3 list apple,pear prompt &amp;#x1f34e;,&amp;#x1f350;
42
  <br>&lt;/ol&gt;<br>
43
  &lt;ul&gt;<br>!set wims_html_mode=li
44
  <br>!formcheckbox varCHK4 list apple,pear prompt &amp;#x1f34e;,&amp;#x1f350;
45
  <br>&lt;/ul&gt;</code></td>
14279 obado 46
  <td>
47
    <ol>
48
    !set wims_html_mode=li
49
    !formcheckbox varCHK3 list apple,pear prompt &#x1f34e;,&#x1f350;
50
    </ol>
16697 bpr 51
    <ul>
52
    !set wims_html_mode=li
53
    !formcheckbox varCHK4 list apple,pear prompt &#x1f34e;,&#x1f350;
54
    </ul>
14279 obado 55
  </td>
56
</tr>