<!-- #include file="../inc/conn.asp" -->
<!--#include file="../inc/htmlencode2.asp" -->
<%
if request.cookies("bbsuser")="" then
   response.redirect "rebbslogin.asp"
end if
if request("act")="y" then
sender=request.cookies("name")
accepter=request("postuser")
title=request("title")
content=htmlencode2(request("content"))
str="insert into sms(title,content,sender,accepter) values('"&title&"','"&content&"','"&sender&"','"&accepter&"')"
conn.execute(str)
   if request("File")<>"" then
   response.redirect "../html/"&request("File")
   else
   response.write "<script language='javascript'>"
   response.write "alert('发送成功！');"
   response.write "history.go(-2);"
   response.write "</script>"
   response.end
   end if
conn.close
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../css/xmwuye.css" rel=stylesheet type=text/css>
<title>论坛短信系统</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%">
    <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="30"> 
                    <div align="right">用户:</div></td>
                  <td width="76%" height="25">
<input name="postuser" type="text" id="postuser" value="<%=request("postuser")%>" readonly>
                  </td>
                </tr>
                <tr>
                  <td width="20%" height="30">
<div align="right">标题:</div></td>
                  <td><input name="title" type="text" id="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="File" type="hidden" id="File" value="<%=request("File")%>"></td>
                </tr>
              </table>
            </form>
          </div></TD>
      </TR>
    </TBODY>
  </TABLE>
  <script language="JavaScript" src="../inc/bbstail.js"></script>
</div>
</body>
</html>
