<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
function addSelect(){
var b,c;
b=document.rework.selectA;
c=document.rework.selectB;
for(i=0;i<b.length;i++){
if(b.selectedIndex!=-1){
c.options[c.length]=new Option()
c.options[c.length-1].value=b.options[b.selectedIndex].value;
c.options[c.length-1].text=b.options[b.selectedIndex].text;
b.options[b.selectedIndex].selected=false;
}
}
}
function deleteSelect(){
var c;
c=document.rework.selectB;
if(c.selectedIndex<0){
window.alert("请先选择要删除用户名!")
return;}
c.options[c.selectedIndex]=null;
}
</script>
<body>
<form name="rework" action="">
<table width="54%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#006699" style="border-collapse:collapse">
<tr>
<td height="77" bgcolor="#81C5E0" class="black12"><div align="center">添加成员:</div></td>
<td width="150">
<select name="selectA" size="7" multiple style="width:150px">
<option>111111</option>
<option>222222</option>
<option>333333</option>
<option>444444</option>
</select></td>
<td width="64" align="center">
<input type="button" name="Submit4" value="添加>>" onClick="addSelect()">
<input type="button" name="Submit5" value="<<删除" onClick="deleteSelect()"></td>
<td width="151" >
<select name="selectB" size="7" multiple style="width:150px">
</select></td>
</tr>
<tr>
<td colspan="6" align="center" bgcolor="#81C5E0" class="black12"><input type="button" name="Submit4" value="修改">
<input type="button" name="Submit4" value="返回" ></td>
</tr>
</table>
</form>
</body>
<html>