<%@ OutputCache Duration="60" VaryByParam="*" %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="HotProduct.ascx.cs" Inherits="XpShop.WebUI.Modules.HotProduct" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<div class='mframe'>
	<table width="100%" cellspacing="0" cellpadding="0">
		<tr>
			<td class="tl"></td>
			<td class="tm">
				<span class=tt>热卖商品</span>
			</td>
			<td class="tr"></td>
		</tr>
	</table>
	<table width="100%" cellspacing="0" cellpadding="0">
		<tr>
			<td class="ml"></td>
			<td class="mm">
			<%BindHotProductList(config.HotProductSizeInIndex);%>
			<asp:DataList id="dlHotProducts"
					CellPadding="5"
					CellSpacing="0"
					GridLines="None"
					RepeatColumns="3"
					RepeatDirection="Horizontal"
					RepeatLayout="Table"
					Visible=false
					Width="100%"
					runat="server">
					<ItemStyle CssClass="alignCenterTop"/>
					<ItemTemplate>
						<table cellpadding="5" cellspacing="0" border="0" width="180">
							<tr>
								<td colspan="2" align="left"><img src="images/items.gif" border="0" align=absmiddle><a href='Show.aspx?PID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%>' target=_self ><%#DataBinder.Eval(Container.DataItem,"Name")%></a></td>
							</tr>
							<tr>
								<td >
									<a href='Show.aspx?PID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%>'><img src='upload/<%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>' border=0 width="90"></a>
								</td>
								<td>
									<span class="thumbnailTitle">市场价：<%#DataBinder.Eval(Container.DataItem,"MarketPrice","{0:c}")%><br>会员价：<%#DataBinder.Eval(Container.DataItem,"MemberPrice","{0:c}")%>
									<% if(config.MarkUnit == 1) {%><br>积分：<%#DataBinder.Eval(Container.DataItem,"Score")%><% }%>
									<br><a href="#" onclick='addtocart(<%#DataBinder.Eval(Container.DataItem,"ProductID")%>)'>购买</a> | <a href='Actions.aspx?action=Favorite&ProductID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%>&ReturnUrl=<%=Request.Url%>'>收藏</a><br>
									<%# GetAliPayButton(DataBinder.Eval(Container.DataItem,"ProductID").ToString())%></span>
								</td>
							</tr>
						</table>
					</ItemTemplate>
				</asp:DataList>
			</td>
			<td class="mr"></td>
		</tr>
	</table>
	<table width="100%" cellspacing="0" cellpadding="0" >
		<tr>
			<td class="bl"></td>
			<td class="bm">&nbsp;</td>
			<td class="br"></td>
		</tr>
	</table>
</div>