<%@ Page language="c#" Codebehind="NewsIndex.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.NewsIndex" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LoginForm" Src="Modules/LoginForm.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SmallCart" Src="Modules/SmallCart.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftNavTop2Level" Src="Modules/LeftNavTop2Level.ascx" %>
<%@ Register TagPrefix="uc1" TagName="CommendProduct" Src="Modules/CommendProduct.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SpecialProduct" Src="Modules/SpecialProduct.ascx" %>
<%@ Register TagPrefix="uc1" TagName="HotProduct" Src="Modules/HotProduct.ascx" %>
<%@ Register TagPrefix="uc1" TagName="NewProduct" Src="Modules/NewProduct.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Link" Src="Modules/Link.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="NewsCatNav" Src="Modules/NewsCatNav.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<!--#include file="../../inc/encoding.inc"-->
		<title><%=GetResourceString("news")%>|<%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->		
		<style>
		#navbar ul li.newsindex{background:url("Template/XpShopFreeDemo_8_1/images/navbar_on.jpg") no-repeat;}
        #navbar ul li.newsindex a:link,#navbar ul li.newsindex a:visited,#navbar ul li.newsindex a:hover{color:#ffffff; font-weight:bold; text-decoration:none;}
		</style>
  </head>
	<body>
		<div id="container">
			<uc1:Header id="Header1" runat="server"></uc1:Header>
		    <!--位置导航开始-->
			<div class="path"><a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a> > <%=GetResourceString("news")%></div>
			<!--位置导航结束-->
			<div id="content">
				<div id="content_left_side">
					<!--新闻分类开始-->
						<uc1:NewsCatNav id="NewsCatNav1" runat="server"></uc1:NewsCatNav>
					<!--新闻分类结束-->
				</div>
				<div id="content_middle_side">
					<!--内容开始-->
					<!-- 新闻各小类开始-->
					<%BindNewsCategory();%>
					<asp:DataList ID="dlNewsCategories"
						Runat="server"
						RepeatColumns="1" 
						RepeatLayout="table"
						RepeatDirection="Horizontal"
						Width="100%"
						ItemStyle-VerticalAlign=Top>
						<ItemTemplate>
							<div class="mframe">
	                            <div class="tl"></div>
						        <div class="tr"></div>
						        <div class="tm"><div class="on"><%# DataBinder.Eval(Container.DataItem, "CategoryName") %></div></div>
						    </div>
						    <div class="mm">
								<asp:DataList ID="dlNewList" Runat=server RepeatColumns=1 DataSource=<%# GetNewList(DataBinder.Eval(Container.DataItem, "CategoryID").ToString(),10)%> ItemStyle-VerticalAlign=Top>
									<ItemTemplate>
										·<a href='<%if(config.html==""){%>/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>NewsShow.aspx?NewsID=<%# DataBinder.Eval(Container.DataItem, "ArticleID") %><%}else{%>articles/News_<%# DataBinder.Eval(Container.DataItem, "ArticleID") %>.<%=config.html%><%}%>'><%# DataBinder.Eval(Container.DataItem, "Title") %></a>
									</ItemTemplate>
								</asp:DataList>	
							</div>
							<div class="bl"></div>
					        <div class="br"></div>
					        <div class="bm"></div>
							</div>
						</ItemTemplate>
					</asp:DataList>
					<!-- 新闻各小类介绍-->
					<!--内容结束-->
				</div>
				<div style="clear:both;"></div>
			</div>
			<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
			<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
		</div>
	</body>
</HTML>