<%@ Control Language="c#" AutoEventWireup="false" Codebehind="NewsCatNav.ascx.cs" Inherits="XpShop.WebUI.Modules.NewsCatNav" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<div class="lframe">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="tm">
	    <%=GetResourceString("news")%>
    </div>
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<%BindLeftNewsNav();%>
		<asp:DataList id="dlLeftNav"
			RepeatLayout="Flow"
			RepeatColumns="1"
			RepeatDirection="Horizontal"
			runat="server">
			<ItemTemplate>
				<img src="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>images/empty.gif" width='<%# 15*(int)DataBinder.Eval(Container.DataItem, "Depth") %>' height="1" align="absmiddle">
				<img src='<%# (DataBinder.Eval(Container.DataItem,"CategoryID").ToString()==Request.QueryString["CategoryID"]) ? "/"+System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"] + "Template/"+config.TemplateFolder+"/Images/folderOpen.gif" : "/" + System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"] + "Template/"+config.TemplateFolder+"/Images/folderClose.gif"%>' align="absmiddle"
				alt=""/><a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>NewsCat.aspx?CatID=<%# DataBinder.Eval(Container.DataItem, "CategoryID") %><%}else{%>articles/NewsCat_<%# DataBinder.Eval(Container.DataItem, "CategoryID") %>.<%=config.html%><%}%>'><%# DataBinder.Eval(Container.DataItem, "CategoryName") %></a>
						
			</ItemTemplate>
		</asp:DataList>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
</div>
<div style="clear:both;"></div>