📄 picklist.jsp
字号:
<%@ include file="/common/taglibs.jsp"%>
<tr>
<td>
<select name="<c:out value="${param.leftId}"/>" multiple="multiple"
onDblClick="moveSelectedOptions(this,$('<c:out value="${param.rightId}"/>'),true)"
id="<c:out value="${param.leftId}"/>" size="5">
<c:if test="${leftList != null}">
<c:forEach var="list" items="${leftList}" varStatus="status">
<option value="<c:out value="${list.value}"/>">
<c:out value="${list.label}" escapeXml="false" />
</option>
</c:forEach>
</c:if>
</select>
</td>
<td class="moveOptions">
<button name="moveRight" id="moveRight<c:out value="${param.listCount}"/>" type="button"
onclick="moveSelectedOptions($('<c:out value="${param.leftId}"/>'),$('<c:out value="${param.rightId}"/>'),true)">
>></button><br />
<button name="moveAllRight" id="moveAllRight<c:out value="${param.listCount}"/>" type="button"
onclick="moveAllOptions($('<c:out value="${param.leftId}"/>'),$('<c:out value="${param.rightId}"/>'),true)">
All >></button><br />
<button name="moveLeft" id="moveLeft<c:out value="${param.listCount}"/>" type="button"
onclick="moveSelectedOptions($('<c:out value="${param.rightId}"/>'),$('<c:out value="${param.leftId}"/>'),true)">
<<</button><br />
<button name="moveAllLeft" id="moveAllLeft<c:out value="${param.listCount}"/>" type="button"
onclick="moveAllOptions($('<c:out value="${param.rightId}"/>'),$('<c:out value="${param.leftId}"/>'),true)">
All <<</button>
</td>
<td>
<select name="<c:out value="${param.rightId}"/>" multiple="multiple"
id="<c:out value="${param.rightId}"/>" size="5">
<c:if test="${rightList != null}">
<c:forEach var="list" items="${rightList}" varStatus="status">
<option value="<c:out value="${list.value}"/>">
<c:out value="${list.label}" escapeXml="false"/>
</option>
</c:forEach>
</c:if>
</select>
</td>
</tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -