📄 adduser.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../config.asp"-->
<!--#include file="../checklogin.asp"-->
<!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=gb2312">
<title>添加用户</title>
<link href="../img/css1.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
</head>
<%
%>
<body>
<form name="frm">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tabel1">
<tr align="center" bgcolor="#CC0000">
<td height="25" colspan="3"><span class="style1">选择接收的用户</span></td>
</tr>
<tr>
<td width="45%" height="170" align="center">
<select name="D1" size="12" multiple id="e1" style="width:120px ">
<%
sql="select id,truename,username from oa_Admin where companyid="&session("companyid")
set rs=conn.execute(sql)
do while not rs.eof
%>
<option value="<%=rs("id")%>"><%=rs("truename")%></option>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
</select></td>
<td width="5%" height="25" align="center">
<input type="button" value="<<" name="B1" onclick="move('e2','e1');"><br><br>
<input type="button" value="<" name="B2" onclick="move('e2','e1',true);"><br><br>
<input type="button" value=">" name="B3" onclick="move('e1','e2',true);"><br><br>
<input type="button" value=">>" name="B4" onclick="move('e1','e2');"><br><br>
</td>
<td width="50%" height="25" align="center">
<select name="D2" size="12" multiple id="e2" style="width:120px ">
</select>
</td>
</tr>
<tr bgcolor="#CC0000">
<td height="25"> </td>
<td height="25"><input name="Submit" type="submit" id="Submit" value="确定" onClick="getAndSend()"></td>
<td height="25" align="left"><input name="Submit" type="button" id="Submit" onClick="window.close();" value="关闭"></td>
</tr>
</table>
</form>
</body>
</html>
<script type="text/javascript">
<!--
function moveitem(os1,index,os2){
var text=os1.options[index].text;
os2.options[os2.options.length]=new Option(text,text);
os1.options[index].removeNode(true);
}
function move(os1,os2,bSelected){
os1=document.getElementById(os1);
os2=document.getElementById(os2);
for(var i=os1.options.length-1;i>=0;i--)
{
if(bSelected&&!os1.options[i].selected){continue;}
moveitem(os1,i,os2);
}
}
function getAndSend(){
var sv = "";
var ims = document.all.D2.options;
for(var i=0;i<ims.length;i++){
sv = sv + ims[i].value + ";";
}
window.location = "add_notice.asp?sv=" + sv;
}
//-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -