<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<!-- #include file="Inc/Head.asp" -->
<%
response.cachecontrol="no-cache"
%>
<%
dim sql,rsBigClass,rsSmallClass,ErrMsg
set rsBigClass=server.CreateObject("adodb.recordset")
rsBigClass.open "Select * From BigClass_New",conn,1,3
%>
<script language="JavaScript" type="text/JavaScript">
function checkBig()
{
  if (document.form1.BigClassName.value=="")
  {
    alert("大类名称不能为空！");
    document.form1.BigClassName.focus();
    return false;
  }
}
function checkSmall()
{
  if (document.form2.BigClassName.value=="")
  {
    alert("请先添加大类名称！");
	document.form1.BigClassName.focus();
	return false;
  }

  if (document.form2.SmallClassName.value=="")
  {
    alert("小类名称不能为空！");
	document.form2.SmallClassName.focus();
	return false;
  }
}
function ConfirmDelBig()
{
   if(confirm("确定要删除此大类吗？删除此大类同时将删除所包含的小类和该类下的所有信息，并且不能恢复！"))
     return true;
   else
     return false;
	 
}

function ConfirmDelSmall()
{
   if(confirm("确定要删除此小类吗？删除此小类同时将删除该类下的所有信息，并且不能恢复！"))
     return true;
   else
     return false;
	 
}
</script>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="150" align="center" valign="top" bgcolor="#A0CCD8"><!-- #include file="adminleft.asp" --></td>
    <td align="center" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td align="center" valign="top"><table width="100%" height="0"  border="0" cellpadding="5" cellspacing="0">
            <tr>
              <td height="24" background="image/usercenter_3.jpg">
                <div align="center"><a href="ClassManage.asp"><strong><font color="#FFFFFF">新 闻 类 别 设 置</font></strong></a> </div></td>
            </tr>
          </table>
          <br>
            <%call man_r("News_ClassAddBig.asp","添加信息一级分类","Info_classBig")%><br>
          <br> 
      <table width="100%" border="0" cellpadding="0" cellspacing="1">
              <tr> 
          <td height="30" align="center" bgcolor="#C2DAE1"><strong>栏目名称</strong></td>
          <td align="center" bgcolor="#C2DAE1"><strong>栏目类别</strong></td>
          <td align="center" bgcolor="#C2DAE1"><strong>外链接</strong></td>
          <td height="30" align="center" bgcolor="#C2DAE1"><strong>操作选项</strong></td>
        </tr>
        <%
	do while not rsBigClass.eof
%>
        <tr bgcolor="#EFEEE9" class="tdbg"> 
                <td height="22" colspan="3"><img src="Image/tree_folder4.gif" width="15" height="15"><font color="#bbbbbb"><%=rsBigClass("BigClassID")%></font>&nbsp;<%=rsBigClass("BigClassName")%></td>
          <td align="right" style="padding-right:10"><%call man_r("News_ClassAddSmall.asp?BigClassName="&rsBigClass("BigClassName")&"","<font color='#FF0000'>添加二级分类</font>","Info_classSmall")%>
            | <%call man_r("News_ClassModifyBig.asp?BigClassID="&rsBigClass("BigClassID")&"","修改","Info_classMod")%> 
            | <%call man_rdel("News_ClassDelBig.asp?BigClassName="&rsBigClass("BigClassName")&"","删除","Info_classMod")%> </td>
        </tr>
        <%
	  set rsSmallClass=server.CreateObject("adodb.recordset")
	  rsSmallClass.open "Select * From SmallClass_New Where BigClassName='" & rsBigClass("BigClassName") & "' order by paixv asc,SmallClassID asc",conn,1,1
	  if not(rsSmallClass.bof and rsSmallClass.eof) then
		do while not rsSmallClass.eof
	%>
        <tr bgcolor="#EFEEE9" class="tdbg"> 
                <td height="22">&nbsp;&nbsp;<img src="Image/tree_folder3.gif" width="15" height="15"><font color="#bbbbbb"><%=rsSmallClass("SmallClassID")%></font>&nbsp;<%=rsSmallClass("SmallClassName")%>&nbsp;&nbsp;<%call man_r("setclassSmallup.asp?SmallClassID="&rsSmallClass("SmallClassID")&"","↑","Info_classMod")%>
                  <%call man_r("setclassSmalldown.asp?SmallClassID="&rsSmallClass("SmallClassID")&"","↓","Info_classMod")%>
<font color="#bbbbbb"> 当前排序：(<%=rsSmallClass("paixv")%>)</font></td>
                <td height="22"><div align="center">
				<%
				conclass=rsSmallClass("conclass")
				Select Case conclass
				Case "简介类"
				response.Write "<font color='#990099'>"&conclass&"</font>"
				Case "信息类"
				response.Write "<font color='#FF3300'>"&conclass&"</font>"
				Case "图片类"
				response.Write "<font color='#336600'>"&conclass&"</font>"
				Case "外链接"
				response.Write "<font color='#FF00FF'>"&conclass&"</font>"
				end Select
				%></div></td>
                <td height="22"><div align="center">
				<%
				if rsSmallClass("wlink")="No" then
				response.Write("<font color=#bbbbbb>No</font>")
				else
				response.Write("<a href='"&rsSmallClass("wlink")&"' target='_blank'>查看</a>")
				end if
				%>
				</div></td>
                <td align="right" bgcolor="#EFEEE9" style="padding-right:10">
				<%call man_r("News_ClassModifySmall.asp?SmallClassID="&rsSmallClass("SmallClassID")&"","修改","Info_classMod")%>
|
<%call man_rdel("News_ClassDelSmall.asp?SmallClassID="&rsSmallClass("SmallClassID")&"&SmallClassName="&rsSmallClass("SmallClassName")&"","删除","Info_classMod")%></td>
        </tr>
        <%
			rsSmallClass.movenext
		loop
	  end if
	  rsSmallClass.close
	  set rsSmallClass=nothing	
	  rsBigClass.movenext
	loop
%>
      </table>
	  <!----------------类别管理----------------------->
        </td>
      </tr>
    </table>
      <%
rsBigClass.close
set rsBigClass=nothing
%>
      <p>&nbsp;</p></td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->