<%@ 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("166,221,298,206,211,218,340", 14, "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(130)%></div>
    </div>
    <div class="body clear">
        <div class="bodyleft">
            <%=GetAD(129)%>
            <!--类别销售排行开始-->
            <uc1:HomeTopSale1 id="HomeTopSale1_1" runat="server"></uc1:HomeTopSale1>
            <!--类别销售排行结束-->
        </div>
        <div class="bodyright">
            <ul class="xp-custompdt-ul1 clear">
            <asp:Repeater id="rptProduct" runat="server">
		        <ItemTemplate>	
		            <li<%#Container.ItemIndex > 7 ? " class='even'" : ""%>>
                        
                        <div class="xp-pdt-img"<%#Container.ItemIndex > 7 ? " style='display:none'" : ""%>>
                            <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-pdt-img"<%#Container.ItemIndex > 7 ? "" : " style='display:none'"%>>
                            <a href='<%=webSite %>products/product-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%>' target="_blank" ><img src="<%=webSite %>upload/ProductImg/<%# DataBinder.Eval(Container.DataItem,"ImgFolder")%><%#DataBinder.Eval(Container.DataItem,"ProductImg")%>" 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"><%#Regex.Replace(DataBinder.Eval(Container.DataItem, "ShortDesc").ToString(), @"<[^>]*>", "", RegexOptions.IgnoreCase)%></div>
                        
                        <div class="xp-memberprice">
                            <% if(MemberShowPrice()) {%><%=GetCurrencySign()%><%#DataBinder.Eval(Container.DataItem,"MemberPrice","{0:f}")%><% }%>
                        </div>
                    </li>								
		        </ItemTemplate>
	        </asp:Repeater>
            </ul>
        </div>
    </div>
</div>