<%@ Control Language="c#" AutoEventWireup="true" Codebehind="TagPdts.ascx.cs" Inherits="XpShop.WebUI.Modules.TagPdts" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="ComdPdts" Src="ComdPdts.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SpecPdts" Src="SpecPdts.ascx" %>
<%@ Register TagPrefix="uc1" TagName="NewPdts" Src="NewPdts.ascx" %>
<div class="xp-home-frame" id="hcs-pdt">
    <div class="top">
        <div class="rank_subcat clear">
            <span class="menuitem tabon">热卖</span>
            <span class="menuitem tabout">推荐</span>
            <span class="menuitem tabout">特价</span>
            <span class="menuitem tabout">新品</span>
        </div>
    </div>
    <div class="text" style=" padding:10px 5px;">
        <div class="salerank1_tabitem">
            <%BindTagPdts(7, "hot", "rptHotPds", true); %>
            <ul class="xp-custompdt-ul1 clear">
	        <asp:Repeater id="rptHotPds" runat="server">
		        <ItemTemplate>	
                    <li<%#Container.ItemIndex > 3 ? " class='even1'" : ""%>>
                        
                        <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-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 class="salerank1_tabitem">
            <uc1:ComdPdts id="ComdPdts" runat="server"></uc1:ComdPdts>
        </div>
        <div class="salerank1_tabitem">
            <uc1:SpecPdts id="SpecPdts" runat="server"></uc1:SpecPdts>
        </div>
        <div class="salerank1_tabitem">
            <uc1:NewPdts id="NewPdts1" runat="server"></uc1:NewPdts>
        </div>
    </div>
</div>
<script type="text/javascript">
    $('#hcs-pdt').ready(function(){
        SetTab('#hcs-pdt span.menuitem','#hcs-pdt div.salerank1_tabitem',{e:'mouseover'});
    });
</script>