<%@ OutputCache Duration="60" VaryByParam="CatID" %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="LeftNav.ascx.cs" Inherits="XpShop.WebUI.Modules.LeftNav" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Import Namespace="System.Data" %>
<table width="100%"  border="0" cellpadding="0" cellspacing="0">
    <tr>
        <th bgcolor="#FFFFFF" scope="col"><img src="images/index_03.gif" width="208" height="68" alt=""></th>
    </tr>
    <tr>
        <th height="5" background="images/bg_left1.gif" scope="col"></th>
    </tr>
    <tr>
        <td background="images/bg_left1.gif"><div align="center">
			<%BindLeftNavTopCategory();%>
			<asp:Repeater Runat="server" ID="rptTopCategory">
				<ItemTemplate>
					<table width="99%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<th width="7%" rowspan="8" scope="col">&nbsp;</th>
						<th width="87%" scope="col"><img src="images/cat<%# DataBinder.Eval(Container.DataItem,"CategoryID") %>.gif" width="180" height="33"></th>
						<th width="6%" rowspan="8" scope="col">&nbsp;</th>
					</tr>
					<tr>
						<th height="8" bgcolor="#FFFFFF" scope="col"></th>
					</tr>
					<tr>
						<th bgcolor="#FFFFFF" scope="col">
						<table width="160" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
						<tr>
							<td width="160">
							<asp:DataList ID="dlSubCategory" Runat="server" RepeatColumns="2" HorizontalAlign="Left" RepeatDirection="Horizontal" Width="100%" ItemStyle-Width="50%" DataSource='<%# GetSubCategory(DataBinder.Eval(Container.DataItem,"CategoryID").ToString())%>'>
								<ItemStyle HorizontalAlign="Left" Width="50%"></ItemStyle>
								<AlternatingItemStyle HorizontalAlign="Left" Width="50%"></AlternatingItemStyle>
								<ItemTemplate>
									<img src="images/bjk_11.gif" width="9" height="9"><a href='List.aspx?CatID=<%# DataBinder.Eval(Container.DataItem,"CategoryID") %>'><%# DataBinder.Eval(Container.DataItem,"Name")%></a>
								</ItemTemplate>
								<AlternatingItemTemplate>
									<img src="images/bjk_11.gif" width="9" height="9"><a href='List.aspx?CatID=<%# DataBinder.Eval(Container.DataItem,"CategoryID") %>'><%# DataBinder.Eval(Container.DataItem,"Name")%></a>
								</AlternatingItemTemplate>
							</asp:DataList>
							</td>
						</tr>
						</table>
						</th>
					</tr>
					</table>
				</ItemTemplate>
			</asp:Repeater>
        </div></td>
    </tr>
    <tr>
        <td><img src="images/index_20.gif" width="208" height="106" alt=""></td>
    </tr>
</table>
