<%qx="11"%>
<!--#include file="../login/0.asp"-->
<!--#include file="../../mycartconn/conn.asp"-->
<%
home=request("home")
If home="" Then home="guanli.asp"
Select case request("del")
   case "a"
       conn.execute("Delete duanxin where id="&request("id")&"")
	   Response.redirect home&"?page="&request("page")&""
   case "b"
	   Select Case home
	   Case "guanli.asp"
	     conn.execute("Delete duanxin where lx=1 and datediff(d,sj,getdate())>"&request("sj")&"")
	   Case "guanli_1.asp"
	     conn.execute("Delete duanxin where lx=5 and datediff(d,sj,getdate())>"&request("sj")&"")
	   Case "guanli_2.asp"
         conn.execute("Delete duanxin where lx=6 and datediff(d,sj,getdate())>"&request("sj")&"")
	   End select
       Response.write "<script>alert(""删除成功!"");location.href="""&home&""";</script>"
   case "c"
	   Select Case home
	   Case "guanli.asp"
	     conn.execute("Delete duanxin where lx=1 and name2='"&request("huiyuan")&"'")
	   Case "guanli_1.asp"
	     conn.execute("Delete duanxin where lx=5 and name2='"&request("huiyuan")&"'")
	   Case "guanli_2.asp"
         conn.execute("Delete duanxin where lx=6 and name2='"&request("huiyuan")&"'")
	   End select
       Response.write "<script>alert(""删除成功!"");location.href="""&home&""";</script>"
End Select
conn.close
set conn=nothing
%>