<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.Admin_Article_classmanage" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="inc/admin_style.css" rel="stylesheet" type="text/css" /><link href="inc/style.css" rel="stylesheet" type="text/css" />
<title><%=AppConst.SiteName%></title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {color: #FF0000}
-->
</style>
<script type="Text/JavaScript" language="javascript">
function del(strurl,msg){
if (confirm(msg)){
window.location=strurl
}
}
</script>
</head>

<body>
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="height:49">
<table style="height:22; width:100%" border="0" cellpadding="0" cellspacing="1">
        <tr class="topbg"> 
          <td style="height:22" align="center" class="topbg"><strong><%=C_sortname%>分类管理</strong></td>
        </tr>
      </table>
  <table style="width:100%"  border="0" align="center" cellpadding="0" cellspacing="0">
          
        <tr>
          <td style="height:27; width:30" align="center"><img src="<%=AppConst.SiteUrl%>/<%=AppConst.Skinpath%>/gojump01.gif" width="16" height="16" /></td>
          <td><a href="Article_add.aspx?channelid=<%=channelid%>">添加</a> | <a href="Article_Manage.aspx?channelid=<%=channelid%>">全部</a> | <a href="Article_Manage.aspx?channelid=<%=channelid%>&passed=0">未审</a> | <a href="Article_Manage.aspx?channelid=<%=channelid%>&passed=1">已审</a> | <a href="Article_classmanage.aspx?channelid=<%=channelid%>">栏目</a> |</td>
          <td align="right"><table style="height:19"  border="0" cellpadding="0" cellspacing="0">
			<form name="search" method="get" action="Article_Manage.aspx">
              <tr>
                <td align="right">关键字：</td>
                <td><input name="K" type="text" id="K" size="10" /></td>
                <td>类型：</td>
                <td>
                  <select name="C" id="C">
                    <option value="0">所有<%=C_sortname%></option>
                    <%=GetChannelBigClassOptions(Channeltype, Channelid)%>
                  </select>                </td>
                <td align="right">排序：</td>
                <td>
                  <select name="order" id="order">
                    <option value="1">先后加入顺序</option>
                    <option value="2">点击率</option>
                  </select>
				  <input name="channelid" type="hidden" id="channelid" value="<%=channelid%>" />
                  <input type="submit" name="Submit" value="提交" /></td>
              </tr>
            </form>
          </table></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td><table style="width:100%" border="0" align="center" cellpadding="3" cellspacing="1" class="border">
      <tr class="Title">
        <td style="height:25; width:20%" align="center"><div align="left"><strong> 　栏目名称 | <a href="Article_bigclassadd.aspx?channelid=<%=channelid%>"><font color="#FFFFFF">添加栏目</font></a> |</strong></div></td>
        <td style="width:12%" align="center">标签</td>
        <td style="height:20; width:5%" align="center"><div align="center">显示</div></td>
        <td style="width:5%" align="center"><div align="center">条数</div></td>
        <td style="width:5%" align="center"><div align="center">字数</div></td>
        <td style="width:5%" align="center"><div align="center">导图</div></td>
        <td style="width:5%" align="center"><div align="center">日期</div></td>
        <td style="width:10%" align="center"><div align="center">日期格式</div></td>
        <td style="width:14%" align="center">排序</td>
        <td style="width:19%" align="center"><strong>操作选项</strong></td>
      </tr>
      <%Do While Not rsBigClass.eof%>
      <form name="form1" method="post" action="?action=edit&channelid=<%=channelid%>&id=<%=rsBigClass("id").Value%>">
      <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
        <td style="height:25"><img src="Images/tree_folder4.gif" width="15" height="15" /><%=rsBigClass("ClassName").Value%></td>
        <td style="height:25">&nbsp;</td>
        <td style="height:25" align="center">&nbsp;</td>
        <td style="height:25" align="center">&nbsp;</td>
        <td style="height:25" align="center"><div align="center"></div></td>
        <td style="height:25" align="center">
            <div align="center"></div></td>
        <td style="height:25" align="center">
          <div align="center"></div></td>
        <td style="height:25" align="center"><div align="center">
          <div align="center"></div>
        </div></td>
        <td style="height:25" align="center"><input name="ordernum" type="text" id="PBC_ordernum" size="4" value="<%=rsBigClass("ordernum").Value%>" />
          <input type="submit" name="Submit" value="修改" /></td>
        <td style="height:25" align="center"><div align="right"><a href="Article_Smallclassadd.aspx?channelid=<%=channelid%>&Bigclassid=<%=rsBigClass("id").Value%>">添加子栏目</a> | <a href="Article_BigClassEdit.aspx?id=<%=rsBigClass("id").Value%>&channelid=<%=channelid%>">修改</a> | <a href="#" onclick="del('Article_action.aspx?id=<%=rsBigClass("id").Value%>&action=B_del&channelid=<%=channelid%>','你确定要删除该类吗？')">删除</a></div></td>
      </tr></form>
      <%  rsSmallClass = DBMS.Execute("Select * From " & tableName & "smlclass Where Bigclassid='" & rsBigClass("id").Value & "'")
          Do While Not rsSmallClass.eof%>
      <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
        <td style="height:25">&nbsp;&nbsp;<img src="Images/tree_folder3.gif" width="15" height="15" /><%=rsSmallClass("Smallname").Value%></td>
        <td style="height:25">&nbsp;</td>
        <td style="height:25" align="center">&nbsp;</td>
        <td style="height:25" align="center">&nbsp;</td>
        <td style="height:25" align="center">&nbsp;</td>
        <td style="height:25" align="center">
          <div align="center"></div></td>
        <td style="height:25" align="center">
          <div align="center"></div></td>
        <td style="height:25" align="center"><div align="center"></div></td>
        <td style="height:25" align="center"><div align="right"></div></td>
        <td style="height:25" align="center"><div align="right"><a href="Article_Smallclassedit.aspx?id=<%=rsSmallClass("id").Value%>&channelid=<%=channelid%>&Bigclassid=<%=rsBigClass("id").Value%>">修改</a> | <a href="#" onclick="del('Article_action.aspx?id=<%=rsSmallClass("id").Value%>&Bigclassid=<%=rsBigClass("id").Value%>&action=S_del&channelid=<%=channelid%>','你确定要删除该子栏目吗？一旦删除不可恢复！')"><span class="style1">删除</span></a></div></td>
      </tr>
      <%  rsSmallClass.movenext() : Loop
      rsSmallClass.close() : rsSmallClass = Nothing
      rsBigClass.movenext() : Loop%>
    </table>
    </td>
  </tr>
</table>
</body>
<%Page_Loaded()%>
</html>
