<%@ Page language="c#" Codebehind="NewsIndex.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.NewsIndex" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.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/XpShop_div2/images/navbar_on.jpg") no-repeat;}
		</style>
  </head>
	<body>
		<uc1:Header id="Header1" runat="server"></uc1:Header>
		<div class="xp-w clear">
		    <!--位置导航开始-->
		    <div class="path"><a href="<%=webSite %><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a>&nbsp;&gt;&nbsp;<%=GetResourceString("news")%></div>
		    <!--位置导航结束-->
			<div id="content_left">
				<!--新闻分类开始-->
					<uc1:NewsCatNav id="NewsCatNav1" runat="server"></uc1:NewsCatNav>
				<!--新闻分类结束-->
			</div>
			<div id="content_right">
			    
				<!--内容开始-->
				<!-- 新闻各小类开始-->
				<%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="title" style="float:left;"><%# DataBinder.Eval(Container.DataItem, "CategoryName") %></div>
                            <div class="more" style="float:right;"><a href="<%=webSite %>articles/NewsCat-<%# DataBinder.Eval(Container.DataItem, "CategoryID") %>.<%=config.html %>" target="_blank">更多>>></a></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" Width="100%">
								<ItemTemplate>
									·<a href='<%=webSite %>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>
		<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
		<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
	</body>
</HTML>