<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="menuManage.aspx.cs" Inherits="Web.Wpdcc.menuManage" %>
<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>网站菜单制作</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/adminCss.htm" -->
    <script type="text/javascript" language="javascript">
        jQuery(function ($) {
            /*列表高度*/
            $('.function-bd').height($(window).innerHeight() - 100);

            $(window).resize(function () {
                $('.function-bd').height($(window).innerHeight() - 100);
            });

        });
        function menuPreview(str) 
	    {
			window.open("previewMenu.aspx?menuid="+str);
	    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="list-func-box func-box">
        <div class="hd">
            <asp:Label ID="title" runat="server">您的位置：网站模版设置 &gt; 网站菜单管理</asp:Label>
        </div>
        <div class="bd">
            <div class="function-hd">
                <div class="action-field">
                    <asp:Button ID="btnadd" runat="server" Text="开始制作" onclick="btnadd_Click" CssClass="btn" />
                </div>
                <!--/action-field-->
            </div>
            <div class="function-bd" style="overflow:auto;">
            <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
                <asp:DataGrid ID="gvMenu" runat="server" AutoGenerateColumns="False" CssClass="list-table" onitemcommand="gvMenu_ItemCommand">
                    <Columns>
                        <asp:BoundColumn DataField="pkId" HeaderText="ID" HeaderStyle-CssClass="title"></asp:BoundColumn>
                        <asp:BoundColumn DataField="name" HeaderText="名称" HeaderStyle-CssClass="title"></asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="操作" HeaderStyle-CssClass="title">
                            <ItemTemplate>
                                <asp:LinkButton ID="edit" runat="server" CausesValidation="False" CommandName="edit" title="编辑"><i class="icon icon-pencil"></i></asp:LinkButton>
                                <asp:LinkButton ID="del" runat="server" CausesValidation="False" CommandName="del" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.name") %>' title="删除"><i class="icon icon-remove"></i></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:BoundColumn Visible="False" DataField="isSystem" HeaderText="isSystem"></asp:BoundColumn>
                        <asp:BoundColumn Visible="False" DataField="adminId" HeaderText="adminId"></asp:BoundColumn>
                    </Columns>
                </asp:DataGrid>
            <!--[if lte IE 7]></div><![endif]-->
            </div><!--/function-bd-->
        </div>
    </div>
    </form>
</body>
</html>
