<!--#include file="conn.asp"-->
<%

if Trim(Request("ID"))<>"" then
ID=SafeRequest("ID",1)
mSql="select * from welcomemesbuy where ID="&ID
set mRs=conn.execute(mSql)
if not (mRs.eof and mRs.bof) then
	Content=mRs("Content")
	UserID=mRs("UserID")
	PublishTime=mRs("PublishTime")
	mSql="Insert Into MesDetail(MainID,UserID,Content,PublishTime,ReplyContent) values('"&ID&"','"&UserID&"','"&Content&"','"&PublishTime&"','"&FormatSQL(SafeRequest("Content",0))&"')"
	conn.execute(mSql)
end if
else
	mSql="Insert Into MesDetail(UserID,PublishTime,ReplyContent) values('"&Session("uID")&"','"&Formatdatetime(now,2)&"','"&FormatSQL(SafeRequest("Content",0))&"')"
	conn.execute(mSql)		
end if
mRs.close
set mRs=nothing
%>
<link href="../welcomebuycss.css" rel="stylesheet" type="text/css">
<body>
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">站内短信发送成功！</td>
  </tr>
  <tr>
    <td align="center"><a href="#" onClick="window.close();">关 闭</a> </td>
  </tr>
</table>
</body>