<%@ Control Language="c#" AutoEventWireup="false" Codebehind="NavBar.ascx.cs" Inherits="XpShop.WebUI.Modules.NavBar" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="Search" Src="Search.ascx" %>
<div id="navbar">
	    <ul id="nbar">
		    <li><a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a></li>
		    <%BindTopNav();%>
		    <asp:DataList id="dlTopNav" RepeatLayout="Flow" RepeatColumns="7" RepeatDirection="Horizontal"
			    runat="server" DataKeyField="CategoryID">
			    <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%><%}%>'>
					        <font color="#ffffff"><%# DataBinder.Eval(Container.DataItem, "Name")%></font>
				        </a>
    				</li>
			    </ItemTemplate>
		    </asp:DataList>
		    <%if (XpShop.WebUI.WebUtils.Paimai(Request.Url.ToString())){ %>
		    <li class="pmproducts"><a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>PMProducts.aspx'><%=GetResourceString("BidUp")%></a></li>
		    <%} if (XpShop.WebUI.WebUtils.Tuangou(Request.Url.ToString())){ %>
		    <li class="tgproducts"><a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>TGProducts.aspx'><%=GetResourceString("TogetherPurchase")%></a></li>
		    <%} %>
		    <li><a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>HotProducts.aspx<%}else{%>HotProducts.<%=config.html%><%}%>"><%=GetResourceString("HotProducts")%></a></li>
		    <li class="special"><a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>SpecialProducts.aspx<%}else{%>SpecialProducts.<%=config.html%><%}%>"><%=GetResourceString("SpecialProducts")%></a></li>
		</ul>
		<div class="nav_search"><uc1:Search id="Search1" runat="server"></uc1:Search></div>
</div>
