Pstop.asp 808 B

123456789101112131415161718192021222324252627282930
  1. <!--#include file="../bdcommx/connxyz.asp"-->
  2. <%
  3. call log_chk()
  4. dim thex,act,myodr,Keyword
  5. thex=request("thex")
  6. act=request("act")
  7. myodr=request("myodr")
  8. Keyword=request("Keyword")
  9. Bid=request("Bid")
  10. Sid=request("Sid")
  11. if request("act")="stop" then
  12. Set rs=Server.Createobject("Adodb.Recordset")
  13. sql="select * from bdcp where cxp_id="&thex&""
  14. rs.open sql,conn,1,3
  15. rs("cxp_stop")=0
  16. rs.update
  17. rs.close
  18. set rs=nothing
  19. response.Redirect("Pmag.asp?Keyword="&Keyword&"&Bid="&Bid&"&Sid="&Sid&"")
  20. end if
  21. if request("act")="rstop" then
  22. Set rs=Server.Createobject("Adodb.Recordset")
  23. sql="select * from bdcp where cxp_id="&thex&""
  24. rs.open sql,conn,1,3
  25. rs("cxp_stop")=1
  26. rs.update
  27. rs.close
  28. set rs=nothing
  29. response.Redirect("Pmag.asp?Keyword="&Keyword&"&Bid="&Bid&"&Sid="&Sid&"")
  30. end if%>