⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 default.asp

📁 亿众购物系统 一套设计完善、高效的web商城解决方案
💻 ASP
字号:
<!--#include file="../Session.asp"-->
<%
dim HomePage
if request("Act")<>"" then
	if request("Act")="True" then
		HomePage=False
	else
		HomePage=True
	end if
	conn.execute("Update BigClass set HomePage ="&HomePage&" where BigId="&Request("BigId")&"")
	Response.redirect "Default.asp"
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/site.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
function ConfirmDele1(unid)     
   {     
      if(confirm("\n你确认删除吗?\n\n此操作将删除此类别下的所有商品!"))     
      {     
        location.href="Del.asp?action=Fdel&id="+unid;
      }        
   } 
function ConfirmDele2(unid)     
   {     
      if(confirm("\n你确认删除吗?\n\n此操作将删除此类别下的所有商品!"))     
      {     
        location.href="Del.asp?action=Sdel&id="+unid;
      }        
   } 
function ConfirmDele3(unid)     
   {     
      if(confirm("\n你确认删除吗?"))     
      {     
        location.href="Del.asp?action=Tdel&id="+unid;
      }        
   } 
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="0">
  <tr> 
    <td width="100%" height="40" align="center" vAlign=middle class="tdstyle"><a href="../Sorry.asp">新增大类别</a>
      | <a href="Edit.asp">大类排序</a> | <a href="Merge.asp">合并与移动类别</a> </tr>
 </td>
</table>
<br>
	<%
   sql2 = "select * from BigClass order by BigId"
   set rs2 = conn.execute(sql2)
   do while not rs2.Eof
   %>
<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="90%" border="0" align="center" cellpadding="1" cellspacing="0">
  <tr> 
    <td width="50%" class="tdstyle" height="18" vAlign=middle  id=tag<%=rs2("BigId")%> 
    style='CURSOR: hand' onclick=turnit(Content<%=rs2("BigId")%>,tag<%=rs2("BigId")%>);  language=JScript>&nbsp;→<%=rs2("BCName")%></td>
    <td width="50%" class="tdstyle" height="18" align="center"> 显示在首页:
	<%if rs2("HomePage")=True  then%>
	<input name="submit2" type="button" class="button4" value="是" onClick="if(confirm('您确定要改变吗?')) location.href='?Act=<%=rs2("HomePage")%>&BigId=<%=rs2("BigId")%>'">
	<%else%>
	<input name="submit3" type="button" class="button5" value="否" onClick="if(confirm('您确定要改变吗?')) location.href='?Act=<%=rs2("HomePage")%>&BigId=<%=rs2("BigId")%>'">
	<%end if%>
	| <input name="submit3" type="button" class="button2" value="编 辑" onClick="window.location='../Sorry.asp'">  
    | <input name="submit3" type="button" class="button2" value="删 除" onClick="javascript:ConfirmDele1(<%=rs2("BigId")%>)">
    | <input name="submit3" type="button" class="button2" value="增加二类" onClick="window.location='../Sorry.asp'">
    </td>
  </tr>
  <tr> 
    <td height="18" colspan="2" id=Content<%=rs2("BigId")%> style='DISPLAY: none' vAlign=center>      <%
            sql1 = "select * from SmallClass where BigId="&rs2("BigId")&" order by SmallId"
            set rs1 = conn.execute(sql1)
            do while not rs1.EOF 
            %>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="0">
        <tr> 
    <td height="18" width="10%">&nbsp;</td>
          <td height="18" class="tdstyle" width="40%" vAlign=middle  id=tag<%=rs2("BigId")%> 
    style='CURSOR: hand' onclick=turnit(Content<%=rs2("BigId")%>,tag<%=rs2("BigId")%>);  language=JScript>&nbsp;→&nbsp;<%=rs1("SCName")%></td>
    <td width="50%" height="18" align="center"  class="tdstyle">
	 <input name="submit3" type="button" class="button2" value="编 辑" onClick="window.location='../Sorry.asp'">
  | <input name="submit3" type="button" class="button2" value="删 除" onClick="javascript:ConfirmDele2(<%=rs1("SmallId")%>)">
  | <input name="submit3" type="button" class="button2" value="增加三类" onClick="window.location='../Sorry.asp'">
    </td>
  </tr>
  <tr> 
    <td height="18" colspan="3">
		<%sql3 = "select * from ThirdClass where SmallId="&rs1("SmallId")&" order by ThirdId"
            set rs3 = conn.execute(sql3)
            do while not rs3.EOF 
          %>
		<table width="100%" border="0" align="center" cellpadding="1" cellspacing="0">
           <tr> 
             <td height="18" width="20%">&nbsp;</td>
             <td height="18"  class="text" width="30%">&nbsp;→&nbsp;<%=rs3("TCName")%></td>
             <td width="50%" height="18" align="center"  class="tdstyle"> 
              <input name="submit3" type="button" class="button2" value="编 辑" onClick="window.location='../Sorry.asp'">
           | <input name="submit3" type="button" class="button2" value="删 除" onClick="javascript:ConfirmDele3(<%=rs3("ThirdId")%>)">
            </td>
  		</tr>
	</table>
	<%rs3.MoveNext
	loop
	rs3.Close %>
	</td>
  </tr>
</table>
<%rs1.MoveNext
	loop
   rs1.Close %>
   </td>
  </tr>
</table>
<%rs2.MoveNext 
      Loop
     rs2.Close%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -