<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Floor.ascx.cs" Inherits="XpShop.WebUI.Modules.Floor" %>
<%@ Register TagPrefix="uc1" TagName="HomeTopSale1" Src="HomeTopSale1.ascx" %>
<%-- 
/// <summary>
/// 通过标签获取商品
/// </summary>
/// <param name="cids">逗号分隔的分类ID字符串</param>
/// <param name="topNum">商品数量</param>
/// <param name="tagType">标签 specialoffer;hot;commend;clear;new</param>
/// <param name="isHomeShow">是否首页显示</param>
/// BindFloorPdts(string cids,int topNum, string tagType, bool isHomeShow)
--%>
<%BindFloorPdts("2",11,"commend", true);%>
<div class="xp-floor-styles">
    <div class="top clear">
        <div class="topleft"><span>1F</span> 家用电器<%--<%= getCategoryName(1, 2) %>--%>馆</div>
        <div class="topright"><%=GetAD(27)%></div>
    </div>
    <div class="body clear">
        <div class="bodyleft">
            <!--类别销售排行开始-->
            <uc1:HomeTopSale1 id="HomeTopSale1_1" runat="server"></uc1:HomeTopSale1>
            <!--类别销售排行结束-->
            <%=GetAD(26)%>
        </div>
        <div class="bodyright">
            <ul class="xp-custompdt-ul1 clear">
            <asp:Repeater id="rptProduct" runat="server">
		        <ItemTemplate>	
		            <li<%#Container.ItemIndex > 3 && Container.ItemIndex < 7 || Container.ItemIndex > 10 ? " class='even'" : ""%>>
                        
                        <div class="xp-pdt-img">
                            <a href='<%=webSite %>products/product-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%>' target="_blank" ><img width="140" height="140" src="<%=webSite %>upload/ProductImg/<%# DataBinder.Eval(Container.DataItem,"ImgFolder")%><%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>" alt='' /></a>
                        </div>
                        
                        <div class="xp-heightoverflow-cuspdtname">
                            <a href='<%=webSite %>products/product-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%>' target="_blank" ><%#DataBinder.Eval(Container.DataItem,"ProductName")%></a>
                        </div>
                        <div class="xp-heightoverflow-cuspdtdesc"><%#DataBinder.Eval(Container.DataItem,"ShortDesc")%></div>
                        <div class="xp-marketprice">
                            <%=GetCurrencySign()%><%#DataBinder.Eval(Container.DataItem,"MarketPrice","{0:f}")%><%--&nbsp;&nbsp;&nbsp;&nbsp;<span><%#int.Parse(DataBinder.Eval(Container.DataItem,"Quantity").ToString()) > 20 ? "" : ("仅剩<font color=red><b>" + DataBinder.Eval(Container.DataItem,"Quantity") + "</b></font>件")%></span>--%>
                        </div>
                        <div class="xp-memberprice">
                            <% if(MemberShowPrice()) {%><%=GetCurrencySign()%><%#DataBinder.Eval(Container.DataItem,"MemberPrice","{0:f}")%><% }%>
                        </div>
                    </li>								
		        </ItemTemplate>
	        </asp:Repeater>
            </ul>
        </div>
    </div>
</div>