<%@ Control Language="c#" AutoEventWireup="false" Codebehind="ProductList.ascx.cs" Inherits="Xpdt.Commerce.ProductList" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="Portal" TagName="Title" Src="~/DesktopModuleTitle.ascx"%>
<%@ Register TagPrefix="Portal" TagName="Divider" Src="~/ModuleDivider.ascx"%>
<TABLE width="100%">
	<TR>
		<TD class="ModuleFrame"><portal:title id="Title1" EditUrl="~/CommerceModules/Admin/Products.aspx" EditText="Products Admin"
				runat="server"></portal:title>
			<table width="100%">
				<TBODY>
					<tr>
						<TD><asp:datalist id="MyList" runat="server" RepeatColumns="2">
								<ItemTemplate>
									<table border="0" width="300">
										<tr>
											<td width="25">
												&nbsp
											</td>
											<td width="100" valign="middle" align="right">
												<a href='CommerceModules/ProductDetails.aspx?productID=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>'>
													<img src='ProductImages/thumbs/<%# DataBinder.Eval(Container.DataItem, "ProductImage") %>' width="100" height="75" border="0">
												</a>
											</td>
											<td width="200" valign="middle">
												<a href='CommerceModules/ProductDetails.aspx?productID=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>'>
													<span class="ProductListHead">
														<%# DataBinder.Eval(Container.DataItem, "ModelName") %>
													</span>
													<br>
													<br>
												</a><span class="ProductListItem"><b>Special Price:</b>
													<%# FormatPrice((decimal)DataBinder.Eval(Container.DataItem, "UnitCost"),(decimal)DataBinder.Eval(Container.DataItem, "OldCost")) %>
												</span>
												<br>
												<br>
												<a href='CommerceModules/AddToCart.aspx?productID=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>' onclick="ShowCartUpdate();" >
													<asp:Image id="Image1" runat="server" AlternateText="Click here to add this item to your shopping cart"
														ImageUrl="~/images/add_to_cart.gif"></asp:Image></span> </a>
											</td>
										</tr>
									</table>
								</ItemTemplate>
							</asp:datalist></TD>
					</tr>
				</TBODY>
			</table>
			<PORTAL:DIVIDER id="Divider1" runat="server"></PORTAL:DIVIDER></TD>
	</TR>
</TABLE>
