<%@language=vbscript codepage=936 %>
<!--#include file="../../Inc/conn.asp"-->
<!--#include file="../admin.asp"-->
<!-- #include file="../Inc/Head.asp" -->
<%
dim sql,rsBigClass,rsSmallClass,ErrMsg
set rsBigClass=server.CreateObject("adodb.recordset")
rsBigClass.open "Select * From BigClass_New Order By OrderID,BigClassID",conn,1,3
%>
<script language="JavaScript" type="text/JavaScript">
function ConfirmDelBig()
{
   if(confirm("确定要删除此大类吗？删除此大类同时将删除所包含的小类和该类下的所有新闻，并且不能恢复！"))
     return true;
   else
     return false;
	 
}

function ConfirmDelSmall()
{
   if(confirm("确定要删除此小类吗？删除此小类同时将删除该类下的所有新闻，并且不能恢复！"))
     return true;
   else
     return false;
	 
}
</script>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000" class="table_southidc">
  <tr>
    <td height="25" colspan="2" align="center"><strong>栏目名称</strong></td>
    <td width="486" height="25" align="center"><strong>操作选项</strong></td>
  </tr>
  <%
	do while not rsBigClass.eof
%>
  <tr bgcolor="#F2F8FF" class="tdbg">
    <td width="461" height="22" bgcolor="#F2F8FF" class="tr_southidc"><img src="../Images/tree_folder4.gif" width="19" height="18"><%=rsBigClass("BigClassName")%></td>
    <td width="34" align="center" bgcolor="#F2F8FF" class="tr_southidc"><%if rsBigClass("IsShow")=True Then Response.Write("<font color='#A2A2A2'>显</font>") Else Response.Write("<font color='#D7D7D7'>隐</font>") End IF%></td>
    <td align="left" bgcolor="#F2F8FF" class="tr_southidc" style="padding-right:10">&nbsp;<a href="News_ClassAddSmall.asp?BigClassID=<%=rsBigClass("BigClassID")%>"><font color="#FF0000">添加二级分类</font></a> | <a href="News_ClassModifyBig.asp?BigClassID=<%=rsBigClass("BigClassID")%>">修改</a> | <a href="News_ClassDelBig.asp?BigClassID=<%=rsBigClass("BigClassID")%>" onClick="return ConfirmDelBig();">删除</a></td>
  </tr>
  <%
	  set rsSmallClass=server.CreateObject("adodb.recordset")
	  rsSmallClass.open "Select * From SmallClass_New Where BigClassName='" & rsBigClass("BigClassName") & "' Order By OrderID",conn,1,1
	  if not(rsSmallClass.bof and rsSmallClass.eof) then
		do while not rsSmallClass.eof
	%>
  <tr bgcolor="#EAEAEA" class="tdbg">
    <td height="22" bgcolor="#EAEAEA" class="td_southidc">&nbsp;&nbsp;<img src="../Images/tree_folder3.gif" width="19" height="18"><%=rsSmallClass("SmallClassName")%></td>
    <td height="22" align="center" bgcolor="#EAEAEA" class="td_southidc">
      <%if rsSmallClass("IsShow")=True Then Response.Write("<font color='#A2A2A2'>显</font>") Else Response.Write("<font color='#D7D7D7'>隐</font>") End IF%>
    </td>
    <td align="left" bgcolor="#EAEAEA" class="td_southidc" style="padding-right:10">&nbsp;<a href="News_ClassModifySmall.asp?SmallClassID=<%=rsSmallClass("SmallClassID")%>">修改</a> | <a href="News_ClassDelSmall.asp?BigClassID=<%=rsSmallClass("BigClassID")%>&SmallClassID=<%=rsSmallClass("SmallClassID")%>" onClick="return ConfirmDelSmall();">删除</a></td>
  </tr>
  <%
			rsSmallClass.movenext
		loop
	  end if
	  rsSmallClass.close
	  set rsSmallClass=nothing	
	  rsBigClass.movenext
	loop
%>
</table>
<%
rsBigClass.close
set rsBigClass=nothing
%>

<span class="red" style="font-weight: bold">注:</span>   为了不影响系统正常运行,默认项目请不要删除,如需删除请联系制作者.
<!-- #include file="../Inc/Foot.asp" -->