<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%


mainpath="../../../data/iheeo_db.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(mainpath)
conn.Open connstr


set rs=server.CreateObject("adodb.recordset")
sql="select * from BJX_action where bookid="&request("bookid")&""  
rs.open sql,conn,1,3

If Not(rs.bof Or rs.eof) Then
 
if request.Cookies("bjx")("username")="" then
response.write "<script language=javascript>alert('对不起，您还没有登陆！');history.go(-1);</script>"
response.End
elseif  request.Cookies("bjx")("username")<>rs("username") then
response.write "<script language=javascript>alert('对不起，非法参数！');history.go(-1);</script>"
response.End
end if



   rs("zhuangtai")="2"
   rs.update
Response.Write "<p align=center>您已经支付成功，我们将立即处理您的订单！<script>window.setTimeout(""location.href='../../../Index.asp'"",1000);</script></p>"
Else 
   response.write "<script>alert('NO this order number ! Please contact website administrator !!');</script>"
End If 
rs.close
Set rs=Nothing 

%>

