<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Show.aspx.cs" Inherits="XpShop.Store.Show" %>


<%@ Register TagPrefix="uc1" TagName="Footer" Src="/Template/XpShopFreeDemo_1_1/Modules/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="/Template/XpShopFreeDemo_1_1/Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="/Template/XpShopFreeDemo_1_1/Modules/Header.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"-->
		<!--#include file="../inc/show_head.inc"-->
		<link rel="stylesheet" href="<%=webSite %>store/style/skin.css" type="text/css"/>
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/tabs.css" rel="stylesheet" />
		<link href="<%=webSite %>store/style/tabs.css" rel="stylesheet" />
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/pop.css" type="text/css" rel="stylesheet" />
		<script src="<%=webSite %>inc/tab.js" type="text/javascript"></script>
    	<script src="<%=webSite %>store/inc/custom_show.js" type="text/javascript"></script>--%>
		<script src="<%=webSite %>inc/getParmByUrl.js" type="text/javascript"></script>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/multi_popup.js" type="text/javascript"></script>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/AddFav.js" type="text/javascript"></script>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/jquery.easydrag.handler.beta2.js" type="text/javascript"></script>
		<script src="<%=webSite %>store/inc/ProductAsk.js" type="text/javascript"></script>
		<script src="<%=webSite %>store/inc/ProductReview.js" type="text/javascript"></script>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/AddStockReg.js" type="text/javascript"></script>
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/package.css" rel="stylesheet" type="text/css"/>
        <script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/jcarousellite_1.0.1.js" type="text/javascript"></script>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/jquery.jqzoom.min.js" type="text/javascript"></script>
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/jqzoom.css" type="text/css" rel="stylesheet" />
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/show_AjaxLimit.js" type="text/javascript"></script>
				<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/PageBar.css" rel="stylesheet" type="text/css"/>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/PageBar.js" type="text/javascript"></script>

		<script type="text/javascript">
		    var extend = '<%=config.html %>';
			var baseUrl="<%=webSite %>xianshi/products";
			var shopFolder="<%=webSite %>";
			var compareUrl="<%=webSite %>Compare.aspx";
			var prePage="<%=GetResourceString("PreviousPage")%>";
			var nextPage="<%=GetResourceString("NextPage")%>";
			var cid ="<%=Request.QueryString["cid"] == null ? "0" : Request.QueryString["cid"] %>";
			var page="<%=Request.QueryString["page"] == null ? "1" : Request.QueryString["page"] %>";
			var display="<%=Request.QueryString["display"] == null ? "2" : Request.QueryString["display"] %>";
			var sort="<%=Request.QueryString["OrderSort"] == null ? "1" : Request.QueryString["OrderSort"] %>";
			var memberID = <%=(CurrentUser != null && CurrentUser.Name != "anonymous") ? CurrentUser.MemberID : 0 %>;
			function gt(st,et,id)
			{
				var xt=(parseInt(et.match(/-(\d+)\s/)[1])>=parseInt(st.match(/-(\d+)\s/)[1]))?(parseInt(et.match(/-(\d+)\s/)[1])-parseInt(st.match(/-(\d+)\s/)[1])):0;
				st=parseInt(st.match(/\s(\d+)\D/)[1]*3600)+parseInt(st.split(":")[1]*60)+parseInt(st.split(":")[2]);
				et=xt*24*3600+parseInt(et.match(/\s(\d+)\D/)[1]*3600)+parseInt(et.split(":")[1]*60)+parseInt(et.split(":")[2]);
				var lT=(et-st);
				if (lt>=0){
					var _H=Math.floor(lt/3600);
					var _M=Math.floor((lt-_H*3600)/60);
					var _S=(lt-_H*3600)%60;
					document.getElementById(id).innerHTML= _H +"小时"+ _M +"分"+ _S +"秒";
					lt--;
				}else{
//					document.getElementById(this._id).innerHTML="<strong style='font-size:14px;'>抢购结束</strong>";
					clearInterval(this._interval);
				}
				var interval=setInterval(gt(st,et,id),1000);
			}
			
                $(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>
		
		<script type="text/javascript">
		    var extend = '<%=config.html %>';
			var baseUrl="<%=webSite %>";
			var shopFolder="<%=webSite %>";
			var ppfolder = "<%= PPFolder(product.CategoryNo.ToString())%>";
			var returnUrl='<%=Request.Url.AbsoluteUri %>';
			var preProduct="<%=GetResourceString("PreProduct")%>";
			var nextProduct="<%=GetResourceString("NextProduct")%>";
			var productID = '<%=Request.QueryString["PID"] %>';
			var hadFav = '<%=GetResourceString("HadFavourite") %>';
			var favSucc = '<%=GetResourceString("FavouriteSucc") %>';
		    var PageSize = 10;
            var CurrentPage = 1;
//            var showpage = false;
			var reviewType = 1;
			var thisUrl = 'ProductReview.aspx';
            var votewords = '您对我们的回复：<span class="vote_y">满意</span>(<a class="yesnum">{0}</a>)  <span class="vote_n">不满意</span>(<a class="notnum">{1}</a>)';
            var reviewvotewords = '这条评论对您：<span class="vote_y">有用</span>(<a class="yesnum">{0}</a>)  <span class="vote_n">无用</span>(<a class="notnum">{1}</a>)';
            var NotExist = '<%=GetResourceString("ProductNotExist")%>';
		    var NotForSale = '<%=GetResourceString("ProductNotForSale")%>';
		    var NotStorage = '<%=GetResourceString("ProductNotStorage")%>';
		    var Specs = "<%=product.Spec %>";
		    var SpecDesc = "<%=SpecDesc %>";
		    var catNo = '<%=GetCategoryNo(product.ProductID.ToString()) %>';
		    //add by liwenhai 要传到custom_show.js中
		    var LimitBuyPrice="<%=GetLimitBuyPrice()%>";
		    var CurrencySign="<%=GetCurrencySign()%>"
        </script>
        <script type="text/javascript">
            $(document).ready(function(){
            $(".jqzoom").jqueryzoom({
				            xzoom: 300,
				            yzoom: 300,
				            offset: 10,
				            position: "right",
 				            preload:1,
				            lens:1
			            });
            });
       </script>
		<style type="text/css">
			.dl_left{clear:left;float:left;}
			.dt_left{float:left;font-weight:bold;}
			.dd_left{float:left;}
		</style>
	</head>
	<body>
			<uc1:Header id="Header1" runat="server"></uc1:Header>
			<div class="xp-w clear">
				<div id="content_left">
			    <!--位置导航开始-->
		        <div class="xp-show-path"><div class="xp-w"><%=GetCurrentPosition() %></div></div>
		            <!--位置导航结束-->
	            
		            <div class="xp-store-lframe">
		                <div class="tm">购买本商品的顾客还买过</div>
		                <div class="mm">
		                    <ul class="xp-ul-storehot">
    		                    <li>
    		                    <asp:Repeater ID="rptAlsoPurchased" 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 height="53" width="70" src="<%=webSite %><%=config.Path%>upload/ProductImg/<%# PPFolder(DataBinder.Eval(Container.DataItem,"CategoryNo").ToString())%>/<%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>" 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"><% if(MemberShowPrice()) {%><%=GetCurrencySign()%><%#DataBinder.Eval(Container.DataItem,"MemberPrice","{0:f}")%><% }%></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 %><%=config.Path%>upload/ProductImg/<%# PPFolder(DataBinder.Eval(Container.DataItem,"CategoryNo").ToString())%>/<%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>" 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"><% if(MemberShowPrice()) {%><%=GetCurrencySign()%><%#DataBinder.Eval(Container.DataItem,"MemberPrice","{0:f}")%><% }%></div>
                                            </li>
                                        </ul>
                                    </ItemTemplate>
    		                    </asp:Repeater>
    		                    </li>
    		                </ul>
		                </div>
		            </div>	
                    <%--购买本商品的顾客还买过--%>
            
		            	        
		            <%--本店热销开始--%>
		            <div class="xp-store-lframe">
		                <div class="tm">商家热卖</div>
		                <div class="mm">
		                    <ul class="xp-ul-storehot">
    		                    <li>
    		                    <asp:Repeater ID="rptHotPdt" 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 height="53" width="70" src="<%=webSite %><%=config.Path%>upload/ProductImg/<%# PPFolder(DataBinder.Eval(Container.DataItem,"CategoryNo").ToString())%>/<%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>" 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"><% if(MemberShowPrice()) {%><%=GetCurrencySign()%><%#DataBinder.Eval(Container.DataItem,"MemberPrice","{0:f}")%><% }%></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 %><%=config.Path%>upload/ProductImg/<%# PPFolder(DataBinder.Eval(Container.DataItem,"CategoryNo").ToString())%>/<%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>" 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"><% if(MemberShowPrice()) {%><%=GetCurrencySign()%><%#DataBinder.Eval(Container.DataItem,"MemberPrice","{0:f}")%><% }%></div>
                                            </li>
                                        </ul>
                                    </ItemTemplate>
    		                    </asp:Repeater>
    		                    </li>
    		                </ul>
		                </div>
		            </div>		        
		            <%--本店热销结束--%>
                    
                    
<%--                    <%=GetAD(92)%>
--%>				</div>

				<div id="content_right">
				    <div id="product">
				        <div class="pdtinfo-title">
				            <div class="pdtname"><%=product.ProductName%></div>
				            <div class="pdtdesc"><%=product.ShortDesc%></div>
				        </div>
					    <!--商品图片开始-->
					    <div class="picture">
						    <div class="clear">
						        <table>
					                <tr>
					                    <td id="thumbnail_bimg" align="center">
					                        <div class="clear jqzoom" style=" margin:0px auto; text-align:center; overflow:hidden;">
					                        <% if(dtRelImg.Rows.Count>0){%> 
					                        <img id="thumbnail_img" src="<%=webSite %>upload/ProductImg/<%=dtRelImg.Rows[0]["imgfolder"]%>/<%=dtRelImg.Rows[0]["img2"]%>"  jqimg="<%=webSite %><%=config.Path%>upload/ProductImg/<%=dtRelImg.Rows[0]["imgfolder"]%>/<%=dtRelImg.Rows[0]["img1"]%>" onload="if(this.width > this.height && this.width>350)this.width=350;if(this.height > this.width && this.height>350)this.height=350;" />
					                        <%}%>
									        </div>
					                    </td>
					                </tr>
					            </table>
						        <%if (product.IsBuyLimited == 1){ %>
							        <div class="picture_div"><%=GetTagImg(4, 0, 0)%></div>
							    <%} %>
						    </div>
						    <div class="subimg clear">
						        <div class="a">
						        <div class="prev prev1 disabled">&nbsp;</div>
						        </div>
                                <div class="carousel main">
                                    <div class="jCarouselLite">
							            <ul class="thumbnail_ul">
								            <%=BindRelatedImgs()%>
							            </ul>
							        </div>
                                </div>
                                <div class="b">
                                <div class="next next1">&nbsp;</div>
                                </div>
                                <script type="text/javascript">
                                    $(document).ready(function(){
                                         $(".carousel").jCarouselLite({btnNext: ".next1",btnPrev: ".prev1",visible: 5,circular: false,scroll:1,speed:300});
                                    });
                                </script>                                      
                                 <div style="clear:both;"></div>
                                 <a id="viewbig"><div class="viewimg"></div></a>
						    </div>
					    </div>
					    <!--商品图片结束-->
					    <!--商品信息开始-->
					    <div class="info">
						    <form name="pDetails" action='<%=webSite %>cart.<%=config.html %>?pid=<%=product.ProductID%>' method="post" target="_blank">
						    <!--记录选择的商品规格开始-->
						    <input type="hidden" id="GID" name="GID" value="0" /><input type="hidden" id="spectext" name="spectext" value="" /><input type="hidden" id="specdesc" name="spectdesc" value="" />
						    <!--记录选择的商品规格结束-->
						    <div>
						        <span style="background:#6c737d; padding:3px 6px 2px; color:#fff;">商家</span>
						        <span style="font-weight:bold; color:#4d4d4d; padding:3px 3px 2px;"><%=product.SupplierName%></span>
						        <span><img src="<%=webSite %>Template/<%=config.TemplateFolder%>/images/fwbz.jpg" style=" vertical-align:middle;" /></span>
						    </div>
						    <table align="left" cellpadding="5" cellspacing="0" border="0" class="subinfo">
							    <tr>
								    <th>产品型号：</th>
								    <td><span id="Span1"><%=product.ProductNo%></span></td>
							    </tr>
							    <tr>
								    <th>库存情况：</th>
								    <td>
								        <div id="ShowSorage"><%=product.Storage > 0 ? "现货" : "缺货<span id='stockreg_info' class='pdt_tdspan'>(到货通知)</span>"%></div>
								    </td>
							    </tr>
							    <tr>
								    <th><%=GetResourceString("ProductRating")%>：</th>
								    <td><div class="pingfen<%=Convert.ToInt32(product.PingFen)==0 ? 5 : Convert.ToInt32(product.PingFen)%>"></div><a href='<%=webSite %>Review-<%=product.ProductID%>-1-1.<%=config.html %>' target="_blank"><span class="pdt_tdspan">(已有<%=product.Reviews%>人评论)</span></a></td>
							    </tr>
							    <tr>
								    <th>市&nbsp;场&nbsp;价：</th>
								    <td class="xp-show-marketprice"><%=GetCurrencySign()%><%=string.Format("{0:f}",product.MarketPrice)%></td>
							    </tr>
							    <% if(MemberShowPrice()) {%>
							    <tr>
								    <th>会&nbsp;员&nbsp;价：</th>
								    <td class="xp-show-memberprice"><%=GetCurrencySign()%><%=string.Format("{0:f}",product.MemberPrice)%></td>
							    </tr>
							    <% }else{%>
							    <tr>
								    <td colspan="2" style="font-size:15px; color:#d6201c; font-weight:bold;">升级为会员即可享受超低会员价</td>
							    </tr>
							    <%} %>
							    <%--<%if (product.IsBuyLimited == true){ %>--%>
							    <tr>
								    <th>抢&nbsp;购&nbsp;价：</th>
								    
							        <td class="xp-show-memberprice"><%=GetCurrencySign()%><%=GetLimitBuyPrice()%></td>
                                </tr>
							    <%--<tr>
							        <th>有效时间：剩余:<%=GetQuantity()%>件</th>
							        <td><%=GetStartTime()%>~<%=GetEndTime()%></td>
							    </tr>--%>
							    <tr>
							        <th><img src="<%=webSite %>Template/<%=config.TemplateFolder%>/images/show_qgimg.gif" /></th>
					                <td>
						                <div class="xp-showqg-time" id="time<%=product.ProductID%>"></div>
						                <script type="text/javascript">
											var t='t<%=product.ProductID%>';
											var tt='time<%=product.ProductID%>';
											t=new calculagraph();
											t._id=tt;t._cT='<%=DateTime.Now%>';
											t._eT='<%=GetEndTime()%>';
											t._interval();
											var _xT = '<%=GetLimitedDay(GetEndTime())%>';				
										</script>
					                </td>
				                </tr>
							    <%--<%} %>--%>
							    <tr style="display:none;">
								    <th><%=GetResourceString("ProductUnit")%>：</th>
								    <td><%=product.Unit%></td>
							    </tr>
							    <% if (config.MarkUnit == 1 && product.Score > 0) {%>
							    <tr>
								    <th>赠送积分<%--<%=GetResourceString("Credit")%>--%>：</th>
								    <td><span id="score"><%=product.Score%></span><span class="pdt_tdspan">(<a href="<%=webSite %>help-9-21.html" target="_blank">积分规则</a>)</span></td>
							    </tr>
							    <% }%>
							    <% if (config.MarkUnit == 1 && product.UseScore > 0) {%>
								<tr>
								    <th>可用积分：</th>
								    <td><%=product.UseScore%></td>
								</tr>
							    <% }%>
							    <%--限时抢购--%>
								
								
								
							    <tr id="main_spec" style="display:none;">
								    <th id="spec_name">可选颜色：</th>
								    <td><ul id="pro_link"></ul></td>
							    </tr>
							    <tr id="presentcontent" style="<%=BindPresent()==0 ? "display:none" : "" %>">
							        <th><img src="<%=webSite %>Template/<%=config.TemplateFolder%>/images/show_giftsimg.gif" /></th>
							        <td style="color:#1c469c; padding-top:6px;">
							            <asp:Repeater ID="rptPrePdts" runat="server">
							            <ItemTemplate>
							            <%# DataBinder.Eval(Container.DataItem,"ProductName") %>  <span style="color:Red;">×<%# DataBinder.Eval(Container.DataItem,"PresentNum") %></span><br />
							            </ItemTemplate>
							            </asp:Repeater>
							            
							            <asp:Repeater ID="rptPreGifts" runat="server">
							            <ItemTemplate>
							            	<%# DataBinder.Eval(Container.DataItem, "GiftName")%>  <span style="color:Red;">×<%# DataBinder.Eval(Container.DataItem,"PresentNum") %></span><br />
							            </ItemTemplate>
							            </asp:Repeater>
							        </td>
							    </tr>
						    </table><div class="clear" style="height:1px; overflow:hidden;"></div>
						    <div class="clear" style=" margin-top:15px; padding:20px; *padding:0px 20px 20px; background:#fdeecd; color:#42413f; border:1px solid #fde1a2; zoom:1;">
						        <div>
						            <dl id="ChoiceSpecTip"></dl>
						        </div>
						        <div class="clear">
					                <div style="float:left; margin-right:10px; padding-top:8px;">
					                    我要购买：<input type="text" class="minibuynum" id="txtQuantity" name="txtQuantity" value='<%=product.MiniBuyNum %>' size="4" />&nbsp;件
					                </div>
						            <div style="float:left;">
						                <input type="submit" class="buy" id="btnBuy" value="" />
						            </div>
						            <div style="float:left; margin-left:8px;">
						                <input type="button" class="fav" value="" id="btnFav" />
						                
						            </div>
						        </div>
						    </div>
					    </form>
				        </div>
				        <!--商品信息结束-->
					    <div style="clear:both;"></div>
					    
					    <script type="text/javascript">
				            function getPackageInfo()
				            {
				                var packageInfojson = '<%=GetPackageInfo().Replace("'","\\'")%>';
				                if(packageInfojson != '')
				                {
				                    var json = packageInfojson.split('^');
				                    var packageInfo = '';
				                    var PackageInfo = '<%=product.PackageInfo %>'.split(',');
				                    for(var i = 0; i < json.length; i++)
				                    {
				                        packageInfo += (i != 0 ? '<div class="items clear">' : '<div class="items first clear">');
				                        packageInfo += '<div><table><tr>';
				                        eval("var Infojson=" + json[i]);
			                            productInfo = Infojson.Product;
			                            var tmp = '';
			                            $.each(productInfo,function(p,n)
                                        {
                                            tmp += (tmp == '' ? '' : '<td><font size="5">+</font><br>&nbsp;<br>&nbsp;</td>') 
                                                + '<td style="text-align:center;vertical-align:top; width:150px;"><a href="<%=webSite %>products/Product-' + n.ProductID + '.<%=config.html%>">' 
                                                + '<img src="<%=webSite %>upload/ProductImg/' + PPFolder(n.CategoryNo) + '/'
                                                + n.ThumbnailImg + '" width="100px" height="75px" /></a><br><font color="#628100">（' + n.BindSum + '件）</font><a href="<%=webSite %>products/Product-' + n.ProductID + '.<%=config.html%>">' 
                                                + n.ProductName + '</a><br>百悦价：<%=GetCurrencySign()%>' + n.MemberPrice + '<td>'
                                        });
                                        packageInfo += tmp;
                                        var packageGID = 0;
                                        $.ajax({
                                            url:'<%=webSite %>Show.aspx?NoCopyRight=1&type=ajax&Action=GetPackageGID&PackagePID=' + PackageInfo[i],
                                            cache:false,
                                            async:false,
                                            success:function(data){
                                                packageGID = data;
                                            },error:function(){alert('error:GetPackageGID');}
                                        });
				                        packageInfo += '</tr></table></div><div class="xp-package-price-info"><div style="float:right;"><h3 style="padding:0px;">' 
				                                    + Infojson.PackageName + '</h3><span><%=GetResourceString("Original")%>：<%=GetCurrencySign()%>' 
				                                    + Infojson.MarketPrice + '</span><span><%=GetResourceString("Save")%>：<%=GetCurrencySign()%>' 
				                                    + Number(Infojson.MarketPrice - Infojson.MemberPrice).toFixed(2) + '</span><span><strong class="price1"><%=GetResourceString("BundledPrice")%>：<%=GetCurrencySign()%>' 
				                                    + Infojson.MemberPrice
				                                    + '</strong></span><span><a class="actbtn btn-buy clear" href="<%=webSite %>cart.aspx?GID=' + packageGID + '&pid=' 
				                                    + PackageInfo[i] + '"  target="_blank">购买</a></span></div></div></div>';
				                    }
				                    return packageInfo;
				                 }
				                 else
				                 {return '';}
				            }
				        </script>
						
													
				        <%--相关的捆绑商品Start--%>
				        <%if (product.IsPackaged == 0&& product.PackageInfo != ""){%>
				        <div class="show_mmframe">
                            <div class="tl">
			                    优惠套餐
			                </div>
			                <div class="tm"></div>
                            <div class="mm">                                    
                                <script type="text/javascript">
                                    document.write(getPackageInfo());
                                </script>
                                <div style="clear:both;"></div>
                            </div>
                            
				        </div>
				        <%} %>
				        <%--相关的捆绑商品End--%>
					
			            <div id="fit_mframe" class="show_mmframe hide clear">
                            <div class="tl">
			                    推荐配件
			                </div>
			                <div class="tm"></div>
                            <div class="mm">                                    
                                <%BindFittings(); %>
						        <div id="Fitting">
                                    <div id="fitscroll">
                                        <ul>
						                    <asp:Repeater ID="rptFittings" Runat="server">
							                    <ItemTemplate>
								                    <li>
								                        <div class="pimg">
								                            <a href='<%=webSite %>products/product-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%>' target="_blank" ><img src="<%=webSite %><%=config.Path%>upload/ProductImg/<%# PPFolder(DataBinder.Eval(Container.DataItem,"CategoryNo").ToString())%>/<%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>"></a>
								                        </div>
								                        <div class="pname"> 
								                            <a href='<%=webSite %>products/product-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%>' target="_blank"><%#DataBinder.Eval(Container.DataItem,"ProductName")%></a>
								                        </div>
								                        <div class="pprice">
								                            <%#DataBinder.Eval(Container.DataItem,"MemberPrice")%>
								                        </div>
								                    </li>
							                    </ItemTemplate>
						                    </asp:Repeater>
                                        </ul>
                                    </div>
                                    <div class="clear"></div>  
                                </div> 
                                <div class="clear"></div>
                                <script type="text/javascript">
                                    $(document).ready(function(){
                                         if($("#fitscroll li").size() == 0){
                                            //$("#Fitting").html('暂无推荐配件');
                                            $("#fit_mframe").remove();
                                         }else{
										    $("#fit_mframe").show();
                                         }
                                    });
                                </script>       
                            </div>
				        </div>					
						
						
				        <!--Tab菜单开始-->
				        <div id="tabContainer" class="tabContainer clear">
					        <ul class="menuconainer"> 
						        <li class="menuitem tabon"><%=GetResourceString("Details")%></li> 
						        <li class="space">&nbsp;</li>
						        <li class="menuitem tabout">规格参数</li>  
						        <li class="space">&nbsp;</li>
						        <li class="menuitem tabout">包装清单</li> 
						        <li class="space">&nbsp;</li>
						        <li class="menuitem tabout">售后服务</li> 
						        <li class="space">&nbsp;</li>
						        <li class="menuitem tabout">支付配送</li> 
<%--						        <li class="space">&nbsp;</li>
						        <li class="menuitem tabout">商品评价</li> 
						        <li class="space">&nbsp;</li>
						        <li class="menuitem tabout">商家问答</li> --%>
					        </ul>
					        <div class="itemcontainer">
					            <div class="tabitem">
						            <!--详细信息开始-->
						            <%--<table cellpadding="0" cellspacing="0" width="90%">
						                <tr>
						                    <td>生产厂家：<%=product.BrandName%></td>
						                    <td style="text-align:right;">上架时间：<%=string.Format("{0:yyyy-MM-dd}", product.AddTime)%></td>
						                </tr>
						            </table>
						            <hr />--%>
						            <%=product.Description%>
						            <hr />
						            <div>
						                <%=GetAD(64)%>
						            </div>
						            <!--详细信息结束-->
					            </div> 
					            <div class="tabitem">
								    <table cellpadding="0" cellspacing="0" id="paras" class="xtable"></table>
					            </div> 
					            <div class="tabitem">
					                <%=product.PackingList %>
					            </div>
					            <div class="tabitem">
					                <%=product.AfterService%>
					            </div> 
					            <div class="tabitem">
					                <%=GetAD(89)%>
					            </div> 
					            <div class="tabitem">
1					            </div> 
					            
					            <div class="tabitem">
					            
					          </div>
					          
 
					    </div> 
				        <!--Tab菜单结束-->
				        <div id="commentTab" class="clear">
			                        <ul class="menuconainer"> 
				                        <li class="menuitem tabon">全部(<%=product.Reviews %>)</li> 
				                        <li class="space">&nbsp;</li>
				                        <li class="menuitem tabout">很好(<%=Convert.ToInt32(product.PJ5) %>)</li>  
				                        <li class="space">&nbsp;</li>
				                        <li class="menuitem tabout">较好(<%=Convert.ToInt32(product.PJ4) %>)</li> 
				                        <li class="space">&nbsp;</li>
				                        <li class="menuitem tabout">一般(<%=Convert.ToInt32(product.PJ3) %>)</li> 
				                        <li class="space">&nbsp;</li>
				                        <li class="menuitem tabout">较差(<%=Convert.ToInt32(product.PJ2) %>)</li> 
				                        <li class="space">&nbsp;</li>
				                        <li class="menuitem tabout">很差(<%=Convert.ToInt32(product.PJ1) %>)</li> 
			                        </ul>
			                        <div class="itemcontainer">
			                            <!--综合评价开始-->
		                                <div class="clear" style="padding-top:15px;">
		                                    <div class="reviewzhinfo" style="width:72%">
		                                        <div class="score clear" >
		                                            <div class="score1"><span>[23]</span>位用户评论评分：</div>
		                                            <div class="score2 store-review-star4"></div>
		                                            <div class="score3"><span class="score">4.7</span>分<span class="note">（注：只有购买过该商品的用户才能评价。）</span></div>
		                                        </div>

		                                    </div>
		                                    <div class="reviewzhbtn" style="width:23%">
		                                        <div class="store-reviewContent-viewpl"><a href='#' target="_blank">查看所有评论</a></div>
                                                <div class="store-reviewContent-fbpl"><a href='#' target="_blank">发表评论</a></div>
		                                    </div>
		                                </div>
		                                <!--综合评价结束-->
				                        <!--用户评论开始-->
			                            <div class="tabitem">
						                    <div id="review-0" class="store-reviewContent">
                                            </div>
			                            </div> 
			                            <div class="tabitem">
						                    <div id="review-1" class="store-reviewContent">
                                            </div>
			                            </div> 
			                            <div class="tabitem">
			                               <div id="review-2" class="store-reviewContent">
                                            </div>
			                            </div> 
			                             <div class="tabitem">
			                               <div id="review-3" class="store-reviewContent">
                                            </div>
			                            </div> 
			                            <div class="tabitem">
			                                <div id="review-4" class="store-reviewContent">
                                            </div>
			                            </div> 
			                            <div class="tabitem">
			                                <div id="review-5" class="store-reviewContent">
                                            </div>
			                            </div>
			                            
		                                <div class="item" id="reviewtemplate" style="display:none">
                                                <div class="rev">
                                                <div class="revinfo clear">
                                                        <div class="revhead">
                                                            <div class="revtitle"><%--标题--%>很好的本本</div>
                                                            <div class="revscore store-review-star3"></div>
                                                            <div class="revtime"><%--时间--%>2011-03-11 00:13</div>
                                                        </div>
                                                        <div class="userinfo">
                                                            <div class="icon" ><img alt="" src="http://etp2011.wsdict.com/upload/MemberGroupLogo/logo_090605160803.gif"></div>
                                                            <div class="username">admin</div>
                                                            <div class="groupname">会员：钻石会员</div>
<%--                                                            <div class="area">地区：广东</div>
--%>                                                        </div>
                                                        
                                                        <div style="float:left; width:862px; padding:0px 15px;">
                                                            <div class="revbody">
    <%--                                                                    <div class="yd"><span>优点：</span>满意，够用，加了条内存</div>
                                                                <div class="qd"><span>缺点：</span>暂时还没有发现缺点哦。</div>
                                                                <div class="fw"><span>服务：</span>满意，够用，加了条内存</div>--%>
                                                                <div class="revbody"><span>内容：</span>满意，够用，加了条内存</div>
                                                            </div>
                                                            <div class="btns">
                                                                <div class="btnreply btnbg hand">[回复]</div>
                                                                <div class="revvote"><div class="ques">我认为此评论</div><div class="vote_y hand">好(<span class="yesnum">1</span>)</div><div class="vote_n hand">不好(<span class="notnum">1</span>)</div></div>
                                                            </div>
                                                        </div>
                                                        
                                                        <div class="pf">

                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="reply" style="display:block">
                                                    <div id="reptemplate" class="reptemplate" style="display:none;">
<%--                                                    <div class="reptemplate">
--%>                                                    <div class="repname">青铜会员：<span>wolanda</span> 回复说</div>
                                                        <div class="reptime"><%--回复时间--%>2011-03-11 00:13</div>
                                                        <div class="repbody clear">回复内容</div>
                                                        <div class="separateline"></div>
                                                    </div>
                                                </div>
                                            </div>


			                            <div class="store-reviewContent-btn clear">
                                            <div style="color:#fe6601; float:left; line-height:25px;">注：只有购买过该商品的用户才能发表评价。</div>
                                            <div class="store-reviewContent-viewpl"><a href='#' target="_blank">查看所有评论</a></div>
                                            <div class="store-reviewContent-fbpl"><a href='#' target="_blank">发表评论</a></div>
                                        </div>
                                        
                                        <!--回复框开始-->
				                        <div id="ReplySumbit" style="display:none; width:100%;">
	                                        <form id="frmReply" action="">
                                                <textarea id="txtReply" name="txtReply" cols="50" rows="5"></textarea>
                                                <input type="hidden" id="hidden_reviewID" name="hidden_reviewID" value="0" />
                                                <br />
                                                <input type="button" id="btnReply" name="btnSubmit" value="提交回复" /><input type="button" id="btnCancel" value="取消" />
                                            </form>
                                        </div>
				                        <!--回复框结束-->
                                        
                                        <div class="sub_container_page" id="pageDataList1_Pager2"><!-- 翻页--><!-- 翻页结束--></div>

				                        <!--用户评论结束-->
			                        </div>
			                        
								</div>

				        <script type="text/javascript">
								var PageSize=10;
								var CurrentPage=1;
								var ReviewID=0;
								var showpage=true;
								var reviewType=1;
								var thisUrl = 'ProductReview.aspx';
								var votewords = '您对我们的回复：<span class="vote_y">满意</span>(<a class="yesnum">{0}</a>)  <span class="vote_n">不满意</span>(<a class="notnum">{1}</a>)';
								var reviewvotewords = '这条评论对您：<span class="vote_y">有用</span>(<a class="yesnum">{0}</a>)  <span class="vote_n">无用</span>(<a class="notnum">{1}</a>)';
							</script>
							<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/PageBar.css" rel="stylesheet" type="text/css"/>
							<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/ShowFunc.js" type="text/javascript"></script>
							<script type="text/javascript">
								SetTab('tabContainer',true,false);
								SetTab('commentTab',false,true);
							</script>
							
				        <!--商家问答开始-->
						<div class="show_mmframe">
                            <div class="tl" id="tabAsk">
			                    商家问答
			                </div>
			                <div class="tm"></div>
                            <div class="mm">           
	                                <div id="AskContent">
	                                <%--咨询信息开始--%>
	                                <div class="xp-store-ask-pdtask clear" id="template">
	                                    <div class="pdtask-icon"></div>
	                                    <div class="ask clear">
	                                        <div class="askcontent"><span>admin：</span></div>
	                                        <div class="asktime"></div>
	                                    </div>
	                                    <div class="reply clear">
	                                        <div class="replycontent"></div>
	                                        <div class="replytime"></div>
	                                    </div>
	                                </div>
	                                <%--咨询信息结束--%>
	                                </div>
	                                
					        	    <div class="sub_container_page" id="pageDataList1_Pager"><!-- 翻页--><!-- 翻页结束--></div>
					        	    <div>
					        	    <div class="AskLand">
					        	    	<%
						                if (CurrentUser == null || CurrentUser.Name == "anonymous")
						                {%>
					        	            <p>您需要先<a href='<%=webSite %>login.aspx?ReturnUrl=<%=webSite %>store/Show.aspx?PID=<%=Request.QueryString["PID"] %>'>登录</a>再向商家提问！</p>
					        	            
					        	        <%}
						                else{%>
						                <p class="AskLand_text">
						                向商家提问：
						                <span>(问题提交后显示可能会延迟，请耐心等待。)</span>
                                        <textarea class="textarea" id="questionMessage" rows="" cols="" name="" ></textarea>
                                        <span class="tips">
                                            <span class="wrong" style="display:none"></span>
                                            60个汉字以内
                                        </span>
                                        </p>
                                        <input type=hidden id=pid value=<%=product.ProductID %>>
                                        <input type=hidden id=cuid value=<%=CurrentUser.MemberID%>>
                                        <input type=hidden id=cuname value=<%=CurrentUser.Name%>>
                                        <input type=hidden id=sid value=<%=product.SupplierID %>>
	                                    <p class="AskLand_submit"><a id="ask_submit" ><span>提 交</span></a></div>
					        	        <%}%>
					        	        
					        	    </div>

					            </div> 
<%--	                            <div class="ReviewContent-btn clear">
                                    <div style="color:#fe6601; float:left; line-height:25px;">注：购前有任何问题，请向百悦咨询。</div>
                                    <div class="ReviewContent-viewpl"><a href='<%=webSite %>Ask-<%=Request.QueryString["PID"] %>.<%=config.html %>' target="_blank">查看所有咨询</a></div>
					                <div class="ReviewContent-fbpl"><a href='<%=webSite %>Ask-<%=Request.QueryString["PID"] %>-1.<%=config.html %>' target="_blank">发表咨询</a></div>
					                
					        	</div>--%>
                            </div>
				        </div>
				        <!--商家问答结束-->

				        <!--相关商品开始-->
				        <div class="show_mmframe">
                            <div class="tl">
			                    <%=GetResourceString("RelatedProducts")%>
			                </div>
			                <div class="tm"></div>
                            <div class="mm">                                    
                                <%BindRelatedProducts(5);%>
					            <div class="related">
				                    <ul>
			                            <asp:Repeater ID="rptRelatedProducts" Runat="server">
				                            <ItemTemplate>
				                                <li>
				                                    <table cellpadding="0">
				                                        <tr>
				                                            <td valign="top">
				                                            <a href='<%=webSite %>products/product-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%>' target="_blank" >
				                                            <img width="102" height="77" src="<%=webSite %><%=config.Path%>upload/ProductImg/<%# PPFolder(DataBinder.Eval(Container.DataItem,"CategoryNo").ToString())%>/<%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>">
				                                            </a>
				                                            </td>
				                                        </tr>
				                                        <tr>
				                                            <td>
				                                                <a href='<%=webSite %>products/product-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%>' target="_blank"><%#DataBinder.Eval(Container.DataItem,"ProductName")%></a>
				                                            </td>
				                                        </tr>
				                                        <tr>
						                                    <td>
						                                        <% if(MemberShowPrice()) {%><span class="RedWeight"><%=GetCurrencySign()%><%#DataBinder.Eval(Container.DataItem,"MemberPrice","{0:f}")%></span><% }%>
						                                    </td>
						                                </tr>
				                                    </table>
				                                </li>
				                            </ItemTemplate>
			                            </asp:Repeater>
				                    </ul>
					            </div>
					            <div class="clear"></div>
                            </div>
				        </div>
				        <!--相关商品结束-->
					    
				        <!--相关商品开始-->
				        <div class="show_mmframe">
                            <div class="tl">
			                    购买记录
			                </div>
			                <div class="tm"></div>
                            <div class="mm">                                    
                                <%BindBuyRecored(10, "dgBuyRecord"); %>
					            <asp:datagrid id="dgBuyRecord" runat="server"
                                    AutoGenerateColumns="False" Width="100%" HorizontalAlign="Center" BorderWidth="1"
                                    BorderColor="#cccccc">
                                    <ItemStyle BackColor="White"></ItemStyle>
                                    <HeaderStyle BackColor="#f5f5f5" Height="20px"></HeaderStyle>
                                    <Columns>
                                        <asp:TemplateColumn HeaderText="买家">
                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Center" Height="20px"></ItemStyle>
                                            <ItemTemplate>
	                                            <%# DataBinder.Eval(Container.DataItem, "BuyerName") %>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="买家地区">
                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Left" Height="20px"></ItemStyle>
                                            <ItemTemplate>
	                                            <%# DataBinder.Eval(Container.DataItem, "Address") %>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="买家电话">
                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Center" Height="20px"></ItemStyle>
                                            <ItemTemplate>
	                                            <%# CutPhone(DataBinder.Eval(Container.DataItem, "Phone").ToString(),4)%>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="购买数量">
                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Center" Height="20px"></ItemStyle>
                                            <ItemTemplate>
	                                            <%# DataBinder.Eval(Container.DataItem, "Quantity") %>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:BoundColumn DataField="BuyTime" HeaderText="购买时间" DataFormatString="{0:yyyy-MM-dd hh:mm}">
                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundColumn>
                                    </Columns>
                                </asp:datagrid>
                                <div style="text-align:right;"><a href="<%=webSite %>buyrecord-<%=Request.QueryString["PID"] %>-1.<%=config.html %>" target="_blank">查看所有记录>></a></div>
                            </div>
				        </div>
				        <!--相关商品结束-->
				        <asp:Literal id="ltrAD" runat="server"></asp:Literal>					
			        </div>
				</div>
				<div style="clear:both;"></div>
			</div>
			<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
			<uc1:Footer id="Footer1" runat="server"></uc1:Footer>

		<div class="lframe popTip" id="ShowFav" style="display:none;">
	        <div class="tl"></div>
	        <div class="tr"></div>
	        <div class="tm" id="popupHead">
	            <div class="poptitle">商品收藏</div>
	            <div id="closepop" class="hand popclose">关闭</div>
	        </div>
	        <div class="ml"></div>
	        <div class="mr"></div>
	        <div class="mm tipcontent" style="text-align:center;">
		        <br />
		        <br />
		        收藏类别:<select id="ddlFavCat"></select>
		        <input type="button" id="btnAddFav" value="确定" />
		        <br /><br />
	            <a id="NewFC" href="#">添加分类</a>     <a href="#" id="EditFC">修改分类</a>    <a href="#" id="DelFC">删除分类</a>
	            <div id="newFCContent" style="display:none; text-align:center;"><input type="text" id="txtNewFCName" name="txtNewFCName" /><input type="button" id="btnAddFC" value="保存" /></div>
	        </div>
	        <div class="bl"></div>
	        <div class="br"></div>
	        <div class="bm"></div>
        </div>
        
        <div class="lframe popTip" id="ShowStockReg" style="display:none;">
	        <div class="tl"></div>
	        <div class="tr"></div>
	        <div class="tm" id="StockRegHead">
	            <div class="poptitle">商品缺货登记</div>
	            <div id="closeStockRegpop" class="hand popclose">关闭</div>
	        </div>
	        <div class="ml"></div>
	        <div class="mr"></div>
	        <div class="mm tipcontent" style="text-align:center; overflow:hidden;">
		        <div style="width:80%; margin:10px auto; font-size:14px;">
		        <div>该商品暂时缺货，请在下面输入您的电子邮箱地址，当我们有现货供应时，我们会发送邮件通知您！</div>
                <div style="text-align:center; background:#dddddd;">
                    您的Email：<input type="text" id="txtEmail" name="txtEmail" /><br />
                    
                </div>
                <div style="text-align:center;"><input type="button" id="btnAddStockReg" name="btnAddStockReg" value="提交" /></div>
                <div style="text-align:center; margin-top:20px;">感谢您对我们的支持！祝您购物愉快！</div>
                </div>
	        </div>
	        <div class="bl"></div>
	        <div class="br"></div>
	        <div class="bm"></div>
        </div>
       
		<!--查看大图提交的表单-->
		<form id="BigImgform" method="post" target="_blank" action="<%=webSite %>BigImg.aspx">
		    <input type="hidden" id="hiddenimgs" name="hiddenimgs" value="" />
		    <input type="hidden" id="productID" name="productID" value="<%=product.ProductID%>" />
		    <input type="hidden" id="productNo" name="productNo" value="<%=product.ProductNo%>" />
		    <input type="hidden" id="productName" name="productName" value="<%=product.ProductName%>" />
		</form>
	</body>
</html>