Subversion Repositories wimsdev

Rev

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

Rev 15468 Rev 16481
Line 1... Line 1...
1
!!! wims_chooselist_checked
1
!! wims_chooselist_checked
2
!!! wims_chooselist_select
2
!! wims_chooselist_select
3
!!! wims_chooselist_option
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).
4
!!! select : names of the three variables left form, right form, invisible form
6
!! select : names of the three variables left form, right form, invisible form
5
!set select_=!words2items $wims_read_parm
7
!set select_=!words2items $wims_read_parm
6
 
8
 
-
 
9
!if $wims_chooselist_data=$empty
7
!set cnt_chooselist=!linecnt $wims_chooselist_select
10
  !set cnt_chooselist=!linecnt $wims_chooselist_select
-
 
11
!else
-
 
12
  !set cnt_chooselist=$wims_chooselist_data
-
 
13
!endif
8
!default wims_chooselist_option=style="min-width:200px" multiple="multiple" size="$[max(min($cnt_chooselist,15),2)]"
14
!default wims_chooselist_option=style="min-width:200px" multiple="multiple" size="$[max(min($cnt_chooselist,15),2)]"
9
<table class="wimscenter wimsnoborder" id="wims_chooselist">
15
<table class="wimscenter wimsnoborder" id="wims_chooselist">
10
 <tr>
16
 <tr>
11
  <td valign="top">
17
  <td valign="top">
12
   <select  $wims_chooselist_option name="$(select_[1])"
18
   <select  $wims_chooselist_option name="$(select_[1])"
13
    ondblclick="moveSelections(this.form.elements['$(select_[1])'], this.form.elements['$(select_[2])'], this.form.elements['$(select_[3])'], 'add')">
19
    ondblclick="moveSelections(this.form.elements['$(select_[1])'], this.form.elements['$(select_[2])'], this.form.elements['$(select_[3])'], 'add')">
-
 
20
    !if $wims_chooselist_data!=$empty
-
 
21
      !record 0 of $wims_chooselist_select
-
 
22
    !else
14
    $wims_chooselist_select
23
      $wims_chooselist_select
-
 
24
    !endif
15
   </select>
25
   </select>
16
  </td><td>
26
  </td><td>
17
    <input name="add" value=" &gt;&gt; " type="button" class="wims_button"
27
    <input name="add" value=" &gt;&gt; " type="button" class="wims_button"
18
      onclick="moveSelections(this.form.elements['$(select_[1])'],
28
      onclick="moveSelections(this.form.elements['$(select_[1])'],
19
      this.form.elements['$(select_[2])'], this.form.elements['$(select_[3])'], 'add'); return false;"/>
29
      this.form.elements['$(select_[2])'], this.form.elements['$(select_[3])'], 'add'); return false;"/>
Line 21... Line 31...
21
    <input name="remove" value=" &lt;&lt; " type="button" class="wims_button"
31
    <input name="remove" value=" &lt;&lt; " type="button" class="wims_button"
22
      onclick="moveSelections(this.form.elements['$(select_[1])'],
32
      onclick="moveSelections(this.form.elements['$(select_[1])'],
23
      this.form.elements['$(select_[2])'], this.form.elements['$(select_[3])'], 'remove'); return false;"/>
33
      this.form.elements['$(select_[2])'], this.form.elements['$(select_[3])'], 'remove'); return false;"/>
24
  </td><td valign="top">
34
  </td><td valign="top">
25
   <select $wims_chooselist_option name="$(select_[2])" ondblclick="moveSelections(this.form.elements['$(select_[1])'],
35
   <select $wims_chooselist_option name="$(select_[2])" ondblclick="moveSelections(this.form.elements['$(select_[1])'],
26
    this.form.elements['$(select_[2])'], this.form.elements['$(select_[3])'], 'remove')">$wims_chooselist_checked</select>
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>
27
   <select style="overflow: hidden; visibility: hidden; width: 1px; height: 0;" name="$(select_[3])"
43
   <select style="overflow: hidden; visibility: hidden; width: 1px; height: 0;" name="$(select_[3])"
28
    multiple="multiple" size="10">$wims_chooselist_checked</select>
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>
29
  </td>
51
  </td>
30
 </tr>
52
 </tr>
31
</table>
53
</table>
-
 
54
 
-
 
55
!reset wims_chooselist_data