<%@ page title="" language="C#" masterpagefile="~/Admin/MasterPage/Main.master" autoeventwireup="true" inherits="admin_product_proClass, App_Web_sluubwuv" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="/adminImg/css/style-manage.css" />

    <script type="text/javascript">
    function ShowAndHide(id,pcstr,treeid){
        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("ProClass_GetChild.aspx",_tempZ,function(xhtml){
                jQuery("#"+id).html(xhtml);
            });
        }
    }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <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>
        <div class="tool-curr">
            <div class="con-fl">
                当前位置：商品分类列表</div>
            <div class="con-fr">
                <img src="/admin/adminImg/images/img-fontid.gif" title="本页技术支持编号" alt="" />605590
            </div>
        </div>
        <div class="clear">
        </div>
        <div class="hr">
        </div>
        <div class="imgadnfont">
            <div class="float">
                <img src="/admin/adminImg/images/user-info.gif" alt="" /></div>
            <div style="line-height: 20px;">
                商品分类列表
                <div style="color: #ACACAC;">
                    (对商品分类列表进行操作，<span style="color: Red">注意：修改可能会影响到全局，请谨慎操作！</span>)
                </div>
            </div>
        </div>
        <div class="hr">
        </div>
    </div>
    <div class="divContent">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" ShowHeader="False"
            CssClass="mtl" GridLines="None" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="Uid"
            OnPageIndexChanging="GridView1_PageIndexChanging"  OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Panel ID="Panel1" runat="server" CssClass="mtlitem">
                            <asp:Image ID="Image1" runat="server" ImageUrl="/admin/adminImg/images/folders.gif" CssClass="mtlfoldimg" /><%#Eval("oneTitle")%></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="ProductCategory_Edit.aspx?ParentID=<%#Eval("ID") %>"><img src="/adminImg/images/add.gif" />添加下级</a>
                                   <a href="ProductCategory_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>
    </div>
</asp:Content>

