当前位置: 代码迷 >> HTML/CSS >> select 上下多选 demo html
  详细解决方案

select 上下多选 demo html

热度:965   发布时间:2012-11-17 11:14:15.0
select 左右多选 demo html
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/common/commons.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>xxxxx</title>
</head>
<body>
<div class="title"><span>当前位置:xxxxxx>xxxxx>xxxxxx</span></div>
<form name="tmlgroupmember" method="post" >
<input type="hidden" name="muserTerminalgroup.terminalgrpidx" value="${muserTerminalgroup.terminalgrpidx}" />
<div class="editBlock">
<table class="table2" width="100%">
<tbody>
<tr>
<th>xxxxxx</th>
<td width="20%" >

         <input  type="text" value="${muserTerminalgroup.terminalgrpname}"
               readonly="readonly" maxlength="30" style="border: none"  id="groupname" />
    
</td>

</tr>

<tr>
<th width="90">xxxxxx</th>
<td colspan="5">
<select id="id_brand" class="width140p">
<option value="">--请选择--</option>
<s:iterator value="mtmlBrandList" id="bean" status="stat" var="v">
<option value="${brandindex}">${brandname}</option>
</s:iterator>
</select>
</td>
</tr>
<tr>
<th>xxxxxxx</th>
<td colspan="5">
<div style="width: 400px; padding: 2px">&nbsp;&nbsp;

<input name="terminalmodelname" type="text" id="id_terminalmodelname" class="inputText" />
<input type="button" id="query" value="查询" class="btns" />
<input type="button" id="clear" value="清空" class="btns" />

</div>

<table width="620" height="300">
<tr>
<td width="204" valign="top">
<select id="leftmodel" multiple="multiple" style="width: 250px; height: 300px" ondblclick="leftToRight();">
<s:iterator value="mtmlInfos" id="bean" status="stat" var="v">
<option value="${terminalindex}">${terminalmodelname}</option>
</s:iterator>
</select>

</td>
<td width="207" align=center style="width: 40px;">
<input type="button" value="&gt;&nbsp;&nbsp;" title="选择单个" onClick="leftToRight();" class="inputButton" />
<br />
<br />
<input type="button" value="&gt;&gt;" title="全部选择" onClick="leftToRightAll();" class="inputButton" />
<br />
<br />
<br />
<br />
<br />
<input type="button" value="&lt;&nbsp;&nbsp;" title="移除单个" onClick="rightToLeft();" class="inputButton" />
     <br />
<br />
<input type="button" value="&lt;&lt;" title="全部移除" onClick="rightToLeftAll();" class="inputButton" />
</td>
<td width="204" valign="top">
<select name="rightmodel" id="rightmodel" multiple="multiple" style="width: 250px; height: 300px" ondblclick="rightToLeft();">
<s:iterator value="muserTerminalgroupExtendsList" var="v">
<option value="${terminalindex}">${terminalmodelname}</option>
</s:iterator>
</select>
</td>
</tr>
</table>
 
</tr>
<tr>
<td colspan="6" align="center">
<input name="button" id="id_save" type="button" class="btns" value="确定" />
<input name="button" type="button" class="btns" value="返回" id="id_back" /></td>
</tr>
</tbody>
</table>
</div>
</form>
</body>

</html>
  相关解决方案