<%@ page language="C#" autoeventwireup="true" inherits="admin_Class_Table, App_Web_class_table.aspx.fdf7a39c" smartnavigation="true" %>

<%@ Register Src="yanz.ascx" TagName="yanz" TagPrefix="uc1" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>栏目管理</title>
    <link href="images/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<script language="javascript" type="text/javascript"> 
function selcheck(id) {
   var e =document.getElementById(id);
   var objs = e.getElementsByTagName("input");
   if (e.checked){
      e.checked = false;
      for(var i=0; i<objs.length; i++) {
         if(objs[i].type.toLowerCase() == "checkbox" )
         objs[i].checked = false;
      }
   }   else   {
      e.checked = true;
      for(var i=0; i<objs.length; i++) {
         if(objs[i].type.toLowerCase() == "checkbox" )
         objs[i].checked = true;
      }
   }
}
</script>

     <div id="frame_Toolbar" class="toolbarBg"> 
		<div style="float:left">
            <uc1:yanz ID="Yanz1" runat="server" />
            <a href="javascript:self.history.back();" class="icoBtn_ct"><span class="btnIco btnBack"></span><span class="btnTxt">返回</span></a><a href="javascript:self.location.reload();" class="icoBtn_ct"><span class="btnIco btnReload"></span><span class="btnTxt">刷新</span></a> 
         <span class="split ftSplit" ></span></div>
	    <div id="guide"> 您现在的位置：内容管理 >> <a href="Class_Table.aspx?Model_id=<%=Request.QueryString["Model_id"].ToString() %>">栏目管理</a><asp:Literal ID="Literal1" runat="server"></asp:Literal></div>
		
	    <div class="pageInfo right light_gray">[<a href='Class_Table_add.aspx?Model_id=<%=Request.QueryString["Model_id"].ToString() %>&classid=<%=classid %>' class="light_bOrange">添加栏目</a>]&nbsp;
            <asp:TextBox  ID="TextBox1" runat="server"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" CssClass="button" OnClick="Button1_Click1"
                Text="查找" /></div>
		
    </div>
	<div id="content">
     <table class="cTable table tCenter">
	    <tr class="cTitle toolbarBg" id="Title">
		    <td width="6%"><span class="checkbox"><input type="checkbox" name="chkall" onclick="selcheck('content')" /></span></td>
		    <td width="8%"><span class="split ctSplit"></span><div>编号</div></td>
		    <td><span class="split ctSplit"></span><div>名称</div></td>
		    <td width="10%"><span class="split ctSplit"></span><div>列表模板</div></td>
		    <td width="10%"><span class="split ctSplit"></span><div>内容模板</div></td>
		    <td width="10%"><span class="split ctSplit"></span><div>栏目路径</div></td>
			<td width="10%"><span class="split ctSplit"></span><div>分类</div></td>
			<td width="20%"><span class="split ctSplit"></span><div>操作</div></td>
	    </tr>
	 </table>
	<table class="cTable table tCenter" cellspacing="0" border="0" style="border-collapse:collapse;">
	     <asp:Repeater ID="Repeater1" runat="server">
                 <ItemTemplate>
		<tr>
			<td align="center" style="width:6%;white-space:nowrap;">
                <input type="checkbox" name="chk" value=" <%#DataBinder.Eval(Container.DataItem, "id")%>" />
			</td>
			<td align="center" style="white-space:nowrap;" width="8%"><span> <%#DataBinder.Eval(Container.DataItem, "id")%></span></td>
			<td style="text-align:left"><a href="Class_Table.aspx?Model_id=<%#DataBinder.Eval(Container.DataItem, "Model_id")%>&classid=<%#DataBinder.Eval(Container.DataItem, "id")%>"><%#DataBinder.Eval(Container.DataItem, "u1").ToString()%></a><%--&nbsp;&nbsp;[记录数：<%#get_article(DataBinder.Eval(Container.DataItem, "id").ToString())%>]&nbsp;&nbsp;[子目录：<%#get_class(DataBinder.Eval(Container.DataItem, "id").ToString())%>]--%>
			</td>
			<td style="width:10%;"><%#DataBinder.Eval(Container.DataItem, "u5").ToString()%></td>
			<td style="width:10%;"><%#DataBinder.Eval(Container.DataItem, "u6").ToString()%></td>
			<td style="width:10%;"><%#DataBinder.Eval(Container.DataItem, "u7").ToString()%></td>
			<td style="width:10%;"><%#getstring(DataBinder.Eval(Container.DataItem, "Sort_id").ToString())%></td>
			<td style="width:20%;"><a  href='Class_Table_add.aspx?type=edit&id=<%#DataBinder.Eval(Container.DataItem, "id")%>&Model_id=<%=Request.QueryString["Model_id"].ToString() %>'>修改</a> | <a href="Class_Table_add.aspx?classid=<%#DataBinder.Eval(Container.DataItem, "id")%>&Model_id=<%=Request.QueryString["Model_id"].ToString() %>">添加子类</a> 
                            |
                            <a onclick="return confirm('你确认将该频道删除到回收站?\r\n注意：相关栏目和内容也将一起删除到回收站');" id="repChannel_ctl01_btnDelete" href="Class_Table_add.aspx?type=del&id=<%#DataBinder.Eval(Container.DataItem, "id")%>&Model_id=<%=Request.QueryString["Model_id"].ToString() %>">删除</a></td>
		</tr>
		</ItemTemplate>
                 </asp:Repeater>
	
			
	</table> 
    <div id="cEndToolbar" class="toolbarBg">
        <div class="pageList">
		    <div style="float:left;width:48%;height:20px;text-align:right;">
				
			</div>
		
	    </div>
	    <%--<div class="pageSelect"><span class="iptSl"><input type="checkbox" name="chkall" onclick="selcheck('content')" /></span><a href="javascript:selcheck('content');"><span class="btnTxt">选择</span><span class="btnIco btnDown"></span></a></div>
	    <span class="split cpSplit" ></span>
	    <div class="pageBtnDo">
	        <div class="icoBtn_do"><input type="image" name="Delete_Button" id="Delete_Button" class="btnIco btnDel" src="images/Empty.gif" onClick="document.form2.action='?action=delall';return confirm('确定要删除吗?');" style="border-width:0px;" /></div>
	    </div>--%>
	</div>	
    </div>
	
</form>
</body>
</html>


