<%@ Page language="c#" Codebehind="Category.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.Category" %>
<%@ 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" %>
<!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>全部分类</title>
		<!--#include file="../../inc/head.inc"-->
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/allsort.css" rel="stylesheet" />
	</head>
	<body>
		<uc1:Header id="Header1" runat="server"></uc1:Header>		
		<div class="xp-w clear">
		    <div class="Sort_Link">
			    <span class="Sort_Link_bgL"></span><span class="Sort_Link_bgR"></span><a href="<%=webSite %>Category.<%=config.html%>">全部分类</a>
			    <a href="<%=webSite %>brands.<%=config.html %>">全部品牌</a>  <a href="<%=webSite %>">全部商品</a>
		    </div>
		    <!--Sort_Link end -->
		    <div style="clear: both;">
		    </div>
		    <div class="Sort_List">
			    <div class="title"><div class="words">全部分类</div></div>
			    <%BindTopCategory(); %>
			    <asp:Repeater ID="rptTopList" runat="server">
			        <ItemTemplate>
			            <dl class='<%# Container.ItemIndex%2 == 0 ? "" : "even" %>'>
			                <dt><a href='<%=webSite %>categorys-<%# DataBinder.Eval(Container.DataItem, "CategoryID")%>.<%=config.html %>'><%# DataBinder.Eval(Container.DataItem, "Name")%></a></dt>
			                <dd>
			                <asp:Repeater ID="rptSubList" runat="server" DataSource='<%# GetSubCategory((int)DataBinder.Eval(Container.DataItem, "CategoryID")) %>'>
			                    <ItemTemplate><a href='<%=webSite %>categorys-<%# DataBinder.Eval(Container.DataItem, "CategoryID")%>.<%=config.html %>'><%# DataBinder.Eval(Container.DataItem, "Name")%></a></ItemTemplate>
			                </asp:Repeater>
			                </dd>
			            </dl>
			        </ItemTemplate>
			    </asp:Repeater>
		    </div>
		</div>
	    <uc1:Helper id="Helper1" runat="server"></uc1:Helper>
	    <uc1:Footer id="Footer1" runat="server"></uc1:Footer>
	</body>
</html>                   