keep.asp
上传用户:btntkt
上传日期:2021-04-16
资源大小:5296k
文件大小:1k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

DOS

  1. <!--#include file="conn.asp"-->
  2. <%
  3. dim cls
  4. if session("admin")="" then
  5. Response.Redirect("admin.asp")
  6. else
  7. if session("flag")<>"0" then
  8. cls = Instr(session("flag"), "manprofig")
  9. if cls <= 0 then
  10. %>
  11. <script language="javascript">
  12. if (confirm("您的操作权限不够,系统拒绝你的访问,请点确定返回,或者点取消退出重新登录"))
  13.   location.href="login.asp";
  14. else
  15.   location.href="index.asp";
  16. </script>
  17. <%
  18. end if
  19. end if
  20. end if
  21. %>
  22. <%
  23. action=request("action")
  24. id=request("id")
  25. set rs=server.createobject("adodb.recordset")
  26. if action="sj" then 
  27. rs.open "select  * from products where bookid="&id ,conn,1,3
  28. rs("zhuangtai")=0
  29. rs.update
  30. response.redirect request.servervariables("http_referer")
  31. elseif action="xj" then
  32. rs.open "select  * from products where bookid="&id ,conn,1,3
  33. rs("zhuangtai")=1
  34. rs.update
  35. response.redirect request.servervariables("http_referer")
  36. end if 
  37. %>