<%@ Control Language="c#" AutoEventWireup="false" Codebehind="PopularItems.ascx.cs" Inherits="Xpdt.Commerce.PopularItems" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="Portal" TagName="Title" Src="~/DesktopModuleTitle.ascx"%>
<%@ Register TagPrefix="Portal" TagName="Divider" Src="~/ModuleDivider.ascx"%>
<%--

    This user control displays a list of the most popular items this week.

--%>
<TABLE width="100%">
	<TR>
		<TD class="ModuleFrame">
			<portal:title id="Title1" runat="server" ></portal:title><br>
			<asp:Panel id="Panel1" runat="server" BorderStyle="Solid" BorderWidth="1px" BorderColor="Black" HorizontalAlign="Left">
				<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
					<asp:Repeater id="productList" runat="server">
						<HeaderTemplate>
							<tr>
								<td class="MostPopularHead" align="center">
									Our most popular items
								</td>
							</tr>
						</HeaderTemplate>
						<ItemTemplate>
							<tr>
								<td class="MostPopularItemText">
									&nbsp;
									<asp:HyperLink NavigateUrl='<%# "ProductDetails.aspx?ProductID=" + DataBinder.Eval(Container.DataItem, "ProductID")%>' Text='<%#DataBinder.Eval(Container.DataItem, "ModelName")%>' runat="server" ID="Hyperlink1" NAME="Hyperlink1"/>
									<br>
								</td>
							</tr>
						</ItemTemplate>
						<AlternatingItemTemplate>
							<tr>
								<td class="MostPopularItemTextAlt">
									&nbsp;
									<asp:HyperLink NavigateUrl='<%# "ProductDetails.aspx?ProductID=" + DataBinder.Eval(Container.DataItem, "ProductID")%>' Text='<%#DataBinder.Eval(Container.DataItem, "ModelName")%>' runat="server" ID="Hyperlink2" NAME="Hyperlink1"/>
									<br>
								</td>
							</tr>
						</AlternatingItemTemplate>
					</asp:Repeater></TABLE>
			</asp:Panel>
			<br>
			<Portal:Divider runat="server" id="Divider1" />
		</TD>
	</TR>
</TABLE>
