<%@ Page language="c#" Codebehind="NewsIndex.aspx.cs" AutoEventWireup="false" Inherits="wqeshop.NewsIndex" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="../../Modules/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.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/head.inc"-->
<title><%=GetResourceString("News")%> - <%=config.SiteTitle%></title>
</head>
<body id="MenuM8">
<uc1:Header id="Header1" runat="server"></uc1:Header>
<div class="twidth">
  <!--当前位置开始-->
  <div id="cnav">
    <div class="l"></div>
    <div class="r"></div>
    <div class="m"><%=GetResourceString("WhereYouAre")%><a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>Default.aspx<%}else{%>index.<%=config.html%><%}%>'><%=GetResourceString("Home")%></a> <font face="Times New Roman, Times, serif">>></font> <%=GetResourceString("News")%></div>
  </div>
  <!--当前位置结束-->
  <div id="middle">
    <div class="middlel">
      <!--新闻分类开始-->
      <uc1:NewsCatNav id="NewsCatNav1" runat="server"></uc1:NewsCatNav>
      <!--新闻分类结束-->
    </div>
    <div class="middler">
      <div class="mframe">
        <div class="tl"></div>
        <div class="tr"></div>
        <div class="tm"><span class="tt"><%=GetResourceString("NewsList")%></span></div>
        <div class="wrapper"><div class="ml"></div>
        <div class="mr"></div>
        <div class="mm"><br />
          <!-- 新闻各小类开始-->
          <%BindNewsCategory();%>
          <asp:DataList ID="dlNewsCategories"
										Runat="server"
										RepeatColumns="1" 
										RepeatLayout="Flow"
										RepeatDirection="Horizontal"
										Width="100%"
										ItemStyle-VerticalAlign=Top>
            <ItemTemplate>
              <table width="96%" align="center" cellspacing="0" cellpadding="0" style="border-bottom:2px #9E9E9E solid; line-height:25px; text-align:left; font-weight:bold; margin-bottom:6px;">
                <tr>
                  <td><font color="#656565"><%# DataBinder.Eval(Container.DataItem, "CategoryName") %></font></td>
                </tr>
              </table>
              <table width="100%" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="10"></td>
                  <td><asp:DataList ID="dlNewList" Runat=server RepeatColumns=1 DataSource=<%# GetNewList(DataBinder.Eval(Container.DataItem, "CategoryID").ToString(),10)%> ItemStyle-VerticalAlign=Top>
                      <ItemTemplate> ·<a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>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>
                  </td>
                </tr>
              </table>
            </ItemTemplate>
          </asp:DataList>
          <!-- 新闻各小类介绍-->
        </div>
        </div><div class="bl"></div>
        <div class="br"></div>
        <div class="bm"></div>
      </div>
    </div>
  </div>
</div>
<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
</body>
</html>
