<%@ page language="C#" masterpagefile="~/HL_Admin/AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_ShopManageModule, HoWaveVGO" title="Untitled Page" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="adminheading">
   <tr>
      <th valign="middle" class="menus" align="left">商城文章模块管理</th>
      <td align="right">
        <div style="width:100px"><a href="Admin_ShopModule.aspx">新增模块</a></div>
      </td>
      
   </tr>
</table>

    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        DataSourceID="ObjectDataSource1" CssClass="adminlist"  Width="100%"  OnRowDataBound="GridView1_RowDataBound" DataKeyNames="ID" OnDataBound="GridView1_DataBound">
        <Columns>
            <asp:BoundField DataField="id" HeaderText="ID" />
            <asp:BoundField DataField="name" HeaderText="名称" />
            <asp:HyperLinkField HeaderText="标题" DataNavigateUrlFields="id" DataTextField="title" DataNavigateUrlFormatString="../Shop/Article/List.aspx?CID={0}"  Target="_blank"/>
            <asp:BoundField DataField="status" HeaderText="状态" />
            <asp:TemplateField HeaderText="操作">
               <ItemTemplate >
                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                        Text="删除"></asp:LinkButton>
                  <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>
               </ItemTemplate>
                <HeaderStyle Width="16%" />
            </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:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetAllModule"
        TypeName="Shop_Module" DeleteMethod="DelModule" OldValuesParameterFormatString="{0}">
        <DeleteParameters>
            <asp:Parameter Name="id" Type="Int32" />
        </DeleteParameters>
    </asp:ObjectDataSource>
</asp:Content>

