<%@ Control Language="c#" AutoEventWireup="false" Codebehind="LeftNavTop2Level.ascx.cs" Inherits="XpShop.WebUI.Modules.LeftNavTop2Level" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Register TagPrefix="uc1" TagName="Brand" Src="Brand.ascx" %>
<script src="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>inc/tab.js" type="text/javascript"></script>
<link rel="stylesheet" href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>Template/<%=config.TemplateFolder%>/style/Home_tabs.css" />
<div class="listlframe" id="TopSaleContent1001">
    <div class="context">
        <div class="rank_subcat">
            <span class="menuitem tabon">
                <%=GetResourceString("LeftNavigation")%>
            </span><span class="menuitem tabout">品牌专区</span>
        </div>
        <div class="clear"></div>
        <ul class="salerank1_tabitem">
            <li>
                <ul id="cat_cat_ul">
                    <asp:Repeater runat="server" ID="rptTopCategory">
                        <ItemTemplate>
                            <li class="one">
                                <h4>
                                    <%# DataBinder.Eval(Container.DataItem,"Logo")%><a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>List.aspx?CatID=<%# DataBinder.Eval(Container.DataItem,"CategoryID") %><%}else{%>categories/Category_<%# DataBinder.Eval(Container.DataItem,"CategoryID")%>.<%=config.html%><%}%>'>
                                        <%# DataBinder.Eval(Container.DataItem,"Name")%>
                                    </a>
                                </h4>
                            </li>
                            <asp:Repeater runat="server" ID="rptSubCategory" DataSource='<%# GetSubCategory(DataBinder.Eval(Container.DataItem,"CategoryID").ToString())%>'>
                                <ItemTemplate>
                                    <li class="two">
                                        <span class="two_cat"><a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>List.aspx?CatID=<%# DataBinder.Eval(Container.DataItem,"CategoryID") %><%}else{%>categories/Category_<%# DataBinder.Eval(Container.DataItem,"CategoryID")%>.<%=config.html%><%}%>' class="two-item"><%# DataBinder.Eval(Container.DataItem,"Name")%></a>
                                        </span>
                                        <span class="fly3">
                                            -- 
                                            <asp:Repeater runat="server" ID="rptSubCategorys" DataSource='<%# GetSubCategory(DataBinder.Eval(Container.DataItem,"CategoryID").ToString())%>'>
                                                <ItemTemplate>
                                                    <a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>List.aspx?CatID=<%# DataBinder.Eval(Container.DataItem,"CategoryID") %><%}else{%>categories/Category_<%# DataBinder.Eval(Container.DataItem,"CategoryID")%>.<%=config.html%><%}%>' class="fly3-<%#Container.ItemIndex+1 %>"><%# DataBinder.Eval(Container.DataItem,"Name")%></a>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </span>
                                        <img class="menu3-img" src='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>Images/fly.jpg'>
                                        <div class="menu3">
                                            <div class="menu3-t">
                                            </div>
                                            <div class="menu3-body">
                                                <ul>
                                                    <asp:Repeater runat="server" ID="rptSubCategoryss" DataSource='<%# GetSubCategory(DataBinder.Eval(Container.DataItem,"CategoryID").ToString())%>'>
                                                        <ItemTemplate>
                                                            <li><a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>List.aspx?CatID=<%# DataBinder.Eval(Container.DataItem,"CategoryID") %><%}else{%>categories/Category_<%# DataBinder.Eval(Container.DataItem,"CategoryID")%>.<%=config.html%><%}%>' target="_blank"><%# DataBinder.Eval(Container.DataItem,"Name")%></a></li>
                                                        </ItemTemplate>
                                                    </asp:Repeater>
                                                    
                                                </ul>
                                            </div>
                                            <div class="menu3-bottom">
                                            </div>
                                        </div>
                                        <div class="clear"></div>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>
                     
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </li>
        </ul>
        <ul class="salerank1_tabitem">
            <li style="padding-top: 18px; *padding-top: 2px;">
                <!--品牌开始-->
                <uc1:Brand id="Brand1" runat="server">
                </uc1:Brand>
                <!--品牌结束-->
            </li>
        </ul>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function(){
        $('.two').each(function(){
            if($(this).find('[@class^=fly3-]').length == 0){
                $(this).find('.fly3').remove();
                $(this).find('.menu3').remove();
                $(this).find('.menu3-img').remove();
            }
        })
        $('.two').hover(function(){
            $(this).addClass('active-two');
        },function(){
            $(this).removeClass('active-two');
        });
    });
</script>

<script type="text/javascript">
    $('#TopSaleContent1001').ready(function(){
        SetTab('#TopSaleContent1001 span.menuitem','#TopSaleContent1001 ul.salerank1_tabitem');
    });
</script>


        

