<%@ page title="" language="C#" masterpagefile="../../../Common/MasterPage.master" autoeventwireup="true" inherits="Admin_Modules_Article_Items_Default, App_Web_hwolzeje" %>
<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_ArticleList" PagerStyle-Mode="NumericPages" PageSize="25" AllowPaging="true" Width="97%" AutoGenerateColumns="false" Caption="文章列表" CaptionAlign="Left">
    <Columns>
      <asp:BoundColumn DataField="ID" HeaderText="ID" />
      <asp:HyperLinkColumn DataTextField="Title" DataNavigateUrlField="ID" DataNavigateUrlFormatString="Detail.Aspx?ID={0}" HeaderText="文章标题" />
      <asp:BoundColumn DataField="FileName" HeaderText="文件名" />
      <asp:TemplateColumn>
      <HeaderTemplate>所属分类</HeaderTemplate>
      <ItemTemplate>
        <%# Aspxsite.Objects.ArticleClass.GetColumnValue(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"ClassID")),"Name") %>
      </ItemTemplate>
      </asp:TemplateColumn>
      <asp:TemplateColumn>
      <HeaderTemplate>可用操作</HeaderTemplate>
      <ItemTemplate>
       <a href="Detail.Aspx?ID=<%# DataBinder.Eval(Container.DataItem,"ID") %>" onclick="return confirm('确认编辑文章：<%# DataBinder.Eval(Container.DataItem,"Title") %>')">编辑</a>
       <a href="Default.Aspx?Action=DelItem&ID=<%# DataBinder.Eval(Container.DataItem,"ID") %>" onclick="return confirm('确认删除文章：<%# DataBinder.Eval(Container.DataItem,"Title") %>')">删除</a>
       </ItemTemplate>
      </asp:TemplateColumn>
    </Columns>
  </asp:DataGrid>
</asp:Content>

