<%@ Control Language="c#" AutoEventWireup="false" Codebehind="LeftNav.ascx.cs" Inherits="XpShop.WebUI.Modules.LeftNav" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<div class="listlframe">
    <div class="context">
        <div class="title"></div>
        <ul class="list_menu">
		    <asp:Repeater runat="server" ID="rptTopCategory">
                <ItemTemplate>
                    <li>
                        <%# DataBinder.Eval(Container.DataItem,"Logo")%>&nbsp;<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>
                        <ul>
                            <asp:Repeater runat="server" ID="rptSubCategory" 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%><%}%>' class="two-item"><%# DataBinder.Eval(Container.DataItem,"Name")%></a>
						                <ul>
						                    <asp:Repeater runat="server" ID="rptSubCategorys" 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%><%}%>' class="fly3-<%#Container.ItemIndex+1 %>"><%# DataBinder.Eval(Container.DataItem,"Name")%></a>
                                                    </li>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </ul>
                                    </li>
                                    <li class="clear"></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
    </div>
</div>
