Ntj.asp 815 B

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