<!--#include file="../conn2.asp"-->
<!--#include file="../inc/config.asp"-->
<!--#include file="set.asp"--><head>

<LINK href="css.css" type=text/css rel=stylesheet>

<style type="text/css">
<!--
.STYLE1 {color: #000000}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<%
if request.querystring("action")="del" then
daynum=Request.form("ddname")
if daynum="" then
%>


<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td><div align="center" class="title_white14"><strong><font color=red>请输入指定日期，<a href="javascript:history.back(1)">点击返回</a></font></strong></div></td>
  </tr>
</table>
<%else
conn.execute("delete from sms where datediff(d,riqi,getdate())>"&daynum&"")
%>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td><div align="center" class="title_white14"><strong><font color=red>删除成功，<a href="javascript:history.back(1)">点击返回</a></font></strong></div></td>
  </tr>
</table>
<%end if%>
<%else%>
<br>
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC">
  <form action="?action=del" method="POST">  <tr bgcolor="f1f1f1"> 
    <td height="25" colspan="2" class="norightbuttonborder2"><div align="center" class="style1 STYLE1">社区短信管理</div></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td width="50%" height="25"><div align="right">删除多少天前的留言：( 填数字 )</div></td> 
    <td width="50%" height="25"><input name="ddname" type="text" class="wenbenkuang" size="20" onkeypress="return event.keyCode>=46&&event.keyCode<=57">
    如：&quot;1&quot; 为昨天以前,不包括昨天</td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="25"><div align="right">
        <input name="B1" type="submit" class="go-wenbenkuang" value=" 提 交 ">
      </div></td>
    <td height="25"><input name="B2" type="reset" class="go-wenbenkuang" value=" 重 置 "></td>
  </tr>
  </form> 
</table>
<%end if%>