<%@ Control Language="c#" AutoEventWireup="true" Codebehind="TopSaleProduct.ascx.cs" Inherits="XpShop.WebUI.Modules.TopSaleProduct" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>

<!--首页分类销售排行榜-->
<%BindTopSaleProductList(10, 0, "rptTopSale1");%>
<div class="xp-hometopsale" id="TopSaleContent1001">
    <div class="tm">
        热销排行榜
    </div>
    <div class="mm">
        <ul class="ul_topcontent salerank1_tabitem">
            <li>
                <asp:Repeater ID="rptTopSale1" runat="server">
                    <ItemTemplate>
                        <ul class="noimg noimg1" <%#Container.ItemIndex == 0 ? "style='display:none;'" : "style=' '"%>>
                            <li class="text clear">
                                <div class="index"><%#Container.ItemIndex+1 %></div>
                                <div class="img">
                                    <a href='/<%=ShopFolder %>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="<%#DataBinder.Eval(Container.DataItem,"ProductName")%>" /></a>
                                </div>
                                <div class="titile"><a href='/<%=ShopFolder %>products/product-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%>' title='<%#DataBinder.Eval(Container.DataItem,"ProductName")%>' target="_blank"><%#DataBinder.Eval(Container.DataItem,"ProductName")%></a></div>
                                <div class="price">售价：<span style="color:#b42f5e;"><% if(MemberShowPrice()) {%><%--<%=GetCurrencySign()%>--%><%#DataBinder.Eval(Container.DataItem,"MemberPrice","{0:f}")%><% }%></span></div>
                            </li>
                        </ul>
                        <ul class="img img1" <%#Container.ItemIndex == 0 ? "style=' '" : "style='display:none;'"%>>
                            <li class="text clear">
                                <div class="index"><%#Container.ItemIndex+1 %></div>
                                <div class="img">
                                    <a href='/<%=ShopFolder %>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="<%#DataBinder.Eval(Container.DataItem,"ProductName")%>" /></a>
                                </div>
                                <div class="titile"><a href='/<%=ShopFolder %>products/product-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%>' title='<%#DataBinder.Eval(Container.DataItem,"ProductName")%>' target="_blank"><%#DataBinder.Eval(Container.DataItem,"ProductName")%></a></div>
                                <div class="price">售价：<span style="color:#b42f5e;"><% if(MemberShowPrice()) {%><%--<%=GetCurrencySign()%>--%><%#DataBinder.Eval(Container.DataItem,"MemberPrice","{0:f}")%><% }%></span></div>
                            </li>
                        </ul>
                    </ItemTemplate>
                </asp:Repeater>
            </li>
            
        </ul>

    </div>
</div>
<script type="text/javascript">
	$(document).ready(function(){
		$(".noimg1").each(function(){
		    var obj = $(this);
		    $(this).children(".text div.titile").mouseover(function(){
		        $('ul.img1').hide();
		        $('.noimg1').show();
		        obj.next().show();
		        obj.hide();
		    });
		});
	});
</script>