Rev 15468 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
16481 | guerimand | 1 | !! wims_chooselist_checked |
2 | !! wims_chooselist_select |
||
3 | !! wims_chooselist_option |
||
4 | !! wims_chooselist_data : empty is default mode if non empty wims_chooselist_checked and wims_chooselist_select are name of file to read data instead of data |
||
5 | !! (in this case wims_chooselist_data should be number of line of file wims_chooselist_select). |
||
6 | !! select : names of the three variables left form, right form, invisible form |
||
2795 | bpr | 7 | !set select_=!words2items $wims_read_parm |
8 | |||
16481 | guerimand | 9 | !if $wims_chooselist_data=$empty |
10 | !set cnt_chooselist=!linecnt $wims_chooselist_select |
||
11 | !else |
||
12 | !set cnt_chooselist=$wims_chooselist_data |
||
13 | !endif |
||
15468 | obado | 14 | !default wims_chooselist_option=style="min-width:200px" multiple="multiple" size="$[max(min($cnt_chooselist,15),2)]" |
5796 | bpr | 15 | <table class="wimscenter wimsnoborder" id="wims_chooselist"> |
2795 | bpr | 16 | <tr> |
17 | <td valign="top"> |
||
18 | <select $wims_chooselist_option name="$(select_[1])" |
||
15468 | obado | 19 | ondblclick="moveSelections(this.form.elements['$(select_[1])'], this.form.elements['$(select_[2])'], this.form.elements['$(select_[3])'], 'add')"> |
16481 | guerimand | 20 | !if $wims_chooselist_data!=$empty |
21 | !record 0 of $wims_chooselist_select |
||
22 | !else |
||
23 | $wims_chooselist_select |
||
24 | !endif |
||
15468 | obado | 25 | </select> |
26 | </td><td> |
||
27 | <input name="add" value=" >> " type="button" class="wims_button" |
||
28 | onclick="moveSelections(this.form.elements['$(select_[1])'], |
||
29 | this.form.elements['$(select_[2])'], this.form.elements['$(select_[3])'], 'add'); return false;"/> |
||
30 | <br/> |
||
31 | <input name="remove" value=" << " type="button" class="wims_button" |
||
32 | onclick="moveSelections(this.form.elements['$(select_[1])'], |
||
33 | this.form.elements['$(select_[2])'], this.form.elements['$(select_[3])'], 'remove'); return false;"/> |
||
34 | </td><td valign="top"> |
||
12784 | obado | 35 | <select $wims_chooselist_option name="$(select_[2])" ondblclick="moveSelections(this.form.elements['$(select_[1])'], |
16481 | guerimand | 36 | this.form.elements['$(select_[2])'], this.form.elements['$(select_[3])'], 'remove')"> |
37 | !if $wims_chooselist_data!=$empty |
||
38 | !record 0 of $wims_chooselist_checked |
||
39 | !else |
||
40 | $wims_chooselist_checked |
||
41 | !endif |
||
42 | </select> |
||
12784 | obado | 43 | <select style="overflow: hidden; visibility: hidden; width: 1px; height: 0;" name="$(select_[3])" |
16481 | guerimand | 44 | multiple="multiple" size="10"> |
45 | !if $wims_chooselist_data!=$empty |
||
46 | !record 0 of $wims_chooselist_checked |
||
47 | !else |
||
48 | $wims_chooselist_checked |
||
49 | !endif |
||
50 | </select> |
||
2795 | bpr | 51 | </td> |
52 | </tr> |
||
15468 | obado | 53 | </table> |
16481 | guerimand | 54 | |
55 | !reset wims_chooselist_data |