<%@ Page language="c#" Codebehind="Channel.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.Channel" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftNav2" Src="Modules/LeftNav2.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="CatSpecPdts" Src="Modules/CatSpecPdts.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<!--#include file="../../inc/encoding.inc"-->
		<title><%=categoryname=="" ? GetResourceString("ProductList") : categoryname%> <%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/channel.css" rel="stylesheet" />
		<script src="/<%=ShopFolder %>Template/<%=config.TemplateFolder%>/inc/hpic_switch.js" type="text/javascript"></script>
	</head>
	<body>
			<uc1:Header id="Header1" runat="server"></uc1:Header>
			
			<div class="xp-w clear">
			    <div class="content_left">
					<uc1:LeftNav2 id="LeftNav2" runat="server"></uc1:LeftNav2>
					
					<!--品牌开始-->
					<div class="home-brand">
	                    <div class="tm">
	                        <div class="title">品牌推荐</div>
	                        <div class="more"><a href="<%=webSite %>brands.<%=config.html%>" target="_blank">更多品牌>></a></div>
	                    </div>
	                    <div class="mm">
		                    
		                    <ul class="brand_menu clear">
			                    <%for(int i=0;i<dtFloorBrand.Rows.Count;i++){ %>
				                    <li>
					                    <a href='<%= GetUrl(dtFloorBrand.Rows[i]["ActID"].ToString(),dtFloorBrand.Rows[i]["BrandID"].ToString())%>' target="_blank">
						                    <img src='<%=webSite %><%=config.Path%>upload/BrandLogo/<%= dtFloorBrand.Rows[i]["Logo"]%>' alt='<%= dtFloorBrand.Rows[i]["BrandName"]%>' width="90" height="35" />
					                    </a>
                						
				                    </li>
			                    <%} %>
		                    </ul>
	                    </div>
                    </div>
					<!--品牌结束-->
                    
			        <!--推荐商品列表开始-->
			        <div class="lframe" style="margin-top:10px;">
                        <div class="tm">
                            <div class="title">特别推荐</div>
                        </div>
                        <div class="mm">
		                    <ul class="channel-pdt">
		                    <%for(int i=0;i<dtFloorCommend.Rows.Count;i++){ %>
                                <li class="clear">
                                    <div class="img"><a href='<%=webSite %>products/product-<%= dtFloorCommend.Rows[i]["ProductID"]%>.<%=config.html%>' target="_blank" ><img src="<%=webSite %>upload/ProductImg/<%= dtFloorCommend.Rows[i]["ImgFolder"]%><%= dtFloorCommend.Rows[i]["ProductImg"]%>" alt='' /></a></div>
                                    <div class="name"><a href='<%=webSite %>products/product-<%= dtFloorCommend.Rows[i]["ProductID"]%>.<%=config.html%>' target="_blank" ><%= dtFloorCommend.Rows[i]["ProductName"]%></a></div>
                                    <div class="pdtprice"><% if(MemberShowPrice()) {%><%=GetCurrencySign()%><span><%=string.Format("{0:f2}", dtFloorCommend.Rows[i]["MemberPrice"])%></span><% }%></div>
                                </li>
                                <li class="space"></li>
                            <%} %>
                            </ul>
                        </div>
                    </div>
			        <!--推荐商品列表结束-->                
			        
			        <!--特价商品列表开始-->
			        <uc1:CatSpecPdts id="CatSpecPdts" runat="server"></uc1:CatSpecPdts>
			        <!--特价商品列表结束-->					
			    </div>
			    <div class="content_right">
			        <div class="clear">
			            <div class="right_left">
			                <div class="clear" style=" margin-bottom:10px;">
                                <!--广告开始-->
                                <div id="play">
                                    <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">
                                        <ul>
                                        </ul>
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <script type="text/javascript" language="javascript">
                                    var cid = '<%=Request.QueryString["CatID"]%>';
	                                if(cid == "201"){
	                                    $("#pics").html('<%=GetflashADsImg(50)%>');
			                            $("#piclinks").html('<%=GetflashADsLink(50)%>');
			                            $("#picname").html('<%=GetflashADsName(50)%>');
                			            
                                    }else if(cid == "117"){
                                        $("#pics").html('<%=GetflashADsImg(51)%>');
			                            $("#piclinks").html('<%=GetflashADsLink(51)%>');
			                            $("#picname").html('<%=GetflashADsName(51)%>');
                			            
                                    }else if(cid == "83"){
                                        $("#pics").html('<%=GetflashADsImg(52)%>');
			                            $("#piclinks").html('<%=GetflashADsLink(52)%>');
			                            $("#picname").html('<%=GetflashADsName(52)%>');
                			            
                                    }else if(cid == "166"){
                                        $("#pics").html('<%=GetflashADsImg(53)%>');
			                            $("#piclinks").html('<%=GetflashADsLink(53)%>');
			                            $("#picname").html('<%=GetflashADsName(53)%>');
                			            
                                    }else if(cid == "221"){
                                        $("#pics").html('<%=GetflashADsImg(54)%>');
			                            $("#piclinks").html('<%=GetflashADsLink(54)%>');
			                            $("#picname").html('<%=GetflashADsName(54)%>');
                			            
                                    }else if(cid == "211"){
                                        $("#pics").html('<%=GetflashADsImg(55)%>');
			                            $("#piclinks").html('<%=GetflashADsLink(55)%>');
			                            $("#picname").html('<%=GetflashADsName(55)%>');
                			            
                                    }else if(cid == "340"){
                                        $("#pics").html('<%=GetflashADsImg(56)%>');
			                            $("#piclinks").html('<%=GetflashADsLink(56)%>');
			                            $("#picname").html('<%=GetflashADsName(56)%>');
                			            
                                    }       
                                </script>
                                <!--广告结束-->
                            </div>
					        
					        <!--最新商品列表开始-->
					        <div class="new-frame">
                                <div class="tm">
                                    最新商品上架
                                </div>
                                <div class="mm clear">
                                    <%for(int i=0;i<dtFloorNewest.Rows.Count;i++){ %>
                                    	
                                        <dl>
			                                <dt>
				                                <a href='<%=webSite %>products/product-<%= dtFloorNewest.Rows[i]["ProductID"]%>.<%=config.html%>' target="_blank"><img width="100" height="100" src="<%=webSite %>upload/ProductImg/<%= dtFloorNewest.Rows[i]["ImgFolder"]%><%= dtFloorNewest.Rows[i]["ThumbnailImg"]%>" alt="" /></a>
                                             </dt>
			                                <dd class="pdtname">
			                                    <a href='<%=webSite %>products/product-<%= dtFloorNewest.Rows[i]["ProductID"]%>.<%=config.html%>' target="_blank" ><%= dtFloorNewest.Rows[i]["ProductName"]%></a>
                                            </dd>
			                                <dd class="pdtprice">
				                                <% if(MemberShowPrice()) {%>会员价：<span><%=GetCurrencySign()%><%=string.Format("{0:f2}", dtFloorNewest.Rows[i]["MemberPrice"])%></span><% }%>
			                                </dd>
		                                </dl>								
	                                    
                                    <%} %>
                                </div>
                            </div>
					        <!--最新商品列表结束-->
			            </div>
			            <div class="right_right">
			                <div class="xp-home-news">
                                <div class="tm">
                                    <div class="title"><%= dtChannel.Rows[0]["name"]%> 活动专场</div>
                                </div>
                                <div class="mm" style="height:156px; overflow:hidden;">
                                    <%for(int i=0;i<dtFloorAct.Rows.Count;i++){ %>
                                        <ul class="ul_style_7">
                                            <li><a href="<%=webSite %>Activities/Activity-<%= dtFloorAct.Rows[i]["ActivityID"]%>.<%=config.html%>" target="_blank"><%= dtFloorAct.Rows[i]["Title"]%></a></li>
                                        </ul>        
                                    <%} %>
                                </div>
                            </div>
                            <div style="margin-bottom:10px;">
                    	        <%= dtChannel.Rows[0]["productad"]%>
                            </div>
                            					                          
			            </div>
			            
			        </div>
			        <!--楼层 start-->
			        <%for (int i = 0; i < dtFloor.Rows.Count; i++){%>
			        <div class="custompdts">
                        <div class="tm">
                            <div class="title"><%=dtFloor.Rows[i]["FloorName"]%></div>
                            <div class="ad"><%=dtFloor.Rows[i]["TopAD"]%></div>
                        </div>
                        <div class="mm clear">
                            <div class="cuspdt-pdt">
                                <%System.Data.DataRow[] drFloorPdt = dtFloorPdt.Select("floorid=" + dtFloor.Rows[i]["FloorID"].ToString()); %>
                                <%for (int j = 0; j < drFloorPdt.Length; j++){%>
                                    <dl>
			                            <dt>
				                            <a href='<%=webSite %>products/product-<%=drFloorPdt[j]["ProductID"] %>.<%=config.html%>' target="_blank"><img src="<%=webSite %>upload/ProductImg/<%=drFloorPdt[j]["ImgFolder"] %><%=drFloorPdt[j]["Img5"] %>" alt="" /></a>
                                            <%=int.Parse(drFloorPdt[j]["PiNo"].ToString()) != 0 ? "<div class='xp-pi" + drFloorPdt[j]["PiNo"] + "'></div>" : ""%>
                                         </dt>
			                            <dd class="pdtname">
				                            <div class="xp-heightoverflow-cuspdtname">
                                                <a href='<%=webSite %>products/product-<%=drFloorPdt[j]["ProductID"] %>.<%=config.html%>' target="_blank" ><%=drFloorPdt[j]["ProductName"]%></a>
                                            </div>
			                            </dd>
			                            <dd class="pdtprice">
				                            <% if(MemberShowPrice()) {%>会员价：<span><%=GetCurrencySign()%><%=string.Format("{0:f2}", drFloorPdt[j]["MemberPrice"])%></span><% }%>
			                            </dd>
		                            </dl>
                                <%} %>
                            </div>
                            <div class="cuspdt-ad"><%=dtFloor.Rows[i]["ContentAD"]%></div>
                        </div>
                    </div>
                    <%} %>
                    
                    <!--楼层 end-->
			    </div>
			</div>
			<div class="footer-bg">
		    <uc1:Helper id="Helper1" runat="server"></uc1:Helper>
		    <uc1:Footer id="Footer1" runat="server"></uc1:Footer>
		    </div>
	</body>
</html>
