<!--#include file="conn.asp" -->
<!--#include file="seeion.asp" -->
<% 
id=request("id")
reply_body=request.form("reply_body")
	if id="" or not isnumeric(id) then
Response.Write "<script>alert('参数错误！');history.go(-1);</script>" 
	Response.End()
	end if
	SQL="Select * from book where id="&id
	set rs=server.createobject("adodb.recordset")
	rs.open SQL,conn,1,3
	if rs.eof and rs.bof then
Response.Write "<script>alert('参数不正确，ID值不存在！');history.go(-1);</script>" 
	Response.End()
	end if
if reply_body=""  then 
response.Write("<script language=javascript>alert('请输入回复内容');history.go(-1)</script>") 
response.end 
end if
rs("reply_body")=reply_body
rs("reply_date")=now()
rs.update 
rs.close 
response.write "<script>alert('恭喜你，留言回复成功！');window.location.href='manage_gbook.asp';</script>" 

%> 
