<!--#include file="../here99login/0.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<!--#include file="../conn/zkconn.asp" -->
<div align="center"><a href="#" OnClick="Javascript:window.open('tianjia-lb.asp?action=Add','','width=350,height=100,top=10,left=180')">&gt;&gt;新增大类别</a>&nbsp;(点击大类别可出现小类别)<br>
 
        <%
            sql2 = "select * from lb order by lbid"
            set rs2 = conn.execute(sql2)
	    do while not rs2.Eof
%>
      </div>
<SCRIPT LANGUAGE=javascript>
var tt='start';
var ii='start';
function turnit(ss,bb) {

  if (ss.style.display=="none") {
    if(tt!='start') tt.style.display="none";
    if(ii!='start') ii.src="";
    ss.style.display="";
    tt=ss;
    ii=bb;
    bb.src="";
  }
  else {
    ss.style.display="none"; 
    bb.src="";
  }
}
</SCRIPT>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="3">
  <tr> 
    <td width="320" height="18" bgcolor="#CCCCCC" vAlign=middle  id=tag<%=rs2("lbid")%> 
    style='CURSOR: hand' onclick=turnit(Content<%=rs2("lbid")%>,tag<%=rs2("lbid")%>);  language=JScript>&nbsp;→<%=rs2("lbname")%></td>
    <td width="180" height="18" align="center" bgcolor="#CCCCCC"> <a href="#" OnClick="Javascript:window.open('xiugai-lb.asp?action=Aedit&id=<%=rs2("lbid")%>','','width=350,height=100,top=10,left=180')">编辑</a> 
      | <a href="javascript:ConfirmDele(<%=rs2("lbid")%>)">删除</a> 
      | <a href="#" OnClick="Javascript:window.open('tianjia-lb.asp?action=Ndd&lbid=<%=rs2("lbid")%>','','width=350,height=100,top=10,left=180')">新增二类别</a> 
    </td>
  </tr>
  <tr> 
    <td height="18" colspan="2" id=Content<%=rs2("lbid")%> style='DISPLAY: none' vAlign=center>      <%
            sql1 = "select * from xlb where lbid="&rs2("lbid")&" order by xlbid"
            set rs1 = conn.execute(sql1)
            do while not rs1.EOF 
            %>
      
<table width="500" border="0" align="center" cellpadding="0" cellspacing="3">
  <tr> 
    <td height="18" width="12%">&nbsp;</td>
          <td height="18" bgcolor="#f7f7f7" width="250" vAlign=middle  id=tag<%=rs2("lbid")%> 
    style='CURSOR: hand' onclick=turnit(Content<%=rs2("lbid")%>,tag<%=rs2("lbid")%>);  language=JScript>&nbsp;→&nbsp;<%=rs1("xlbname")%></td>
    <td width="150" height="18" align="center" bgcolor="#f7f7f7"> <a href="#" OnClick="Javascript:window.open('xiugai-lb.asp?action=Nedit&id=<%=rs1("xlbid")%>','','width=350,height=100,top=10,left=180')">编辑</a> 
      | <a href="javascript:ConfirmDele1(<%=rs1("xlbid")%>)">删除</a> 
      | <a href="#" OnClick="Javascript:window.open('tianjia-lb.asp?action=sdd&lbid=<%=rs1("lbid")%>&xlbid=<%=rs1("xlbid")%>','','width=350,height=100,top=10,left=180')">新增小类别</a> 
    </td>
  </tr>
  <tr> 
    <td height="18" colspan="3"><%
            sql3 = "select * from slb where xlbid="&rs1("xlbid")&" order by slbid"
            set rs3 = conn.execute(sql3)
            do while not rs3.EOF 
            %>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="3">
  <tr> 
    <td height="18" width="27%">&nbsp;</td>
                <td height="18" bgcolor="#CCCCCC" width="300">&nbsp;→&nbsp;<%=rs3("slbname")%></td>
    <td width="100" height="18" align="center" bgcolor="#CCCCCC"> <a href="#" OnClick="Javascript:window.open('xiugai-lb.asp?action=sedit&id=<%=rs3("slbid")%>','','width=350,height=100,top=10,left=180')">编辑</a> 
      | <a href="javascript:ConfirmDele2(<%=rs3("slbid")%>)">删除</a> 
    </td>
  </tr>
</table>
<%
		  rs3.MoveNext
		  loop
                  rs3.Close 
                  set rs3=nothing%></td>
  </tr>
</table>
<%
		  rs1.MoveNext
		  loop
                  rs1.Close 
                  set rs1=nothing %></td>
  </tr>
</table>

<%
 rs2.MoveNext 
        Loop
%>
<script language="JavaScript">
function ConfirmDele(unid)     
   {     
      if(confirm("\n你确认删除吗？"))     
      {     
        location.href="del-leibie.asp?action=lbdel&id="+unid;
      }        
   } 
function ConfirmDele1(unid)     
   {     
      if(confirm("\n你确认删除吗？"))     
      {     
        location.href="del-leibie.asp?action=xlbdel&id="+unid;
      }        
   } 
function ConfirmDele2(unid)     
   {     
      if(confirm("\n你确认删除吗？"))     
      {     
        location.href="del-leibie.asp?action=slbdel&id="+unid;
      }        
   } 
</script>
</body>
</html>
<%rs2.Close
set rs2=nothing%>