<!--#include file="include/conn.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<%
'website:http://www.angelasp.com
' Angel工作室技术开发团队:QQ:815657032、QQ：709047174
' Copyright (C) Angel工作室 (http://www.angelasp.com).  All rights reserved
if Request.Cookies("bouser")("time")<>"" then
D_time = Request.Cookies("bouser")("time")
if datediff("s",D_time,now)<30 then
response.write "<script>alert('你的点击速度也快了吧？,请稍等会吧！');history.go(-1);</script>"
Response.End
end if
end if
	 
id=Int(request.QueryString("id"))
if id ="" then
response.Write "<script>alert('ID参数错误');history.back();</script>"
Response.End
end If
	 
msg_not = request.QueryString("msg_not")
msg_yes = request.QueryString("msg_yes")

if msg_yes<>"" then
sql1="update Message set msg_yes = msg_yes +1 where id="&id&""
conn.execute(sql1)
response.Write "<script>alert('支持！我也赞成你的看法！');location='index.asp';</script>"
Response.Cookies("bouser")("time") = now()
response.End
else if msg_not<>"" then
sql = "update Message set msg_not=msg_not+1 where id="&id&""
conn.execute(sql)
response.Write "<script>alert('成功砸出不太支持哦！');location='index.asp';</script>"
Response.Cookies("bouser")("time") = now()
response.End
end If
End If 
conn.close
set conn = nothing
%>