<%@ page title="" language="C#" masterpagefile="../../../Common/MasterPage.master" autoeventwireup="true" inherits="Admin_Modules_Article_Classes_Default, App_Web_lznfv5hi" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href="../../../images/site.css" rel="stylesheet" type="text/css" /> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" Runat="Server">
 <asp:Label runat="server" ID="lbl_result" Visible="false" ForeColor="Red" Font-Bold="true"></asp:Label>
  <asp:DataGrid runat="server" ID="grid_List" AllowCustomPaging="false" AllowPaging="false" Width="97%" AutoGenerateColumns="false" Caption="文章分类列表" CaptionAlign="Left">
    <Columns>
      
      <asp:BoundColumn DataField="ID" HeaderText="ID" HeaderStyle-Width="20" />
      <asp:HyperLinkColumn HeaderStyle-Width="180" DataTextField="Name" DataNavigateUrlField="ID" DataNavigateUrlFormatString="Detail.Aspx?ID={0}" HeaderText="名称" />
      <asp:BoundColumn HeaderStyle-Width="100" DataField="PathName" HeaderText="路径名" />
      <asp:BoundColumn HeaderStyle-Width="25" DataField="Position" HeaderText="排序" />
      <asp:TemplateColumn>
      <HeaderTemplate>上级分类(点击查看该分类子分类)</HeaderTemplate>
      <ItemTemplate>
        <%#  this.GetParentClassLinks(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"ParentID"))) %>
      </ItemTemplate>
      </asp:TemplateColumn>
      <asp:TemplateColumn HeaderStyle-Width="120">
      <HeaderTemplate>可用操作</HeaderTemplate>
      <ItemTemplate>
       <a href="?ParentID=<%# DataBinder.Eval(Container.DataItem,"ID") %>" >显示子分类</a>
       <a href="Detail.Aspx?ID=<%# DataBinder.Eval(Container.DataItem,"ID") %>" onclick="return confirm('确认编辑分组：<%# DataBinder.Eval(Container.DataItem,"Name") %>')">编辑</a>
       <a href="Default.Aspx?Action=DelItem&ID=<%# DataBinder.Eval(Container.DataItem,"ID") %>" onclick="return confirm('确认删除分组：<%# DataBinder.Eval(Container.DataItem,"Name") %>')">删除</a>
       </ItemTemplate>
      </asp:TemplateColumn>
    </Columns>
  </asp:DataGrid>
</asp:Content>

