Subversion Repositories Sigmater

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 Andrea 1
<#--
2
/*
3
 * $Id: Action.java 502296 2007-02-01 17:33:39Z niallp $
4
 *
5
 * Licensed to the Apache Software Foundation (ASF) under one
6
 * or more contributor license agreements.  See the NOTICE file
7
 * distributed with this work for additional information
8
 * regarding copyright ownership.  The ASF licenses this file
9
 * to you under the Apache License, Version 2.0 (the
10
 * "License"); you may not use this file except in compliance
11
 * with the License.  You may obtain a copy of the License at
12
 *
13
 *  http://www.apache.org/licenses/LICENSE-2.0
14
 *
15
 * Unless required by applicable law or agreed to in writing,
16
 * software distributed under the License is distributed on an
17
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18
 * KIND, either express or implied.  See the License for the
19
 * specific language governing permissions and limitations
20
 * under the License.
21
 */
22
-->
23
<#if !stack.findValue("#inputtransferselect_js_included")?exists><#t/>
24
	<script type="text/javascript" src="<@s.url value="/struts/inputtransferselect.js" encode='false' includeParams='none'/>"></script>
25
	<#assign temporaryVariable = stack.setValue("#inputtransferselect_js_included", "true") /><#t/>
26
</#if><#t/>
27
<table border="0">
28
<tr>
29
<td>
30
<#if parameters.leftTitle?exists><#t/>
31
	<label for="leftTitle">${parameters.leftTitle}</label><br />
32
</#if><#t/>
33
 
34
 
35
<input type="text"<#rt/>
36
 name="${parameters.name?default("")?html}_input"<#rt/>
37
<#if parameters.disabled?default(false)>
38
 disabled="disabled"<#rt/>
39
</#if>
40
<#if parameters.readonly?default(false)>
41
 readonly="readonly"<#rt/>
42
</#if>
43
<#if parameters.tabindex?exists>
44
 tabindex="${parameters.tabindex?html}"<#rt/>
45
</#if>
46
<#if parameters.id?exists>
47
 id="${parameters.id?html}_input"<#rt/>
48
</#if>
49
<#if parameters.cssClass?exists>
50
 class="${parameters.cssClass?html}"<#rt/>
51
</#if>
52
<#if parameters.cssStyle?exists>
53
 style="${parameters.cssStyle?html}"<#rt/>
54
</#if>
55
<#if parameters.title?exists>
56
 title="${parameters.title?html}"<#rt/>
57
</#if>
58
<#include "/${parameters.templateDir}/simple/scripting-events.ftl" />
59
<#include "/${parameters.templateDir}/simple/common-attributes.ftl" />
60
/>
61
 
62
 
63
</td>
64
<td valign="middle" align="center">
65
	<#assign addLabel=parameters.addLabel?default("->")?html /><#t/>
66
	<input type="button"
67
		<#if parameters.buttonCssClass?exists><#t/>
68
		 class="${parameters.buttonCssClass?html}"
69
		</#if><#t/>
70
		<#if parameters.buttonCssStyle?exists>
71
		 style="${parameters.buttonCssStyle?html}"
72
		</#if><#t/>
73
		 value="${addLabel}" onclick="addOption(document.getElementById('${parameters.id?html}_input'), document.getElementById('${parameters.id?html}'))" /><br /><br />
74
	<#t/>
75
	<#assign removeLabel=parameters.removeLabel?default("<-")?html /><#t/>
76
	<input type="button"
77
  		<#if parameters.buttonCssClass?exists><#t/>
78
		 class="${parameters.buttonCssClass?html}"
79
		</#if><#t/>
80
		<#if parameters.buttonCssStyle?exists>
81
		 style="${parameters.buttonCssStyle?html}"
82
		</#if><#t/>
83
		 value="${removeLabel}" onclick="removeOptions(document.getElementById('${parameters.id?html}'))" /><br /><br />
84
	<#t/>
85
	<#assign removeAllLabel=parameters.removeAllLabel?default("<<--")?html /><#t/>
86
	<input type="button"
87
	    		<#if parameters.buttonCssClass?exists><#t/>
88
		 class="${parameters.buttonCssClass?html}"
89
		</#if><#t/>
90
		<#if parameters.buttonCssStyle?exists>
91
		 style="${parameters.buttonCssStyle?html}"
92
		</#if><#t/>
93
		 value="${removeAllLabel}" onclick="removeAllOptions(document.getElementById('${parameters.id?html}'))" /><br /><br />
94
</td>
95
<td>
96
<#if parameters.rightTitle?exists><#t/>
97
	<label for="rightTitle">${parameters.rightTitle}</label><br />
98
</#if><#t/>
99
<#include "/${parameters.templateDir}/simple/select.ftl" />
100
<#if parameters.allowUpDown?default(true)>
101
<input type="button" 
102
<#if parameters.headerKey?exists>
103
	onclick="moveOptionDown(document.getElementById('${parameters.id}'), 'key', '${parameters.headerKey}');"
104
<#else>
105
	onclick="moveOptionDown(document.getElementById('${parameters.id}'), 'key', '');"
106
</#if>
107
<#if parameters.downLabel?exists>
108
	value="${parameters.downLabel?html}"
109
</#if>
110
/>
111
<input type="button" 
112
<#if parameters.headerKey?exists>
113
	onclick="moveOptionUp(document.getElementById('${parameters.id}'), 'key', '${parameters.headerKey}');"
114
<#else>
115
	onclick="moveOptionUp(document.getElementById('${parameters.id}'), 'key', '');"
116
</#if>
117
<#if parameters.upLabel?exists>
118
	value="${parameters.upLabel?html}"
119
</#if>
120
/>
121
</#if>
122
</td>
123
</tr>
124
</table>