📄 f_emailman.asp
字号:
<!--#include File=../../inc/imis.inc-->
<html>
<head>
<title>嘉码RMIS</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language=javascript>
function ut(xxx)
{
if (xxx.style.display=="none")
{
xxx.style.display=""
}
else
{ xxx.style.display="none"
}
}
</script>
<link rel="stylesheet" href="../font.css">
<body bgcolor="#FFFFFF" text="#000000" leftmargin=0 topmargin="0">
<table width="100%" border="8" bordercolorlight="#CCCCCC" bordercolordark="#CCCCCC" height="100%">
<tr valign="top">
<td> <img src="../../images/i_tubiao_4.gif" width="302" height="65"><br>
<form name="form1" >
<table width="90%" border="0" cellspacing="0" cellpadding="0" class="unnamed2" align="center">
<tr>
<td> <font size="2">
<input type="checkbox" name="sendto_all" value="sendto_all" onClick="todis_all()">
全选</font></td>
</tr>
<% sql="Select * from manage_dept where id<>1"
set rs=server.createobject("ADODB.Recordset")
rs.Open sql,source,3,3
aaa=1
while not rs.eof%>
<tr>
<td height="18"> <font size="2">
<input type="checkbox" name="dep<%=aaa%>" value="checkbox" onClick="todis<%=aaa%>()">
<a href="#" onClick="window.event.returnValue=false;ut(d<%=rs("id")%>)"><%=rs("deptname")%></a></font></td>
</tr>
<%sqls="Select * from manage_user where id<>1 and deptid="&rs("id")&" and leave=0"
set rss=server.createobject("ADODB.Recordset")
rss.Open sqls,source,3,3%>
<tr style="display:none" id="d<%=rs("id")%>">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="unnamed2">
<%
while not rss.eof%>
<tr>
<td width="18%"> </td>
<td width="82%"> <font size="2">
<input type="checkbox" name="name<%=aaa%>" value="<%=rss("name")%>">
<%=rss("name")%> <%if instr(application("onlinecc"),"["&rss("id"))>0 then%>
(在线) <%end if%> </font></td>
</tr>
<%
rss.movenext
wend%>
</table>
</td>
</tr>
<%rss.close%>
<script language="JavaScript">
function todis<%=aaa%>()
{
form1.name<%=aaa%>.checked=form1.dep<%=aaa%>.checked;
for(i=0;i<form1.name<%=aaa%>.length;i++)
form1.name<%=aaa%>[i].checked=form1.dep<%=aaa%>.checked;
}
</script>
<%aaa=aaa+1
rs.movenext
wend
rs.close%>
<script language="JavaScript">
function todis_all()
{
if(form1.sendto_all.checked==true)
{
<% for i=1 to aaa-1
%>
form1.dep<%=i%>.checked=true;
if(form1.name<%=i%>!=null)
{
form1.name<%=i%>.checked=form1.dep<%=i%>.checked;
for(b=0;b<form1.name<%=i%>.length;b++)
form1.name<%=i%>[b].checked=form1.dep<%=i%>.checked;
}
<%next%>
}
else
{
<% for i=1 to aaa-1
%>
form1.dep<%=i%>.checked=false;
if(form1.name<%=i%>!=null)
{
form1.name<%=i%>.checked=form1.dep<%=i%>.checked;
for(b=0;b<form1.name<%=i%>.length;b++)
form1.name<%=i%>[b].checked=form1.dep<%=i%>.checked;
}
<%next%>
}
}
</script>
</table>
<div align="right">
<table width="90%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<div align="center"><br>
<input type="image" border="0" name="imageField" src="../../images/i_button_6.gif" width="37" height="18"onClick="select_man()">
<script language="javascript">
function select_man()
{
t=""
a=""
<% for n=1 to aaa-1
%>
if(form1.name<%=n%>!=null)
{
if(form1.name<%=n%>.checked==true && form1.name<%=n%>.value!=null)
{
if(t!="") t+="&";
t+=form1.name<%=n%>.value;
}
for(i=0;i<form1.name<%=n%>.length;i++)
{
if(form1.name<%=n%>[i]!=null)
if(form1.name<%=n%>[i].checked==true)
{
if(t!="") t+="&";
t+=form1.name<%=n%>[i].value;
}
}
}
<%next%>
t+="&"
opener.form1.email_man.value=t
window.close()
}
</script>
</div>
</td>
</tr>
</table>
<br>
</div>
</form>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -