ZPstop.asp 825 B

12345678910111213141516171819202122232425262728293031
  1. <!--#include file="../bdcommx/connxyz.asp"-->
  2. <%call log_chk()
  3. call passChk()
  4. act=request("act")
  5. thex=request("thex")
  6. if act="thes" then
  7. Set rs=Server.Createobject("Adodb.Recordset")
  8. sql="select * from adzp where zp_id="&thex&""
  9. rs.open sql,conn,1,3
  10. rs("zp_sta")=1
  11. rs.update
  12. rs.close
  13. set rs=nothing
  14. ''''''''''''''''''''''''''''保留关联空位
  15. response.write"<SCRIPT language=JavaScript>alert('操作成功!');"
  16. response.write"this.location.href='ZPmag.asp';</SCRIPT>"
  17. end if
  18. if act="thek" then
  19. Set rs=Server.Createobject("Adodb.Recordset")
  20. sql="select * from adzp where zp_id="&thex&""
  21. rs.open sql,conn,1,3
  22. rs("zp_sta")=0
  23. rs.update
  24. rs.close
  25. set rs=nothing
  26. ''''''''''''''''''''''''''''保留关联空位
  27. response.write"<SCRIPT language=JavaScript>alert('操作成功!');"
  28. response.write"this.location.href='ZPmag.asp';</SCRIPT>"
  29. end if
  30. %>