<!--#include file="conn.asp"-->
<!--#include file="check.asp"-->
<!--#include file="../inc/setup.asp"-->
<!--#include file="../inc/sql.asp"-->
<%
	end if

	pid=Request.Cookies("admin_person_id")
	id=Trim(Request.QueryString("id"))
	action=Trim(Request.QueryString("action"))
	if action="del" then
		conn.Execute "delete from pmailbox where id="&id&" and reid="&pid&""
		response.write"<SCRIPT language=JavaScript>alert('邮件删除成功，现在正为您返回，请稍等');"
		response.write"window.location.href = 'message.asp'"&" </script>"
		response.end
	end if
	if id="" then
		response.write"<SCRIPT language=JavaScript>alert('对不起，非法操作！');"
		response.write"javascript:window.close();</SCRIPT>"
		response.end
	end if
	set rs=server.createobject("adodb.recordset")
	sql="select * from pmailbox where id="&id&" and reid="&pid&""
	rs.open sql,conn,1,1
	if rs.eof and rs.bof then
		response.write"<SCRIPT language=JavaScript>alert('该邮件不存在');"
		response.write"javascript:window.close();</SCRIPT>"
		response.end
	else
	conn.Execute "update pmailbox set newmail=1 where id="&id&" and reid="&pid&""
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%= homename %>----个人会员专区</title>
<link href="../company/images/css.css" rel="stylesheet" type="text/css">
</head>
<style>
<!--
body {
	background-color: #FFFFFF;
}
-->
</style>
<body>
<table width="400"  border="0" align="left" cellpadding="5" cellspacing="2" style="border:1 solid #006666 ">
  <tr>
    <td width="411" height="22" align="center" bgcolor="#33CCCC"><%= rs("title") %>&nbsp;</td>
  </tr>
  <tr>
    <td height="200" valign="top" bgcolor="#FFFFFF"><p><%= rs("mailtext") %>&nbsp;</p></td>
  </tr>
  <tr>
    <td height="22" align="center" bgcolor="#FFFFFF"><a href="msback.asp?senduid=<%=rs("senduid")%>"><img src="images/home.gif" width="148" height="28" border="0" alt="回复信息"></a>&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/back.gif" width="148" height="28" style="cursor:hand;" onClick="window.close()" alt="关闭窗口"></td>
  </tr>
</table>
<%
	rs.close
	set rs=nothing
	End If
%>
</body>
</html>
