<!-- #include file="../inc/conn.asp" -->
<!--#include file="../inc/htmlencode2.asp" -->
<%
if request.cookies("bbsuser")="" then
   response.redirect "rebbslogin.asp"
end if
id=request("id")
if request("act")="y" then
title=request("title")
content=htmlencode2(request("content"))
sender=request("sender")
accepter=request("accepter")
str="insert into sms(title,content,sender,accepter) values('"&title&"','"&content&"','"&sender&"','"&accepter&"')"
conn.execute(str)
sql="update sms set replysign=1 where id='"&id&"'"
conn.execute sql
response.redirect "mysms.asp"
end if
sqlstr="select * from sms where id='"&id&"'"
set rs=server.createobject("adodb.recordset")
rs.open sqlstr,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../css/xmwuye.css" rel=stylesheet type=text/css>
<title><%=request.cookies("name")%>的收件箱</title>
</head>
<body topmargin="5">
<div align="center">
  <TABLE align=center bgColor=#a4b6d7 border=0 cellPadding=0 cellSpacing=0 width="99%">
    <TR> 
      <TD height=25> <div align="center"><font color="#FFFFFF"><strong>欢迎<font color="#CC3300"><%=request.cookies("name")%></font>网友来管理你的论坛短信</strong></font></div></TD>
    </TR>
  </TABLE>
  <TABLE align=center bgColor=#a4b6d7 border=0 cellPadding=0 cellSpacing=0 width="99%">
    <TR> 
      <TD height=28 bgcolor="#e8f5ff"> <div align="center"> 
          <form name="form1" method="post" action="mysms.asp" style="MARGIN-BOTTOM: 0px">
            短信搜索: 
            <input name="searchstr" type="text" id="searchstr" size="25">
            <select name="smtype" id="smtype">
              <option value="title" selected>短信标题</option>
              <option value="content">短信内容</option>
            </select>
            <input type="submit" name="Submit" value="查找短信">
            <input name="button" type="button" id="button" value="发送短信" onClick="javascript:window.location.href='postsms.asp'">
            <input name="send" type="button" id="send" value="收件箱" onClick="javascript:window.location.href='mysms.asp'">
            <input name="re" type="button" id="re" value="发件箱" onClick="javascript:window.location.href='mysms.asp?t=my'">
          </form>
          <font color="#FFFFFF"></font></div></TD>
    </TR>
  </TABLE>
  <TABLE align="center" bgColor="#a4b6d7" border=0 cellPadding=0 cellSpacing=0 width="99%">
    <TBODY>
      <TR bgColor=#f2f8ff> 
        <TD height="28" vAlign=middle bgColor=#b1d6fa class=font10_5> 
          <div align="center">回复短信</div></TD>
      </TR>
    </TBODY>
  </TABLE>
  <TABLE width="99%" border=0 align="center" cellPadding=0 cellSpacing=0 bgColor="#FFFFFF">
    <TBODY>
      <TR bgColor=#f2f8ff> 
        <TD vAlign=middle bgColor=#f6f6f6 class=font10_5><div align="center">
            <form name="form2" method="post" action="" style="MARGIN-BOTTOM: 0px">
              <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="20%" height="50">
<div align="right">标题:</div></td>
                  <td width="76%"><input name="title" type="text" id="title" value="Re:<%=rs("title")%>" size="50"></td>
                </tr>
                <tr> 
                  <td height="25"><div align="right">内容:</div></td>
                  <td><textarea name="content" cols="70" rows="20" id="content"></textarea></td>
                </tr>
                <tr> 
                  <td height="30"><div align="right"></div></td>
                  <td><input type="submit" name="Submit2" value="回复">
                    <input name="cannel" type="reset" id="cannel" value="重置">
                    <input name="act" type="hidden" id="act" value="y">
                    <input name="id" type="hidden" id="id" value="<%=id%>">
                    <input name="accepter" type="hidden" id="id2" value="<%=rs("sender")%>">
                    <input name="sender" type="hidden" id="id3" value="<%=rs("accepter")%>"></td>
                </tr>
              </table>
            </form>
          </div></TD>
      </TR>
    </TBODY>
  </TABLE>
  <script language="JavaScript" src="../inc/bbstail.js"></script>
  <%
  rs.close
  conn.close
  %>
</div>
</body>
</html>
