<!-- #include file="conn.asp" -->
<!--#include file="inc/htmlencode2.asp" -->
<!-- #include file="bbsuser.asp" -->
<!--#include file="inc/ubbcode.asp"-->
<!--#include file="ftbbs_nav.asp" -->
<%
call FTBBS_HTML_MB
defaulthome=Application("FTBBSMB")(31,0)
homepage=ft_home(defaulthome)
id=request("id")
if request("act")="y" then
title=Checkstr(htmlencode2(request("title")))
title=RegExReplace(title,"\b(script)\b"," $1 ")
title=RegExReplace(title,"\b(iframe)\b"," $1 ")

content=Checkstr(htmlencode2(request("content")))
content=RegExReplace(content,"\b(script)\b"," $1 ")
content=RegExReplace(content,"\b(iframe)\b"," $1 ")
sender=request("sender")
accepter=request("accepter")
str="insert into sms(title,content,sender,accepter,IsNew) values('"&title&"','"&content&"','"&sender&"','"&accepter&"',1)"
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">
<script language=javascript src="inc/cookies.js"></script>
<script>
var stylecook = getCookie("STYLESHOW");
var style;
var strstyle;
if(stylecook=="")
{
 stylecook=1;
}
else
{
 stylecook++;
}
style="main0"+stylecook+".css";
strstyle="<link href=\"css/"+style+"\"  rel=\"stylesheet\" type=\"text/css\"> ";
document.write(strstyle);
</script>
<title><%=request.cookies("name")%>的收件箱</title>
</head>
<script language="javascript">
<!--
	function check(form)
	{
    if (form.title.value=="")
    	{
    		alert("请填写标题！");
    		form.title.focus();
    		return false;
  	}
    if (form.content.value=="")
    	{
    		alert("请填写内容！");
    		form.content.focus();
    		return false;
  	}
return true;
	}
//-->
</script>
<body topmargin="5">
<div align="center">
<%
if request.cookies("ftbbstype")=1 then
  response.write headhtml
end if
%>
<TABLE align=center class="maintbbg" border=0 cellPadding=0 cellSpacing=1 width="99%">
        <tbody>
		<%if request.cookies("ftbbstype")<>1 then%>
          <tr> 
            <td height="25" class="f12bg">&nbsp;<%=userinfo%></td>
          </tr>
		<%end if%>
          <tr>
            <td height="25" class="maintbtr3" align="left">&nbsp;<a href="<%=homepage%>">论坛首页</a> 
              >> 回复短信</td>
          </tr>
        </tbody>
  </TABLE>
     <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr> 
      <td height=5><spacer height="5" type="block"></td>
      </tr>
     </table>
  <TABLE width="99%" border=0 align="center" cellPadding=0 cellSpacing=1 class="maintbbg">
    <TBODY>
    <TR> 
      <TD height=28 class="td004"> <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>
      <TR class="table001"> 
        <TD height="28" vAlign=middle class="maintbtr1"> 
          <div align="center">回复短信</div></TD>
      </TR>
      <TR> 
        <TD vAlign=middle class="maintbtr3"><div align="center">
            <form name="form2" method="post" action="" style="MARGIN-BOTTOM: 0px" onsubmit="return check(this)">
              <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="20%" height="50" class="f12">
<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" class="f12"><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>
  <!--#include file="inc/bbstail.htm" -->
  <%
  rs.close
  conn.close
  %>
</div>
</body>
</html>
