<%@ page language="C#" masterpagefile="~/Admin/MasterPage/Main.master" autoeventwireup="true" inherits="Admin_Pub_Pub_Tree_Info, App_Web_oq0yyit1" title="无标题页" %>

<%@ Register Src="~/Admin/Controls/CurrTool_Panel.ascx" TagName="CurrTool" TagPrefix="html" %>
<%@ Register Src="~/Admin/Controls/CurrImage_Panel.ascx" TagName="CurrImage" TagPrefix="html" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="/adminImg/images/style-manage.css" />
    <script type="text/javascript">
    function ShowAndHide(id,pcstr,treeid){
        //jQuery("#"+id).toggleClass("mtlItemDiv");
        jQuery("#" + id).toggle();    
        if(""==jQuery.trim(jQuery("#"+id).html())||"Loading..."==jQuery("#"+id).html()){
            jQuery("#"+id).html("Loading...");
            var _tempZ=null;
            _tempZ={ParentCard:pcstr,treeid:treeid,temp:Math.random()};
            jQuery.get("Menu_clild.aspx",_tempZ,function(xhtml){
                //jQuery("#"+id).html("");
                //jQuery(xhtml).find("table").appendTo("#"+id)
                jQuery("#"+id).html(xhtml);
            });
        }
    }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="divTools">
        <div class="tool-nav">
            <div class="title">
                导航栏</div>
            <asp:HyperLink ID="hy_add" Text="[添加顶级栏目]" runat="server"/>
            <asp:HyperLink ID="hy_list" Text="[栏目列表]" runat="server"/>
        </div>
        <html:CurrTool ID="CurrTool1" Title="系统栏目列表" Version="120402" runat="server"/>
        <html:CurrImage ID="CurrImage1" Title="系统栏目列表" Tips="对系统菜单进行操作，"
             TipsRed="注意：修改可能会影响到全局，请谨慎操作！" runat="server" />
    </div>
    <div class="divContent">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" ShowHeader="False"
            CssClass="mtl" GridLines="None" OnRowDataBound="GridView1_RowDataBound"
            DataKeyNames="Uid" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Panel ID="Panel1" runat="server" CssClass="mtlitem">
                            <b>
                                <asp:Image ID="Image1" runat="server" ImageUrl="/admin/adminImg/images/folders.gif" CssClass="mtlfoldimg" /><%#Eval("MenuName")%></b>
                                
                                <span>
                                   <asp:HyperLink ID="hy_add" runat="server">
                                        <img src="/admin/adminImg/images/add.gif" /> 添加下级
                                   </asp:HyperLink>
                                   <asp:HyperLink ID="hy_edit" runat="server">
                                        <img src="/admin/adminImg/images/submit.gif" /> 编辑
                                   </asp:HyperLink>
                                   <asp:LinkButton ID="hy_delete" CommandName="Select" runat="server"><img src="/admin/adminImg/images/del.gif" /> 删 除</asp:LinkButton>
                                                                      
                                   <asp:Literal runat="server" ID="LitUid" Visible="false" Text='<%#Eval("Uid")%>'></asp:Literal>
                                   
                                   <%-- <a href="Pub_Tree_Edit.aspx?ParentID=<%#Eval("ID") %>"><img src="/adminImg/images/add.gif" />添加下级</a>
                                    <a href="Pub_Tree_Edit.aspx?ID=<%#Eval("ID") %>"><img src="/adminImg/images/submit.gif" />编辑</a>
                                    <a href="?ID=<%#Eval("ID") %>&Action=Del" onclick="if(!confirm('确定要删除该分类吗？')){return false;}">
                                        <img src="/adminImg/images/del.gif" />删除</a>--%>
                                </span>
                        </asp:Panel>
                        <asp:Panel ID="DistrictPanel" runat="server" Style="display: none;">
                        </asp:Panel>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
