<%@ Page Language="C#" MasterPageFile="~/Manage/main.Master" AutoEventWireup="true" CodeBehind="XmlWebManage.aspx.cs" Inherits="EasySion.ERP.Web.admin.XmlWebManage" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="LeftMenu" runat="Server">
  <div class="leftMenuTitle">广告幻灯</div>
  <ul class="leftMenu">
    <li><a href="SiteAdManage.aspx">广告列表</a></li>
    <li><a href="SiteAdAdd.aspx">添加广告</a></li>
    <li><a href="XmlWebManage.aspx">幻灯列表</a></li>
    <li><a href="XmlWeb.aspx">添加幻灯</a></li>
  </ul>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MidContent" runat="Server">
  <div id="mainMenu">
    <ul>
      <li><a href="XmlWebManage.aspx">幻灯列表</a></li>
      <li><a href="XmlWebEdit.aspx">编辑幻灯</a></li>
    </ul>
  </div>
  <div id="main">
    <asp:Label ID="Msg" runat="server" Text="" CssClass="msg" Visible="False"></asp:Label>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID,item_url" OnRowDeleting="GridView1_RowDeleting" Width="100%">
      <Columns>
      <asp:BoundField DataField="id" HeaderText="ID" />
      <asp:BoundField DataField="titles" HeaderText="标题" />
      <asp:BoundField DataField="item_url" HeaderText="图片地址" />
      <asp:BoundField DataField="link" HeaderText="链接地址" />
      <asp:TemplateField ShowHeader="False">
        <ItemTemplate> <a href='XmlWebEdit.aspx?ID=<%# Eval("ID") %>'>修改</a>
          <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" OnClientClick="return confirm('是否确认删除？')" CommandName="Delete" Text="删除"></asp:LinkButton>
        </ItemTemplate>
      </asp:TemplateField>
      </Columns>
      <RowStyle CssClass="gvRow" />
      <EditRowStyle CssClass="gvEditRow" />
      <PagerStyle CssClass="gvPage" />
      <HeaderStyle CssClass="gvHeader" />
      <AlternatingRowStyle CssClass="gvAlternatingRow" />
    </asp:GridView>
    <br />
    <script language="JavaScript" type="text/javascript">
        topMenuThisPage(6);
        leftMenuThisPage(1,3);
        mainMenuThisPage(1);
    </script>
  </div>
</asp:Content>