<%@ page title="" language="C#" masterpagefile="../../../Common/MasterPage.master" autoeventwireup="true" inherits="Admin_Modules_Menu_Items_Default, App_Web_t4dglgnh" %>
<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_PageList" 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="Position" HeaderText="排序" />
      <asp:BoundColumn DataField="LinkID" HeaderText="样式ID" />
      <asp:BoundColumn DataField="LinkClass" HeaderText="样式Class" />
      <asp:TemplateColumn>
      <HeaderTemplate>所属分组</HeaderTemplate>
      <ItemTemplate>
        <%# Aspxsite.Objects.MenuGroup.GetColumnValue(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"GroupID")),"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=CopyItem&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>

