<!--#include file="conn.asp"-->
<!--#include file="inc/md5.asp"-->
<!--#include file="inc/htmlencode2.asp"-->
<!--#include file="inc/ubbcode.asp"-->
<%
userid=request.cookies("clubuser_id")
if request("act")="y" then
sender=request.cookies("name")
accepter=request("postuser")

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 ")

str="insert into sms(title,content,sender,accepter,IsNew) values('"&title&"','"&content&"','"&sender&"','"&accepter&"',0)"
conn.execute(str)
   response.write "<script language='javascript'>"
   response.write "alert('发送成功！');"
   response.write "history.go(-2);"
   response.write "</script>"
   response.end
conn.close
end if
%>
<!--#include file="memberinfo.asp"-->
<html><head><meta http-equiv=content-type content="text/html; charset=gb2312">
</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>
<center>
<title><%=username%>的短信管理中心</title>
<link rel="stylesheet" type="text/css" href="<%=cssfile%>">
<!--#include file="usernav.asp" -->
<!--#include file="bokerhead.asp" -->
<div class="stage">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="layout">
<tr>
<td valign="top" class="c2t1">
<div id="m_blog" class="modbox">
              <table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
                <tr valign="middle"> 
                  <td height="40" colspan="2" align="left" class="f14"><div class="opt"> 
                      <div align="center"><strong>发送短信</strong></div>
                    </div></td>
                </tr>
                <tr> 
                  <td height="1" colspan="2" bgcolor="#336699" class=new14><spacer height="1" type="block"></td>
                </tr>
                <form name="form2" method="post" action="" style="MARGIN-BOTTOM: 0px" onsubmit="return check(this)">
                  <tr> 
                    <td width="10%" height="35"> <div align="left">用户：</div></td>
                    <td width="90%"><input name="postuser" type="text" id="postuser" value="<%=request("postuser")%>" readonly></td>
                  </tr>
				  <tr> 
                    <td width="10%" height="35"> <div align="left">标题：</div></td>
                    <td width="90%"><input name="title" type="text" id="title" value="" size="35"></td>
                  </tr>
                  <tr> 
                    <td height="15" valign="top">内容: </td>
                    <td height="15" valign="top"><textarea name="content" cols="50" rows="20" id="content"></textarea></td>
                  </tr>
                  <tr> 
                    <td height="35" valign="top">&nbsp;</td>
                    <td height="15" valign="middle">
					  <input name="act" type="hidden" id="act" value="y"> 
                      <input name="id" type="hidden" id="id" value="<%=id%>">  
                      <input type="submit" name="Submit" value="发送短信"></td>
                  </tr>
                </form>
              </table>
              <br>
            </div>

</td>
</tr></table>
</div>
</div>
<br><center>
    <!--#include file="tail.asp" -->
  </center>
</center>
</body>
</html>
<%closedb%>