📄 outemail.asp
字号:
<!--#include file="Connection.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.reload('login.asp')</script>"
response.End
else
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
response.End
end if
end if
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="admin.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#6396D6">
<tr>
<td height="18" background="images/admin_bg.gif"><div align="center"><strong><font color="#FFFFFF">导出用户邮件列表</font></strong></div></td>
</tr>
<tr>
<td height="88" bgcolor="#DEE7FF"><br>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td height="18" bgcolor="#DEE7FF" style="padding-left:8px">说明:导出邮件列表的速度视您网站用户量的多少而限制。</td>
</tr>
<tr>
<td height="30" bgcolor="#DEE7FF" style="padding-left:8px"> <%if request.QueryString("action")<>"save" then%><input type="submit" name="Submit4" value="导出用户邮件列表" onClick="if(confirm('确认导出?')) location.href='OutEmail.asp?action=save';else return;"><%else%>导出成功,<a href=email/mail.htm target=_blank>请点击查看或下载!</a><%end if%>
<%
if request.QueryString("action")="save" then
dim objFSO
dim fdata
dim objCountFile
on error resume next
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
dim fcss,userid
fcss="<link href=../admin.css rel=stylesheet type=text/css>"
set rs=server.CreateObject("adodb.recordset")
rs.open "select useremail from [shop_users] ",conn,1,1
if not (rs.eof and rs.bof) then
do while not rs.eof
fdata = fdata + trim(rs("useremail")) &"<br>"
rs.movenext
loop
end if
rs.close
set rs=nothing
Set objCountFile=objFSO.CreateTextFile(Server.MapPath("email/mail.htm"),True)
objCountFile.Write fcss + fdata
Set objFSO = Nothing
if err.number<>0 then
response.write "您的空间不支持FSO,请同您的空间商联系。<br>"&Err.Description&""
response.end
end if
end if
%>
</td>
</tr>
</table>
<br>
</td>
</tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -