<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_ShopManageModule, mallz" title="文章模块管理" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" CssClass="adminlist" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="ID" OnDataBound="GridView1_DataBound">
        <Columns>
            <asp:BoundField DataField="id" HeaderText="ID"  HeaderStyle-Width="4%"  />
            <asp:HyperLinkField HeaderText="模块标题" DataNavigateUrlFields="id" DataTextField="title" DataNavigateUrlFormatString="../Shop/Article/List.aspx?CID={0}" ItemStyle-HorizontalAlign="Left" Target="_blank"/>
            <asp:BoundField DataField="name" HeaderText="系统标记" HeaderStyle-Width="13%"  />
            <asp:BoundField DataField="status" HeaderText="状态" HeaderStyle-Width="10%" />
            <asp:TemplateField HeaderText="操作" HeaderStyle-Width="15%">
               <ItemTemplate >
                <asp:HyperLink ID="modifybutton" runat="server"  NavigateUrl='<%#"Admin_ShopModule.aspx?Action=Modify&id="+ Eval("id") %>'>修改</asp:HyperLink>
                <a href="Admin_ShopIndexArticle.aspx?ModuleID=<%# Eval("id") %>">查看</a>
                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" CommandArgument='<%#Eval("id") %>' OnClientClick="return confirm('确定删除吗？')" OnCommand="Delete_OnClick" Text="删除" />
               </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
		<tr>
		<th scope="col">ID</th><th scope="col">名称</th><th scope="col">标题</th><th scope="col">状态</th><th scope="col" style="width:16%;">操作</th>
		</tr>
		<tr>
		<td colspan="5">暂无信息！</td>
		</tr>
        </EmptyDataTemplate>
    </asp:GridView>
    
</asp:Content>

