<%@ Control Language="c#" AutoEventWireup="false" Codebehind="CommendProduct.ascx.cs" Inherits="XpShop.WebUI.Modules.CommendProduct" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<div class="mframe">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="tm"><div class="on"><%=GetResourceString("CommendProducts")%></div><div class="more"><a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>CommendProducts.aspx<%}else{%>CommendProducts.<%=config.html%><%}%>'>more</a></div></div>
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<%BindCommendProductList(config.CommendProductSizeInIndex);%>
		<asp:DataList id="dlCommendProductts"
				CellPadding="0"
				CellSpacing="0"
				GridLines="None"
				RepeatColumns="4"
				RepeatDirection="Horizontal"
				RepeatLayout="Table"
				Visible=false 
				HorizontalAlign="left"
				runat="server">
				<ItemStyle CssClass="homeproduct"/>
				<ItemTemplate>									
                    <table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
				        <tr>
					        <td align="center">
						        <A href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>Show.aspx?PID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%><%}else{%>products/Product_<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%><%}%>' target=_blank>
						        <IMG width="110" height="166" src="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%=config.Path%>upload/<%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>">
						        </A>
					        </td>
				        </tr>
				        <tr>
				            <td valign="top" align="center">
						        <div class="productname"><a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>Show.aspx?PID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%><%}else{%>products/Product_<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%><%}%>' title='<%#DataBinder.Eval(Container.DataItem,"Name")%>' target=_blank><%#DataBinder.Eval(Container.DataItem,"Name")%></a></div>
				            </td>
				        </tr>
				        <%--<tr>
				            <td>
						        <%=GetResourceString("MarketPrice")%>：<b><%=GetCurrency()%><%#DataBinder.Eval(Container.DataItem,"MarketPrice","{0:f}")%></b>
				            </td>
				        </tr>--%>
				        <tr>
				            <td align="center">
						        <% if(XpShop.WebUI.WebUtils.MemberShowPrice()) {%><span class="memberprice"><%=GetCurrency()%><%#DataBinder.Eval(Container.DataItem,"MemberPrice","{0:f}")%></span><% }%>
				            </td>
				        </tr>
				        <tr>
					        <td align=center>
						        <%# GetAliPayButton(DataBinder.Eval(Container.DataItem,"ProductID").ToString())%>
					        </td>
				        </tr>
			        </table>
				</ItemTemplate>
			</asp:DataList>
			<div class="clear"></div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
</div>