<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Menu_Manage.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.AdminMenu.Menu_Manage" %>

<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>菜单管理</title>
    <meta http-equiv="Pragma" content="No-cach" />
    <link href="../Style.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>

    <script language="javascript" type="text/javascript" src="../../Images/skysoft.js"></script>

    <script language="javascript" type="text/javascript">
        function AdminMenuHead(str) {
            if (parent.document.getElementById("navlist"))
                parent.document.getElementById("navlist").innerHTML = str;
        }
        function MenuDefaul() {
            parent.location = parent.location;


        }
      
  
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Panel1" runat="server">
                标题：<asp:TextBox ID="TB_Title" runat="server"></asp:TextBox>
                &nbsp; 链接：<asp:TextBox ID="TB_Link" runat="server" Width="250px"></asp:TextBox>
                &nbsp;排序：<asp:TextBox ID="TB_OrderID" runat="server" Width="33px"></asp:TextBox>
                &nbsp; <asp:Button ID="BT_OK" runat="server" Text="添加" CssClass="btn" 
                    onclick="BT_OK_Click" />
                <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" CssClass="GridView"
                    OnRowDeleting="GV_List_RowDeleting" OnRowEditing="GV_List_RowEditing" 
                    OnRowUpdating="GV_List_RowUpdating" 
                    onrowcancelingedit="GV_List_RowCancelingEdit" DataKeyNames="ID" >
                    <Columns>
                        <asp:TemplateField HeaderText="标题">
                            <EditItemTemplate>
                                <asp:TextBox ID="TB_Title" runat="server" Text='<%# Bind("Title") %>' Width="90%"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <%# Eval("Title")%>
                            </ItemTemplate>
                            <ItemStyle Width="160px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="链接">
                            <EditItemTemplate>
                                <asp:TextBox ID="TB_Link" runat="server" Text='<%# Bind("Link") %>' Width="90%"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                               <%# Eval("Link") %> 
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="排序">
                            <EditItemTemplate>
                                <asp:TextBox ID="TB_OrderID" runat="server" Text='<%# Bind("OrderID") %>' Width="100%"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <%# Eval("OrderID") %> 
                            </ItemTemplate>
                            <HeaderStyle Width="70px" />
                            <ItemStyle HorizontalAlign="Center" Width="70px" />
                        </asp:TemplateField>
                        <asp:CommandField ShowEditButton="True">
                            <HeaderStyle Width="60px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:CommandField>
                        <asp:CommandField ShowDeleteButton="True">
                            <HeaderStyle Width="60px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:CommandField>
                    </Columns>
                    <HeaderStyle CssClass="HeaderStyle" />
                </asp:GridView>
                
                <br />
                </asp:Panel>
            <asp:Panel ID="Panel2" runat="server">
                <asp:GridView ID="GV_List2" runat="server" AutoGenerateColumns="False" CssClass="GridView"
                    OnRowCommand="GV_List2_RowCommand" OnRowDataBound="GV_List2_RowDataBound" DataKeyNames="ID"
                    Width="300px">
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="ID">
                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="标题" DataField="Name">
                            <ItemStyle Width="160px" />
                        </asp:BoundField>
                        <asp:ButtonField DataTextField="Show" HeaderText="状态" Text="按钮">
                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                        </asp:ButtonField>
                    </Columns>
                    <HeaderStyle CssClass="HeaderStyle" />
                </asp:GridView>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
