<!--#include file="inc/conn.asp"-->
<!--#include file="inc/safe.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/const.asp"-->
<%
if MemberName="" then
  response.Redirect("userlogin.asp")
  response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>红嫂视屏交友网</title>
<meta name="keywords" content="情感,在线,新新,照片,动感影片,诗歌,爱情,纯洁,心连心">
<meta name="description" content="红嫂视屏交友情缘 情感在线">
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-image: url();
}
.STYLE8 {
	color: #CC0099;
	font-size: 12px;
	font-weight: bold;
}
.STYLE31 {color: #666666; font-size: 12px;}
-->
</style>
</head>
<body>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="top.asp"--></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="204" height="328" valign="top"><!--#include file="memberleft.asp"-->
&nbsp;</td>
    <td width="583" valign="top"><table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><TABLE width="100%" border=0 
            cellPadding=0 cellSpacing=0 bgColor=white class="STYLE4" >
              <TBODY>
                <TR>
                  <TD align=center width="2%"><img src="image/tiao_3.gif" width="10" height="31"></TD>
                  <TD height="20" align=center background="image/tiao_4.gif"><table width="95%" border="0" cellpadding="0" cellspacing="3" class="STYLE4">
                      <tr>
                        <td class="pgd">阅读邮件</td>
                        <td width="80" align="right">&nbsp;</td>
                      </tr>
                  </table></TD>
                  <TD width="2%" align="center"><img src="image/tiao_2.gif" width="10" height="31"></TD>
                </TR>
              </TBODY>
          </TABLE></td>
        </tr>
        <tr>
          <td height="299" valign="top" style="border-left:#C7C8CC 1px solid;border-right:#C7C8CC 1px solid;border-bottom:#C7C8CC 1px solid"><br>
              <table width="530" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td><%
mail_id=request.QueryString("id")
if mail_id<>"" and isnumeric(mail_id)  then
set rs=server.CreateObject("adodb.recordset")
sql="select * from sd_ly where id="& mail_id &""
rs.open sql,conn,1,3
if not(rs.eof or rs.bof) then
%>
                      <table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FEE2F5" class="STYLE4" bordercolordark="#FFFFFF">
                        <tr>
                          <td height="30"><table width="470" border="0" cellpadding="3" cellspacing="2" class="STYLE4">
                              <tr>
                                <td width="71" height="28" bgcolor="#C8E3FA">发件人：</td>
                                <td width="435"><%=rs("postname")%></td>
                              </tr>
                              <tr>
                                <td height="28" bgcolor="#C8E3FA">收件人：</td>
                                <td><%=MemberName%></td>
                              </tr>
                              <tr>
                                <td height="28" bgcolor="#C8E3FA">日　期：</td>
                                <td><%=rs("addtime")%></td>
                              </tr>
                              <tr>
                                <td height="28" bgcolor="#C8E3FA">主　题：</td>
                                <td><%=rs("title")%></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td height="30"><table width="532" border="0" cellpadding="3" cellspacing="2" class="STYLE4">
                              <tr bgcolor="#C8E3FA">
                                <td width="88" height="22"><div align="center">
                                    <%if rs("postid")<>0 then%>
                                    <a href="reply_mail.asp?mail_id=<%=rs("id")%>" class="a5">回复</a>
                                    <%else
						   response.write "回复"
						  end if
						  %>
                                </div></td>
                                <td width="58"><div align="center"><A href="del_mail.asp?mail_id=<%=rs("id")%>" class="a5">删除</A></div></td>
                                <td width="143"><div align="center">
                                    <%if rs("postid")<>0 then%>
                                    <a href="addfriend.asp?action=save&fid=<%=rs("postid")%>" class="a5">加入我的好友录</a>
                                    <%end if%>
                                </div></td>
                                <td width="209" bgcolor="#C8E3FA">&nbsp;</td>
                              </tr>
                              <tr>
                                <td height="185" colspan="4" valign="top" class="style30"><%=rs("content")%><BR></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td height="22"><table width="532" border="0" cellpadding="3" cellspacing="0" class="STYLE4">
                              <tr bgcolor="#C8E3FA">
                                <td width="90"><div align="center">
                                    <%if rs("postid")<>0 then%>
                                    <a href="reply_mail.asp?mail_id=<%=rs("id")%>" class="a5">回复</a>
                                    <%else
						   response.write "回复"
						  end if
						  %>
                                </div></td>
                                <td width="61"><div align="center"><A href="del_mail.asp?mail_id=<%=rs("id")%>" class="a5">删除</A></div></td>
                                <td width="144"><div align="center">
                                    <%if rs("postid")<>0 then%>
                                    <a href="addfriend.asp?action=save&fid=<%=rs("postid")%>" class="a5">加入我的好友录</a>
                                    <%end if%>
                                </div></td>
                                <td width="213">&nbsp;</td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td height="20">&nbsp;</td>
                        </tr>
                      </table>
                      <%
rs("isread")=1
rs.update
end if
end if%>
                  </td>
                </tr>
              </table>
</td>
        </tr>
    </table></td>
    <td width="163"><!--#include file="fenlei.asp"-->
&nbsp;</td>
  </tr>
</table>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="root.asp"--></td>
  </tr>
</table>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
