<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function Add(ObjSource,ObjTarget){
for(var i=0;i<ObjSource.length;i++){
if(ObjSource.options[i].selected){
var opt=document.createElement("OPTION");
opt.value=ObjSource.options[i].value;
opt.text=ObjSource.options[i].text;
ObjTarget.add(opt);
ObjSource.options.removeChild(ObjSource.options[i--]);
}
}
} function AddAll(ObjSource,ObjTarget){
SelectAll(ObjSource);
Add(ObjSource,ObjTarget);
}function SelectAll(ObjSource){
for(var i=0;i<ObjSource.length;i++){
ObjSource.options[i].selected = true;
}
} function fClose(){
var obj1 = document.getElementsByName('Target')[0];
returnStr = '';
for (var i=0;i<obj1.length;i++)
{
returnStr += obj1.options[i].text + ',' + obj1.options[i].value + ';';
}
window.returnValue = returnStr;
window.close();
}
</script>
</head>
<body>
<table width="350" height="50" border="1" style="border-collapse:collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
<tr>
<td width="150">
<html:select name="Source" multiple="true" size="10" style="width:250px" ondblclick="Add(document.all.Source,document.all.Target)"><html:options labelProperty="Depot_Province/entity/ORGNAME" property="Depot_Province/entity/ORGCODE"/></html:select>
</td>
<td width="50" valign="middle">
<p style="width:100%" align="center">
<input type="button" value="->" onClick="Add(document.all.Source,document.all.Target)" title="添加">
</p>
<p style="width:100%" align="center">
<input type="button" value=">>" onClick="AddAll(document.all.Source,document.all.Target)" title="添加全部">
</p>
<p style="width:100%" align="center">
<input type="button" value="<-" onClick="Add(document.all.Target,document.all.Source)" title="删除">
</p>
<p style="width:100%" align="center">
<input type="button" value="<<" onClick="AddAll(document.all.Target,document.all.Source)" title="删除全部">
</p>
</td>
<td width="150">
<select name="Target" multiple="multiple" size="10" style="width:250px" ondblclick="Add(document.all.Target, document.all.Source)"></select>
</td>
</tr>
<tr>
<td align="right" colspan="3"><input type=button onclick="fClose()" value="确定"></td>
</tr>
</table>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function Add(ObjSource,ObjTarget){
for(var i=0;i<ObjSource.length;i++){
if(ObjSource.options[i].selected){
var opt=document.createElement("OPTION");
opt.value=ObjSource.options[i].value;
opt.text=ObjSource.options[i].text;
ObjTarget.add(opt);
ObjSource.options.removeChild(ObjSource.options[i--]);
}
}
} function AddAll(ObjSource,ObjTarget){
SelectAll(ObjSource);
Add(ObjSource,ObjTarget);
}function SelectAll(ObjSource){
for(var i=0;i<ObjSource.length;i++){
ObjSource.options[i].selected = true;
}
} function fClose(){
var obj1 = document.getElementsByName('Target')[0];
returnStr = '';
for (var i=0;i<obj1.length;i++)
{
returnStr += obj1.options[i].text + ',' + obj1.options[i].value + ';';
}
window.returnValue = returnStr;
window.close();
}
</script>
</head>
<body>
<table width="350" height="50" border="1" style="border-collapse:collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
<tr>
<td width="150">
<html:select name="Source" multiple="true" size="10" style="width:250px" ondblclick="Add(document.all.Source,document.all.Target)"><html:options labelProperty="Depot_Province/entity/ORGNAME" property="Depot_Province/entity/ORGCODE"/></html:select>
</td>
<td width="50" valign="middle">
<p style="width:100%" align="center">
<input type="button" value="->" onClick="Add(document.all.Source,document.all.Target)" title="添加">
</p>
<p style="width:100%" align="center">
<input type="button" value=">>" onClick="AddAll(document.all.Source,document.all.Target)" title="添加全部">
</p>
<p style="width:100%" align="center">
<input type="button" value="<-" onClick="Add(document.all.Target,document.all.Source)" title="删除">
</p>
<p style="width:100%" align="center">
<input type="button" value="<<" onClick="AddAll(document.all.Target,document.all.Source)" title="删除全部">
</p>
</td>
<td width="150">
<select name="Target" multiple="multiple" size="10" style="width:250px" ondblclick="Add(document.all.Target, document.all.Source)"></select>
</td>
</tr>
<tr>
<td align="right" colspan="3"><input type=button onclick="fClose()" value="确定"></td>
</tr>
</table>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货