<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI._Default" %>
<%@ Register TagPrefix="uc1" TagName="HomeHeader" Src="Modules/HomeHeader.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Poll" Src="Modules/Poll.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Floor1" Src="Modules/Floor1.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Floor2" Src="Modules/Floor2.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Floor3" Src="Modules/Floor3.ascx" %>
<%@ Register TagPrefix="uc1" TagName="PdtReview" Src="Modules/PdtReview.ascx" %>
<%@ Register TagPrefix="uc1" TagName="BuyLimited1001" Src="Modules/BuyLimited1001.ascx" %>
<%@ Register TagPrefix="uc1" TagName="HotPdts" Src="Modules/HotPdts.ascx" %>
<%@ Register TagPrefix="uc1" TagName="HomeTopSale1" Src="Modules/HomeTopSale1.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<!--#include file="../../inc/encoding.inc"-->
		<title><%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->	
        <script type="text/javascript">var shopFolder="<%=webSite %>";</script>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/pic_switch.js" type="text/javascript"></script>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/hfpic_switch.js" type="text/javascript"></script>
        <script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/AjaxLimitDefault.js" type="text/javascript"></script>
		<script src="<%=webSite %>inc/tab.js" type="text/javascript"></script>
        <script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/jcarousellite_1.0.1.js" type="text/javascript"></script>
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/home.css" type="text/css" rel="stylesheet" />
	</head>
	<body>
		<uc1:HomeHeader id="HomeHeader" runat="server"></uc1:HomeHeader>
	    <div class="xp-w clear">	
	        <div class="home-left">
	        	<div class="home-left-left clear">
                    <div style="zoom:1;">
	                <!--广告开始-->
                    <div id="play" style=" margin-bottom:10px;">
                        <div id="play_list">
                            <div id="pics" style="display:none;"></div>
                            <div id="piclinks" style="display:none;"></div>
                            <div id="picname" style="display:none;"></div>
                        </div>
                        <div id="play_text">
                            <div class="ha">
					        <div class="prev2 prev2 disabled">&nbsp;</div>
					        </div>
                            <div id="carousel" class="hcarousel">
                                <div class="jCarouselLite">
						            <ul>
                                    </ul>
						        </div>
                            </div>
                            <div class="hb">
                            <div class="next2 next2">&nbsp;</div>
                            </div>
                            
                        </div>
                        <div class="clear"></div>
                    </div>
                    <script type="text/javascript" language="javascript">
				        $("#pics").html('<%=GetflashADsImg(21)%>');
				        $("#piclinks").html('<%=GetflashADsLink(21)%>');
				        $("#picname").html('<%=GetflashADsName(21)%>');
			        </script>
                    <script type="text/javascript">
                        $(document).ready(function(){
                             $("#carousel").jCarouselLite({btnNext: ".next2",btnPrev: ".prev2",visible: 3,circular: false,scroll:1,speed:300});
                        });
                    </script>
                    <!--广告结束-->
                    </div>				        
	            </div>	
	            <div class="clear">
	            <!--最新商品列表开始-->
                <uc1:HotPdts id="HotPdts1" runat="server"></uc1:HotPdts>
                <!--最新商品列表结束-->	
                </div>
		    </div>
		    <div class="home-right">
                <!--新闻开始-->
		        <div class="xp-home-nframe">
	                <div class="top">
                        <div class="title">商城公告</div>
                        <div class="more"><a href="<%=webSite %>NewsIndex.<%=config.html %>" target="_blank">更多</a></div>
                    </div>
                    <div class="text">
                        <ul class="ul_style_6">
                            <%=GetNews(1,6,30,"","","",0) %>
                        </ul>
                    </div>
                </div>
		        <!--新闻结束-->
		        
                <uc1:HomeTopSale1 id="HomeTopSale1" runat="server"></uc1:HomeTopSale1>
		    </div>	
		</div>	
		<div class="xp-w clear">
		    <!--广告开始-->
            <div id="hfplay" style=" margin-bottom:10px;">
                <div id="hfplay_list">
                    <div id="hfpics" style="display:none;"></div>
                    <div id="hfpiclinks" style="display:none;"></div>
                    <div id="hfpicname" style="display:none;"></div>
                </div>
                <div id="hfplay_text">
                    <div class="ha">
			        <div class="hfprev2 prev2 disabled">&nbsp;</div>
			        </div>
                    <div id="hfcarousel" class="hcarousel">
                        <div class="jCarouselLite">
				            <ul>
                            </ul>
				        </div>
                    </div>
                    <div class="hb">
                    <div class="hfnext2 next2">&nbsp;</div>
                    </div>
                    
                </div>
                <div class="clear"></div>
            </div>
            <script type="text/javascript" language="javascript">
		        $("#hfpics").html('<%=GetflashADsImg(26)%>');
		        $("#hfpiclinks").html('<%=GetflashADsLink(26)%>');
		        $("#hfpicname").html('<%=GetflashADsName(26)%>');
	        </script>
            <script type="text/javascript">
                $(document).ready(function(){
                     $("#hfcarousel").jCarouselLite({btnNext: ".hfnext2",btnPrev: ".hfprev2",visible: 5,circular: false,scroll:1,speed:300});
                });
            </script>
            <!--广告结束-->
		</div>
		
		<div class="xp-w">
		    <!--楼层开始-->
		    <%for (int i = 0; i < dtFloor.Rows.Count; i++){%>
		    <div class="xp-floor-styles">
                <div class="top<%=i+1 %> clear">
                    <div class="topleft<%=i+1 %>">
                        <span>
                            <%=i+1 %>F
                        </span> <%=dtFloor.Rows[i]["FloorName"]%>
                    </div>
                    <div class="topright"><%=dtFloor.Rows[i]["TopAD"]%></div>
                </div>
                <div class="body clear">
                    <div class="bodyleft">
                        <%=dtFloor.Rows[i]["ContentAD"]%>
                    </div>
                    <div class="bodyright">
                        <ul class="xp-custompdt-ul1 clear">
                        <%System.Data.DataRow[] drFloorPdt = dtFloorPdt.Select("floorid=" + dtFloor.Rows[i]["FloorID"].ToString()); %>
                        <%for (int j = 0; j < drFloorPdt.Length; j++){%>
	                        <li<%= j > 3 && j < 7 || j > 10 ? " class='even" +(i+1)+ "'" : ""%>>
                                
                                <div class="xp-pdt-img">
                                    <a href='<%=webSite %>products/product-<%=drFloorPdt[j]["ProductID"] %>.<%=config.html%>' target="_blank" ><img width="140" height="140" src="<%=webSite %>upload/ProductImg/<%=drFloorPdt[j]["ImgFolder"] %><%=drFloorPdt[j]["ThumbnailImg"] %>" alt='' /></a>
                                    <%=int.Parse(drFloorPdt[j]["PiNo"].ToString()) != 0 ? "<div class='xp-pi" + drFloorPdt[j]["PiNo"] + "'></div>" : ""%>
                                </div>
                                
                                <div class="xp-heightoverflow-cuspdtname">
                                    <a href='<%=webSite %>products/product-<%=drFloorPdt[j]["ProductID"] %>.<%=config.html%>' target="_blank" ><%=drFloorPdt[j]["ProductName"]%></a>
                                </div>
                                <%--<div class="xp-heightoverflow-cuspdtdesc"><%=drFloorPdt[j]["ShortDesc"]%></div>--%>
                                <div class="xp-marketprice">
                                    <%=GetCurrencySign()%><%=drFloorPdt[j]["MarketPrice"]%>
                                </div>
                                <div class="xp-memberprice">
                                    <% if(MemberShowPrice()) {%><%=GetCurrencySign()%><%=string.Format("{0:f2}", drFloorPdt[j]["MemberPrice"])%><% }%>
                                </div>
                            </li>								
		                <%} %>
                        </ul>
                    </div>
                </div>
            </div>
                <% if(i==0) {%>
                <div class="xp-990-ad"><%=GetAD(28)%></div>
                <%} else if(i==1){ %>
                <div class="xp-990-ad"><%=GetAD(49)%></div>
                <%} else{ %>
                
                <%} %>
            <%} %>
		    <!--end-->
		    
		</div>
		
		<div class="xp-w clear">
		    <div class="xp-activity-ad">
		        <div class="clear">
		            <div class="ada">
	                <div class="adprev adprev disabled">&nbsp;</div>
	                </div>
                    <div id="adcarousel" class="adcarousel">
                        <div class="jCarouselLite">
		                    <ul>
		                        <%=GetAD(90)%>
                            </ul>
		                </div>
                    </div>
                    <div class="adb">
                    <div class="adnext adnext">&nbsp;</div>
                    </div>
		        </div>
		    </div>
            <script type="text/javascript">
                $(document).ready(function(){
                     $("#adcarousel").jCarouselLite({btnNext: ".adnext",btnPrev: ".adprev",visible: 4,circular: false,scroll:1,speed:300});
                });
            </script>
		</div>
		
		<div class="xp-w clear">
		    <div class="content_left">
		        <!--投票开始-->
		        <uc1:Poll id="Poll" runat="server"></uc1:Poll>
		        <!--end-->
		    </div>
		    <div class="content_right">
		        <!--百悦热评开始-->
		        <uc1:PdtReview id="PdtReview" runat="server"></uc1:PdtReview>
		        <!--end-->
		    </div>
		</div>
		
		<div class="xp-w clear">
		    <uc1:Helper id="Helper1" runat="server"></uc1:Helper>
		    <uc1:Footer id="Footer1" runat="server"></uc1:Footer>
		</div>
		<%--	
			<!--#include file="../../inc/AD.inc" -->
		</div>--%>
		<asp:Literal id="ltrAD" runat="server"></asp:Literal>
		
         
	</body>
</html>