📄 selectpeople.asp
字号:
<!--#include file="../../config.asp"-->
<!--#include file="../checklogin.asp"-->
<link href="../img/css1.css" type=text/css rel=stylesheet>
<html>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style><head>
<script>
function send(){
window.opener.document.form1.mobile.value="";
var obj=document.form1.phone;
for(j=0;j<(obj.length);j++){
for(i=j;i<(obj.length-1);i++){
if(obj[i].checked)window.opener.document.form1.mobile.value+=document.form1.phone[i].value+","
j = i;
}
j++;
if(obj[i].checked)window.opener.document.form1.mobile.value+=document.form1.phone[j].value;
}
//window.opener.document.form1.mobile.value=str;
window.close();
}
</script>
<title>手机号码选择</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<body bgcolor="#ffffff" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#009999">
<tr>
<td height="18" colspan="3" bgcolor="#F5F5F5"> 请选择用户</td>
</tr>
<tr>
<td width="20%" height="20" align="left"><input name="checkbox" type=checkbox class="tabel1" onclick=sel('phone')>
选择</td>
<td width="41%" height="20">电话</td>
<td width="39%" height="20">姓名</td>
</tr>
<%
sql="select mobile,truename from oa_admin where companyid="&session("companyid")&" and len(mobile)=11"
set rs=conn.execute(sql)
do while not rs.eof
%>
<tr>
<td width="20%" height="20">
<input type="checkbox" name="phone" value="<%=trim(rs(0))%>">
</td>
<td width="41%" height="20"><%=trim(rs(0))%></td>
<td width="39%" height="20"><%=trim(rs(1))%></td>
</tr>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
<tr>
<td colspan="3" height="20">
<div align="center">
<input type="button" name="submit" value="提交" onClick="send()">
<input type="reset" name="submit2" value="清空" onclick="window.opener.document.form1.txt1.value=">
</div></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -