<!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>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<link href="<tpl> $template_dir </tpl>/home/css/default.css" rel="stylesheet" type="text/css" />
<link href="<tpl> $template_dir </tpl>/home/css/shop.css" rel="stylesheet" type="text/css" />
<tpl>include file ='../head.config.html'</tpl>
<script type="text/javascript" src="<tpl> $site_url </tpl>/js/jquery/jquery.jqzoom.min.js"></script>
<script type="text/javascript" src="<tpl> $site_url </tpl>/js/common.js"></script>
<script type="text/javascript">
$(function(){	
	$("#tabdetailinfo").click(function(){
		$("#tabmemoinfo,#tabbidrecord,#tabguestbook").removeClass("current");
		$("#tabdetailinfo").addClass("current");
	});
	$("#tabmemoinfo").click(function(){
		$("#tabdetailinfo,#tabbidrecord,#tabguestbook").removeClass("current");
		$("#tabmemoinfo").addClass("current");
	});
	$("#tabbidrecord").click(function(){
		$("#tabdetailinfo,#tabmemoinfo,#tabguestbook").removeClass("current");
		$("#tabbidrecord").addClass("current");
	});
	$("#tabguestbook").click(function(){
		$("#tabdetailinfo,#tabmemoinfo,#tabbidrecord").removeClass("current");
		$("#tabguestbook").addClass("current");
	});
	
	$('#tabdetailinfo').click(function(){
		$('#detailinfo').css('display','');
		$('#memoinfo').css('display','');
		$('#bidrecord').css('display','');
		$('#guestbook').css('display','');	
		$('.itemtitlebox').css('display','');	
	});
	
	$('#tabmemoinfo').click(function(){
		$('#detailinfo').css('display','none');
		$('#memoinfo').css('display','');
		$('#bidrecord').css('display','none');
		$('#guestbook').css('display','none')
		$('.itemtitlebox').css('display','none');
	});

	$('#tabbidrecord').click(function(){
		$('#detailinfo').css('display','none');
		$('#memoinfo').css('display','none');
		$('#bidrecord').css('display','');
		$('#guestbook').css('display','none');
		$('.itemtitlebox').css('display','none');
	});

	$('#tabguestbook').click(function(){
		$('#detailinfo').css('display','none');
		$('#memoinfo').css('display','none');
		$('#bidrecord').css('display','none');
		$('#guestbook').css('display','');
		$('.itemtitlebox').css('display','none');
	});
});
//商品收藏
function product_collection(pid){
	$.get("<tpl> $site_url </tpl>/member/own_collection.php",{action:"new",genre:"product",collection:pid,random_number:Math.random()},function(data){
		if(data == '-1'){alert("<tpl> $langPHLoginOperator </tpl>");}
		if(data == '0'){alert("<tpl> $langPHSelfNotCollectionSelf </tpl>");}
		if(data == '1'){alert("<tpl> $langPHCollectionSucceed </tpl>");}
		if(data == '2'){alert("<tpl> $langPHCollection </tpl>");}
	});		
}
//AJ判断验证码
function checkCode(){
	var  myForm=document.forms['mainform'];
	document.getElementById('Submit').disabled = true;
	$.get("product.php",{action:"check_code",checkcode:$('#code').val(),random_number:Math.random()},function(data){
	if(data == '1'){
		if($('#txtMessage').val() == ''){
			alert('<tpl> $errMakeGuestBookContent </tpl>');
			document.getElementById('Submit').disabled = false
			return false;
		}
		myForm.action='productmessage.php?action=save';myForm.method='POST';myForm.submit();
	}else{alert('<tpl> $alertCodeErr </tpl>');document.getElementById('Submit').disabled = false;return false;}})
	return false;
}
// 类别
function a_category_sign(id){
	$('#span_category_'+id).toggle();
	$('#a_category_'+id).removeClass();
	if($('#span_category_'+id).css('display') == 'none'){
		$('#a_category_'+id).addClass('splay');
	}else{
		$('#a_category_'+id).addClass('close');
	}
}
</script>
</head>
<body>
<div id="wrapper" class="m">
  <!--Header-->
    <tpl> include file ='../header.html' </tpl>
  <!--End Header-->
  <div class="clear">&nbsp;</div>
  <!--位置导航-->
  <div id="sitenav">
	  <span>
	  	<a href="<tpl> $site_url </tpl>/home/category.php"><tpl> $langCAllSort </tpl></a> > 
	  <tpl> if $class_level eq 1 </tpl>
	  	<a href="<tpl> $site_url </tpl>/home/product.php?action=textlist&pcid=<tpl> $product_row.pc_onelevel_id </tpl>"><tpl> $product_row.pc_onelevel_name </tpl></a>
	  <tpl> /if </tpl>
	  <tpl> if $class_level eq 2 </tpl>
	  	<a href="<tpl> $site_url </tpl>/home/product.php?action=textlist&pcid=<tpl> $product_row.pc_onelevel_id </tpl>"><tpl> $product_row.pc_onelevel_name </tpl></a> 
		>
	  	<a href="<tpl> $site_url </tpl>/home/product.php?action=textlist&pcid=<tpl> $product_row.pc_twolevel_id </tpl>"><tpl> $product_row.pc_twolevel_name </tpl></a>
	  <tpl> /if </tpl>
	  <tpl> if $class_level eq 3 </tpl>
	  	<a href="<tpl> $site_url </tpl>/home/product.php?action=textlist&pcid=<tpl> $product_row.pc_onelevel_id </tpl>"><tpl> $product_row.pc_onelevel_name </tpl></a> 
		> 	
		<a href="<tpl> $site_url </tpl>/home/product.php?action=textlist&pcid=<tpl> $product_row.pc_twolevel_id </tpl>"><tpl> $product_row.pc_twolevel_name </tpl></a> 
		> 	
		<a href="<tpl> $site_url </tpl>/home/product.php?action=textlist&pcid=<tpl> $product_row.pc_threelevel_id </tpl>"><tpl> $product_row.pc_threelevel_name </tpl></a>
	  <tpl> /if </tpl>
	  <tpl> if $class_level eq 4 </tpl>
	  	<a href="<tpl> $site_url </tpl>/home/product.php?action=textlist&pcid=<tpl> $product_row.pc_onelevel_id </tpl>"><tpl> $product_row.pc_onelevel_name </tpl></a> 
		> 	
		<a href="<tpl> $site_url </tpl>/home/product.php?action=textlist&pcid=<tpl> $product_row.pc_twolevel_id </tpl>"><tpl> $product_row.pc_twolevel_name </tpl></a> 
		> 	
		<a href="<tpl> $site_url </tpl>/home/product.php?action=textlist&pcid=<tpl> $product_row.pc_threelevel_id </tpl>"><tpl> $product_row.pc_threelevel_name </tpl></a> 
		> 
	  	<a href="<tpl> $site_url </tpl>/home/product.php?action=textlist&pcid=<tpl> $product_row.pc_fourlevel_id </tpl>"><tpl> $product_row.pc_fourlevel_name </tpl></a>
	  <tpl> /if </tpl>
	  > 
	  <tpl> $langPInfo </tpl>(<tpl> $langPCode </tpl>:<tpl> $product_row.p_code </tpl>)
	  </span>  	
  </div>
  <!--End位置导航-->
  <!--主体内容-->
  <div class="clear-10"></div>
  <div id="main">
    <div id="leftbar">
      <div id="sellerinfo">
          <div class="title"><tpl> $langPSaleInfo </tpl></div>
			<div class="box">
			<div class="c-qinchu">
          <div class="shoplogo"><img width="60" height="60" border="0" src="<tpl> $site_url </tpl>/<tpl> $shop_info.shop_pic|default:'templates/green/home/images/images_new/storepic_default.gif' </tpl>" /></div>
          <div class="seller">
            <p><tpl>$langUserStore</tpl>:<tpl> $shop_info.shop_name </tpl></p>
            <p><tpl>$langMerchant</tpl>:<tpl> $seller_info.login_name </tpl></p>
            <p><tpl>$langUserArea</tpl>:<tpl> $shop_info.shop_province </tpl></p>
          </div>
		  </div>
          <div class="info">
            <ul>
              <li><tpl> $langProductRegTime </tpl>:<tpl> $seller_info.regist_time|date_format:"%Y-%m-%d" </tpl></li>
              <li><tpl> $langPSaleAuthentication </tpl>:
				  <tpl> if $shop_info.audit_state eq '2' </tpl>
					<span class="licence"><img src="<tpl> $template_dir </tpl>/home/images/images_new/renzheng_g.gif" title="<tpl> $langPAlreadyAuthSale </tpl>" /></span>
				  <tpl> /if </tpl>
				  <tpl> if $seller_info.personal_certify eq '2' </tpl>
					<span class="licence"><img src="<tpl> $template_dir </tpl>/home/images/images_new/renzhen-g.gif" title='<tpl> $langPPersonalCertify </tpl>' /></span>
				  <tpl> /if </tpl>
			  </li>
              <li>
              <tpl> $langProductSaleCredit </tpl>:<var id="html_sold_score"><tpl> $seller_info.sale_score|default:'0' </tpl></var>
			  	<a href="<tpl> $site_url </tpl>/store/user_rate.php?userid=<tpl> $product_row.member_id </tpl>">
				<tpl> foreach from=$sale_score.median item=one </tpl>
					<tpl> if $sale_score.level eq '0' </tpl>
						<img title="<tpl> $sale_score.interval.one </tpl>－<tpl> $sale_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>" src="<tpl> $template_dir </tpl>/images/b_red_1.gif" alt="<tpl> $sale_score.interval.one </tpl>－<tpl> $sale_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>">
					<tpl> /if </tpl>
					<tpl> if $sale_score.level eq '1' </tpl>
						<img title="<tpl> $sale_score.interval.one </tpl>－<tpl> $sale_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>" src="<tpl> $template_dir </tpl>/images/b_red_2.gif" alt="<tpl> $sale_score.interval.one </tpl>－<tpl> $sale_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>">
					<tpl> /if </tpl>
					<tpl> if $sale_score.level eq '2' </tpl>
						<img title="<tpl> $sale_score.interval.one </tpl>－<tpl> $sale_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>" src="<tpl> $template_dir </tpl>/images/b_red_3.gif" alt="<tpl> $sale_score.interval.one </tpl>－<tpl> $sale_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>">
					<tpl> /if </tpl>
				<tpl> /foreach </tpl>
				</a>                 
              </li>
              <li><tpl> $langProductSaleReputably </tpl>:<var id="html_sold_rate"><tpl> $seller_info.s_rate|default:'0' </tpl></var></li>
              <li>
              	<tpl> $langProductBuyCredit </tpl>:<var id="html_buy_score"><tpl> $seller_info.buy_score|default:'0' </tpl></var>
              	<a href="<tpl> $site_url </tpl>/store/user_rate.php?userid=<tpl> $product_row.member_id </tpl>">
				<tpl> foreach from=$buy_score.median item=one </tpl>
					<tpl> if $buy_score.level eq '0' </tpl>
						<img title="<tpl> $buy_score.interval.one </tpl>－<tpl> $buy_score.interval.two </tpl><tpl> $langStoreIntegralLookBuy </tpl>" src="<tpl> $template_dir </tpl>/images/b_red_1.gif" alt="<tpl> $buy_score.interval.one </tpl>－<tpl> $buy_score.interval.two </tpl><tpl> $langStoreIntegralLookBuy </tpl>">
					<tpl> /if </tpl>
					<tpl> if $buy_score.level eq '1' </tpl>
						<img title="<tpl> $buy_score.interval.one </tpl>－<tpl> $buy_score.interval.two </tpl><tpl> $langStoreIntegralLookBuy </tpl>" src="<tpl> $template_dir </tpl>/images/b_red_2.gif" alt="<tpl> $buy_score.interval.one </tpl>－<tpl> $buy_score.interval.two </tpl><tpl> $langStoreIntegralLookBuy </tpl>">
					<tpl> /if </tpl>
					<tpl> if $buy_score.level eq '2' </tpl>
						<img title="<tpl> $buy_score.interval.one </tpl>－<tpl> $buy_score.interval.two </tpl><tpl> $langStoreIntegralLookBuy </tpl>" src="<tpl> $template_dir </tpl>/images/b_red_3.gif" alt="<tpl> $buy_score.interval.one </tpl>－<tpl> $buy_score.interval.two </tpl><tpl> $langStoreIntegralLookBuy </tpl>">
					<tpl> /if </tpl>
				<tpl> /foreach </tpl>
				</a>              	
              </li>
              <li><tpl> $langProductBuyReputably </tpl>:<var id="html_buy_rate"><tpl> $seller_info.b_rate|default:'0' </tpl></var></li>
            </ul>
            <div class="contact">
              <h4><tpl>$langReferSeller</tpl>:</h4>
              <span><a href="<tpl>$site_url</tpl>/member/own_message.php?action=add&username=<tpl>$seller_info.sms_name</tpl>" target="_blank"><img src="<tpl>$site_url</tpl>/templates/green/store/images/zhannei.gif" alt="<tpl> $langSIntroSendCorrespondence </tpl>"/></a></span>
	              <tpl> if $seller_info.TAOBAO neq '' </tpl>	
					  <span><a target="_blank" href="http://amos1.taobao.com/msg.ww?v=1&uid=<tpl> $seller_info.TAOBAO </tpl>&site=cntaobao&s=2" ><img border="0" src="http://amos1.taobao.com/online.ww?v=1&uid=<tpl> $seller_info.TAOBAO </tpl>&site=cntaobao&s=2" alt="<tpl> $langPOnClickMyMessage </tpl>" /></a></span>
				  <tpl> /if </tpl> 
				  <tpl> if $seller_info.QQ neq '' </tpl>	  
					  <span><a href=tencent://message/?uin=<tpl> $seller_info.QQ </tpl>&Site=www.shopnc.net&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:<tpl> $seller_info.QQ </tpl>:4 alt="<tpl> $langPOnClickMyMessage </tpl>"></a></span>
				  <tpl> /if </tpl> 
				  
				  <tpl> if $seller_info.MSN neq '' </tpl>
					<span><A href="msnim:chat?contact=<tpl> $seller_info.MSN </tpl>"><IMG src="http://img8.cn.msn.com/images/msfp_008.gif" width="19" height="19" border="0"></A></span>
				  <tpl> /if </tpl>
				  <tpl> if $seller_info.SKYPE neq '' </tpl>
					<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
					<span><a href="skype:<tpl> $seller_info.SKYPE </tpl>?call"><img src="http://download.skype.com/share/skypebuttons/buttons/call_blue_transparent_34x34.png" style="border: none;" width="20" height="20" alt="Skype Me™!" /></a></span>
				  <tpl> /if </tpl>
            </div>
            <div class="goinshop">	<a href="<tpl> $site_url </tpl>/store/index.php?userid=<tpl> $product_row.member_id </tpl>"><img src="<tpl> $template_dir </tpl>/home/images/shopgoto.gif" /></a></div>
          </div>
          </div>
        </div>
	<div id="shopclass">
        <div class="title">
          <h3><tpl> $langPShopCategory </tpl></h3>
        </div>
			<ul>
              <tpl> section name=i loop=$category_array </tpl>
				  <!-- 商店宝贝分类 -->
				  <li>
					  <tpl> if $category_array[i].class_id neq '' </tpl>
							<a class="splay" id="a_category_<tpl> $category_array[i].class_id </tpl>" href="javascript:;" onclick="a_category_sign(<tpl> $category_array[i].class_id </tpl>);"></a>
					  <tpl> else </tpl>
					  		<span class="splay"></span>
					  <tpl> /if </tpl>
				  <tpl> if $category_array[i].class_pic neq '' </tpl>
					<a class="left-interval" href="<tpl> $site_url </tpl>/store/index.php?userid=<tpl> $product_row.member_id </tpl>&classid=<tpl> $category_array[i].class_id </tpl>"><img class="img_width" src="<tpl> $category_array[i].class_pic </tpl>" title="<tpl> $category_array[i].class_name </tpl>" /></a>
				  <tpl> else </tpl>
					<a class="left-interval" href="<tpl> $site_url </tpl>/store/index.php?userid=<tpl> $product_row.member_id </tpl>&classid=<tpl> $category_array[i].class_id </tpl>"><tpl> $category_array[i].class_name </tpl></a>
				  <tpl> /if </tpl>
				  </li>
              <tpl> /section </tpl>
            </ul>
      </div>
    </div>
    <div id="maincontent">
<div id="itemtitle"><span><a name="top"></a>
      <ul id="function">
        <li class=""><a href="<tpl> $site_url </tpl>/member/own_complaint.php?action=report_product&step=one&code=<tpl> $product_row.p_code </tpl>"><tpl> $langPHBulletinMerchandise </tpl></a></li>
      </ul>
      <h2 ><tpl> $product_row.p_name </tpl></h2></span>
    </div>
    <form id="bidForm" name="bidForm" action="product_buy.php?action=buy" method="post">
      <input type="hidden" name="item_id" value="<tpl> $product_row.p_code </tpl>" />
      <input type="hidden" name="auction_type" value="<tpl> $product_row.p_sell_type </tpl>" />
      <input type="hidden" name="title" value="<tpl> $product_row.p_name </tpl>" />
      <input type="hidden" name="pc_id" value="<tpl> $product_row.pc_id </tpl>" />
      <input type="hidden" name="seller_id" value="<tpl> $product_row.member_id </tpl>" />
      <input type="hidden" name="seller_nickname" value="<tpl> $product_row.member_nick </tpl>" />
      <tpl> if $product_row.p_transfee_charge == "1" </tpl>
      <input type="hidden" name="who_pay_ship" value="1" />
      <input type="hidden" name="tf_py" value="<tpl> $product_row.p_tf_py </tpl>" />
      <input type="hidden" name="tf_kd" value="<tpl> $product_row.p_tf_kd </tpl>" />
      <input type="hidden" name="tf_ems" value="<tpl> $product_row.p_tf_ems </tpl>" />
      <tpl> else </tpl>
      <input type="hidden" name="who_pay_ship" value="<tpl> $langPCarriageSaleBear </tpl>" />
      <tpl> /if </tpl>
      <input type="hidden" name="current_price" value="<tpl> $product_row.p_price </tpl>" />
      <input type="hidden" name="p_sold_num" id="p_sold_num" value="<tpl> $product_row.p_sold_num </tpl>" />
      <tpl> if $product_row.p_sell_type == "1" </tpl>
      <input type="hidden" name="buy_now" value="<tpl> $product_row.p_price </tpl>" />
      <tpl> /if </tpl> 
      <tpl> if $product_row.p_sell_type == "2" </tpl>
      <input type="hidden" name="buy_now" value="<tpl> $product_row.p_group_price </tpl>" />
      <input type="hidden" name="min_count" value="<tpl> $product_row.p_group_mincount </tpl>" />
      <tpl> /if </tpl>
      <tpl> if $product_row.p_sell_type == "0" </tpl>
      <input type="hidden" name="buy_now" id="buy_now" value="<tpl> $product_row.p_cur_price </tpl>" />
      <input type="hidden" name="old_price" value="<tpl> $product_row.p_price </tpl>" />
     <input type="hidden" name="p_price_step" id="p_price_step" value="<tpl> $product_row.p_price_step </tpl>" />
      <tpl> /if </tpl>
      <input type="hidden" name="count" value="<tpl> $product_row.p_storage </tpl>" />
      <input type="hidden" name="photo_url" value="<tpl> $product_row.p_pic </tpl>" />
      <input type="hidden" name="region" value="
	  <tpl> if $sel_area[0].area_name neq '' </tpl>
	  	<tpl> section name=loop loop=$sel_area </tpl>
	  		<tpl> $sel_area[loop].area_name </tpl>
	  	<tpl> /section </tpl>
	  <tpl> /if </tpl>
	  " />
		<!-- 支付方式和支持货币的种类 -->
		<tpl> foreach item=one from=$payment_array key=key </tpl>
			<input type="hidden" name="payment[<tpl> $key </tpl>]" value="<tpl> $key </tpl>" />
		<tpl> /foreach </tpl>
		<tpl> foreach item=one from=$currency_array key=key </tpl>
			<input type="hidden" name="currency[<tpl> $key </tpl>]" value="<tpl> $one </tpl>" />
		<tpl> /foreach </tpl>
    </form>
    <script type="text/javascript">
    function doBid() {
    	var form = document.getElementById('bidForm');
    	if (form) {
    		try {
    			form.submit();
    		}catch (e) {
    		}
    	}
    }
    </script>
      <div class="clear">&nbsp;</div>
      <div class="top">
       <div id="goodspic">
       <table width="288" class="pics"  border="0" cellpadding="0" cellspacing="0">
    <tr> 
      <td align="center" valign="middle">
			<div id="pic_view"<tpl> if $pic_array[0].big_pic!="" </tpl> class="jqzoom"<tpl> /if </tpl> style="position: relative;text-align: center; z-index: 1; margin-right: auto; margin-left: auto;width:288px; ">
			   <img src="<tpl> $site_url </tpl>/<tpl> $pic_array[0].big_pic|default:'templates/green/images/noimgb.gif' </tpl>" jqimg="<tpl> $site_url </tpl>/<tpl> $pic_array[0].p_pic </tpl>" />
			</div>
      </td>
    </tr>
  </table>
		<script type="text/javascript">
         $(document).ready(function(){
         	$(".jqzoom").jqueryzoom({
         		xzoom: 396, //zooming div default width(default width value is 200)
         		yzoom: 290, //zooming div default width(default height value is 200)
         		offset: 10, //zooming div default offset(default offset value is 10)
         		position: "right", //zooming div position(default position value is "right")
         		preload:1,
         		lens:2
         	});
         });
		 </script> 
		 <script>
function changeImageView(big_pic,p_pic){
	$("#pic_view").html("<img src='<tpl> $site_url </tpl>/"+big_pic+"' jqimg='<tpl> $site_url </tpl>/"+p_pic+"' />");
	return true;
}
</script>
  <div class="opts">
  <tpl> section name=loop loop=$pic_array </tpl>
			<table width="80" height="80" border="0" cellpadding="0" cellspacing="0" <tpl> if $smarty.section.loop.rownum eq '1' </tpl>class="original_kuang original_kuang_click"<tpl> else </tpl>class="original_kuang"<tpl> /if </tpl>  onclick="$('.opts table').each(function(){$(this).removeClass('original_kuang_click');});$(this).addClass('original_kuang_click');">
			  <tr>
				<td align="center" valign="middle"><a href="javascript:;" onclick="changeImageView('<tpl> $pic_array[loop].big_pic </tpl>','<tpl> $pic_array[loop].p_pic </tpl>');"><img src="<tpl> $site_url </tpl>/<tpl> $pic_array[loop].small_pic </tpl>" /></a>
			</td>
			  </tr>
			</table>
		<tpl> /section </tpl>

     <SCRIPT>
     	resize('.opts ',80,80);
	 </SCRIPT>
  </div>        
        
      </div>
	  <div id="goodsabout">
		<div class="pricebox">
            <span style="width:60%;">
            <tpl> if $product_row.p_sell_type=="1" </tpl>
              <h3><tpl> $langPfixprice </tpl>:</h3>
              <h1><tpl> $product_row.p_price </tpl></h1>
              <h3><tpl> $langCYuan </tpl></h3>
            <tpl> /if </tpl>
            <tpl> if $product_row.p_sell_type=="2"  </tpl>
		 	   <h3><tpl> $langPcamel </tpl>:</h3>
		 	   <h1><tpl> $product_row.p_group_price </tpl></h1>
		 	   <h3><tpl> $langCYuan </tpl></h3>
		 	<tpl> /if </tpl>
		 	<tpl> if $product_row.p_sell_type=="0"  </tpl>
		 	<h3><tpl> $langPHNoncePrice </tpl>:</h3>
			<h1 id="html_cur_price"><tpl> $product_row.p_cur_price </tpl></h1>
			<h3><tpl> $langCYuan </tpl></h3>
			<tpl> /if </tpl>
            </span>
          </div>
			<ul>
          	<tpl> if $product_row.p_sell_type=="0"  </tpl>
				<li>
					<span style="width:50%;"><tpl> $langPHBaginPrice </tpl>: <tpl> $product_row.p_price </tpl> <tpl> $langCYuan </tpl></span>
					<span style="width:50%;"><tpl> $langPHAddPriceScope </tpl>: <tt id="html_price_step" style="margin-right:4px;"><tpl> $product_row.p_price_step </tpl></tt> <tpl> $langCYuan </tpl></span>
				</li>
			<tpl> /if </tpl>
            <li>
            	<tpl> if $product_row.p_transfee_charge == '0' </tpl>
					<span style="margin-right:20px;"><tpl> $langSelaTranFee </tpl></span>
				<tpl> /if </tpl>
				<tpl> if $product_row.p_transfee_charge == '1' </tpl>
					<tpl> if $product_row.p_tf_py != "0.00" </tpl>
						<span style="margin-right:20px;"><tpl> $langPCommonlyPost </tpl>:<var><tpl> $product_row.p_tf_py </tpl></var></span>
					<tpl> /if </tpl>
					<tpl> if $product_row.p_tf_kd != "0.00" </tpl>
						<span style="margin-right:20px;"><tpl> $langPCelerityPost </tpl>:<var><tpl> $product_row.p_tf_kd </tpl></var></span>
					<tpl> /if </tpl>
					<tpl> if $product_row.p_tf_ems != "0.00" </tpl> 
						<span style="margin-right:20px;">EMS:<var><tpl> $product_row.p_tf_ems </tpl></var></span>
					<tpl> /if </tpl><tpl> /if </tpl>
            </li>
            <li>
            	<span style="width:50%;"><tpl> $langPDegree </tpl>:<var><tpl> $product_row.p_type_name </tpl></var></span>
            	<span id="sp_html_lefttime" style="width:50%;"><tpl> $langResidualTime </tpl>:<var><label id="leftTime1">
				<tpl> if $product_row.p_state eq '0' </tpl>
					<tpl> $langProductClose </tpl>
				<tpl> else </tpl>
					<tpl> $lefttime </tpl>
				<tpl> /if </tpl>
				</label></var></span>
            </li>
            <li>
				<span id="sp_html_storage" style="width:50%;"><tpl> $langPThisNumber </tpl>:<var id="html_p_storage"><tpl> $product_row.p_storage  </tpl></var>，<tpl> $langPAlreadySale </tpl><var id="html_sold_num"><tpl> $product_row.p_sold_num  </tpl></var><tpl> $langProductAPiece </tpl></span>
				<span style="width:50%;"><tpl> $langPHStorage </tpl>:<var id="html_view_num"><tpl> $product_row.p_view_num  </tpl></var><tpl> $langProductNum </tpl></span>
			</li>
			<tpl> if $product_row.p_sell_type=="2"  </tpl><!-- 团购信息 -->
			<!-- 团购原价和最小团购价格 -->
			<li><span style="width:50%;"><tpl> $langProductGroupPrice </tpl>:<var id="html_group_price"><tpl> $product_row.p_price  </tpl></var><tpl> $langCYuan </tpl></span>
				<span style="width:50%;"><tpl> $langProductGroupMincount </tpl>:<var id="html_group_mincount"><tpl> $product_row.p_group_mincount  </tpl></var><tpl> $langProductAPiece </tpl></span>
			</li>
			<!-- 团购还差多少件 -->
			<li>
				<tpl> $langProductGroupNeedNumber </tpl>:<var id="html_less_count"><tpl> $product_row.less_count  </tpl></var>
			</li>
			<tpl> /if </tpl>
			<!-- 所在地区 -->
            <li><tpl> $langPLocus </tpl>:
				<tpl> if $sel_area[0].area_name neq '' </tpl>
					<tpl> section name=loop loop=$sel_area </tpl>
						<var><tpl> $sel_area[loop].area_name </tpl></var>
					<tpl> /section </tpl>
				  <tpl> /if </tpl>
			</li>
			<!-- 消费者保障 -->
			<tpl> if $product_row.p_genuine eq '1' || $product_row.p_7day_return eq '1'</tpl>
	            <li>
					<tpl> $langPConsumerEnsure </tpl>: 
	            	<tpl> if $product_row.p_genuine eq '1' </tpl>
	            		<img src="<tpl> $template_dir </tpl>/images/pic_zp.gif" align="absmiddle" alt="<tpl> $langPgenuineExplain </tpl>" /> <tpl> $langPgenuine </tpl>
	            	<tpl> /if </tpl>
	            	<tpl> if $product_row.p_7day_return eq '1' </tpl>
	            		<img src="<tpl> $template_dir </tpl>/images/pic_7day.gif" align="absmiddle" alt="<tpl> $langP7dayreturnExplain </tpl>" /> <tpl> $langP7dayreturn </tpl>
	            	<tpl> /if </tpl>	
				</li>	
			<tpl> /if </tpl>		
          </ul>
          <div class="clear">&nbsp;</div>
          <div class="buybtn">
				<tpl> if $product_row.p_sell_type eq '0' </tpl>
					<a href="javascript:doBid();" ><img src="<tpl> $template_dir </tpl>/home/images/button_chujia.gif" /></a>
				<tpl> /if </tpl>
				<tpl> if $product_row.p_sell_type eq '1' </tpl>
					<a href="javascript:doBid();" ><img src="<tpl> $template_dir </tpl>/home/images/button_buy.gif" /></a>
				<tpl> /if </tpl>
				<tpl> if $product_row.p_sell_type eq '2' </tpl>
					<a href="javascript:doBid();" ><img src="<tpl> $template_dir </tpl>/home/images/button_tuangou.gif" /></a>
				<tpl> /if </tpl>
		  </div>
				
			<div class="favoritebtn">
				<a href="javascript:;" onclick="product_collection('<tpl> $product_row.p_id </tpl>');"><img src="<tpl> $template_dir </tpl>/home/images/button_favorite.gif" /></a></div>
			<div class="paybox" id="ExchangeInfo">
			<!-- 支持的货币 -->
			<dl class="money">
			  <dt><tpl>$langProductCurrency</tpl>：</dt>
			<tpl> foreach item=one from=$currency_array key=key </tpl>
				<dd> 
					<tpl> $exchange_remark[$key] </tpl>(<tpl> $key </tpl>) <tpl> $one </tpl>
				</dd>
			<tpl> /foreach </tpl>
			</dl>
			<!-- 支付方式 -->
			<dl class="paymode">
			  <dt><tpl>$langProductPayment</tpl>：</<dt>
			<tpl> foreach item=one from=$payment_array key=key </tpl>
				<dd> 
					<tpl> $one.name </tpl>
				</dd>
			<tpl> /foreach </tpl>
			</dl>
		  </div>
        </div>
      <div class="itemwrapper" style="margin-top:12px;">
        <div class="itemtabbar">
      <ul class="itemtabbtn" id="categorymenu">
        <li class="current" id="tabdetailinfo"><a id="detailinfo_url" href="JavaScript: void(0);" ><span><tpl> $langPInfo </tpl></span></a></li>
        <li id="tabmemoinfo"><a id="memoinfo_url" href="JavaScript: void(0);"><span><tpl> $langPBuyNotice </tpl></span></a></li>
        <li id="tabbidrecord"><a id="bidrecord_url" href="JavaScript: void(0);"><span><tpl> $langPBuyNote </tpl></span></a></li>
        <li id="tabguestbook"><a id="guestbook_url" href="JavaScript: void(0);"><span><tpl> $langPClientMessage </tpl></span></a></li>
      </ul>
    </div>
          <div class="itemtabbar_bottom"></div>
		<div class="itemcontent" id="detailinfo">
            <!-- 最终页参数部分开始 -->
			<tpl> if $have_attribute == 1 </tpl>
			  <div id="aboutbaby">
				<ul>
				<tpl> section name=j loop=$product_attribute </tpl> 
					<li>
					<tpl> $product_attribute[j].a_name </tpl>: 
					<tpl> if $product_attribute[j].a_type == 0 </tpl>
						<tpl> section name=k loop=$product_attribute_content[j] </tpl> 
							<tpl> if $product_attribute_content[j][k].ischecked == 1 </tpl>
								<tpl> $product_attribute_content[j][k].ac_content </tpl>
							<tpl> /if </tpl>
						<tpl> /section </tpl>
					<tpl> /if </tpl> 
					<tpl> if $product_attribute[j].a_type == 1 </tpl> 
						<tpl> section name=k loop=$product_attribute_content[j] </tpl> 
							<tpl> if $product_attribute_content[j][k].ischecked == 1 </tpl> 
								<tpl> $product_attribute_content[j][k].ac_content </tpl>
							<tpl> /if </tpl> 
						<tpl> /section </tpl> 
					<tpl> /if </tpl>
					</li>
				<tpl> /section </tpl>
				</ul>
			  </div>
			<tpl> /if </tpl>
			<div id="aboutbaby">
				<ul>
				<!-- 品牌 -->
				<tpl> if $sel_brand[0].pb_id neq '' </tpl>
				<li>
					<tpl> $langPBrand </tpl>：
					<tpl> section name=loop loop=$sel_brand </tpl>
					<tpl> $sel_brand[loop].pb_name </tpl>
					<tpl> /section </tpl>
				</li>
				<tpl> /if </tpl>
				<!-- 发票 -->
				<li>
					<tpl> $langProductWhetherInvoices </tpl>：
					<tpl> if $product_row.p_have_invoices eq '0' </tpl><tpl> $langCNo </tpl><tpl> else </tpl><tpl> $langCYes </tpl><tpl> /if </tpl>
				</li>
				<!-- 保修 -->
				<li>
					<tpl> $langProductWhetherWarranty </tpl>：
					<tpl> if $product_row.p_have_warranty eq '0' </tpl><tpl> $langCNo </tpl><tpl> else </tpl><tpl> $langCYes </tpl><tpl> /if </tpl>
				</li>
				</ul>
			</div>
      <div id="product_intro"><p><tpl> $product_row.p_intro </tpl></p></div>
    </div>        
        <div class="itemtitlebox">
          <h3><tpl> $langPBuyNotice </tpl></h3>
          <span class="gotop"><a href="#top"><img src="<tpl> $template_dir </tpl>/home/images/gototop.gif" alt="回到顶部" /></a></span> </div>
        <div class="itemcontent" id="memoinfo">
      <p><tpl> $product_row.p_remark </tpl></p>
    </div>
        <div class="itemtitlebox">
          <h3><tpl> $langPBuyNote </tpl></h3>
          <span class="gotop"><a href="#top"><img src="<tpl> $template_dir </tpl>/home/images/gototop.gif" alt="回到顶部" /></a></span> </div>
        <div class="itemcontent" id="bidrecord">
      <div class="priceinfo"><span ><tpl> $langPorPrice </tpl>:<var class="price"><tpl> if $product_row.p_sell_type == "2" </tpl><tpl> $product_row.p_group_price </tpl><tpl> else </tpl><tpl> $product_row.p_price </tpl><tpl> /if </tpl></var><tpl> $langCYuan </tpl></span> <tpl> if $product_row.p_transfee_charge == '0' </tpl><span style="margin-right:15px;"><tpl> $langSelaTranFee </tpl></span><tpl> /if </tpl><tpl> if $product_row.p_transfee_charge == '1' </tpl><tpl> if $product_row.p_tf_py != "0.00" </tpl><tpl> $langPCommonlyPost </tpl>:<tpl> $product_row.p_tf_py </tpl><tpl> /if </tpl><tpl> if $product_row.p_tf_kd != "0.00" </tpl> <tpl> $langPCelerityPost </tpl>:<tpl> $product_row.p_tf_kd </tpl><tpl> /if </tpl><tpl> if $product_row.p_tf_ems != "0.00" </tpl> EMS:<tpl> $product_row.p_tf_ems </tpl><tpl> /if </tpl><tpl> /if </tpl></span></div>
      <div class="pricenotes"><tpl> $langBargainOnNote </tpl></div>
      <ul class="recordlist" id="bidrecord_list" >
		<li class="title"><span class="buyer"><tpl> $langPBuy </tpl></span><span class="bid"><tpl> $langProductDid </tpl></span><span class="amount"><tpl> $langPBuyNum </tpl></span><span class="time"><tpl> $langBuyTime </tpl></span><span class="status"><tpl> $langProductEstate </tpl></span></li>
		<tpl> section name=i loop=$product_order_array </tpl>
		  <li><span class="buyer"><a href="../store/userinfo.php?userid=<tpl> $product_order_array[i].buyer_id </tpl>" target="_blank"><tpl> $product_order_array[i].buyer_nick </tpl></a></span><span class="bid"><tpl> $product_order_array[i].unit_price </tpl><tpl> $langCYuan </tpl></span><span class="amount"><tpl> $product_order_array[i].buy_num </tpl><tpl> $langPHPiece </tpl></span><span class="time"><tpl> $product_order_array[i].sold_time|date_format:"%Y-%m-%d %H:%M:%S" </tpl></span><span class="status">
		  <tpl> if $product_order_array[i].state == "2" </tpl> <tpl> $langPBargainOn </tpl> <tpl> /if </tpl>
		  <tpl> if $product_order_array[i].state == "0" </tpl> <tpl> $langProductOut </tpl> <tpl> /if </tpl>
		  <tpl> if $product_order_array[i].state == "1" </tpl> <tpl> $langPLead </tpl> <tpl> /if </tpl>
		  </span></li>
		<tpl> /section </tpl>
	  </ul>
      <div class="pricenotes"></div>
    </div>
        <div class="itemtitlebox">
          <h3><tpl> $langPBuyMessage </tpl></h3>
          <span class="gotop"><a href="#top"><img src="<tpl> $template_dir </tpl>/home/images/gototop.gif" alt="回到顶部" /></a></span> </div>
        <div class="itemcontent" id="guestbook">
      <div style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px" id="AjGuestBook">
	  	<tpl> if $ses_login.id neq ''  </tpl>	
			<div id="leaveMsgPage" style="PADDING-RIGHT: 0px; DISPLAY: block; PADDING-LEFT: 65px; PADDING-BOTTOM: 10px; MARGIN: 0px 30px; PADDING-TOP: 0px;" align="right">
			<!-- <span id="html_tem_msgPage"><a href="#" target="_blank">查看更多留言&gt;&gt;</a></span> --></div>
			<tpl> section name=i loop=$message_array </tpl>
			<ul>
				<li  style="border-bottom:1px dashed #ccc; padding-bottom:5px">
				<span style="color:#0000FF">
				<tpl> if $message_array[i].anonymous eq 1 </tpl>
					<tpl> $langPAnonymity </tpl>
				<tpl> else </tpl>
					<tpl> $message_array[i].member_name </tpl>
				<tpl> /if </tpl> 
				<tpl> $langProductQuestion</tpl>:
				</span>
				<span style=" color:#FF6600">
				<tpl> $message_array[i].message_content </tpl>
				</span> 
					<tpl> if $ses_login.id eq $product_row.member_id </tpl>
						<a href="<tpl> $site_url </tpl>/home/productmessage.php?action=re&messageid=<tpl> $message_array[i].message_id </tpl>&pid=<tpl> $product_row.p_code </tpl>"><tpl> $langProductRestoreMessage </tpl></a> 
						<a href="<tpl> $site_url </tpl>/home/productmessage.php?action=del&messageid=<tpl> $message_array[i].message_id </tpl>&pid=<tpl> $product_row.p_code </tpl>"><tpl> $langProductDelMessage </tpl></a>
					<tpl> /if </tpl>
					<tpl> $message_array[i].message_time </tpl>
					<tpl> if $message_array[i].message_recontent ne '' </tpl>
						<tpl>$langPAnswer</tpl> <tpl> $message_array[i].message_recontent </tpl>
					<tpl> /if </tpl>
				</li>
				</ul>
			<tpl> /section </tpl><br />
				<div id="html_tem_leaveMsg_post">
				<form action="<tpl> $site_url </tpl>/home/productmessage.php?action=save" method="POST" id="mainform" onsubmit="return checkCode();">
				<input type="hidden" name="hideproductID" value="<tpl> $product_row.p_id </tpl>">
				<input type="hidden" name="hidememberID" value="<tpl> $product_row.member_id </tpl>">
				<input type="hidden" name="pid" value="<tpl> $product_row.p_code </tpl>">
				<table cellspacing="0" cellpadding="0" width="700" align="center" border="0" style="width:700px; margin:0 auto">
							<tbody>
							  <tr>
								<td colspan="2"> <tpl>$langReferOrReview</tpl>： （<tpl>$langReferOrReviewMsg</tpl>） </td>
							  </tr>
							  <tr>
								<td align="middle" colspan="2"><div id="hide_msg" style="DISPLAY: none"></div>
								  <textarea id="txtMessage" style="BORDER-RIGHT: #718da6 1px solid; BORDER-TOP: #718da6 1px solid; BORDER-LEFT: #718da6 1px solid; WIDTH: 700px; BORDER-BOTTOM: #718da6 1px solid" name="txtMessage" rows="7" cols="80" require="true"></textarea></td>
							  </tr>
							  
							  <tr>
								<td height="70" align="right">  
								  <input name="code" type="text" id="code" size="4" maxlength="4" />
								  <img src="<tpl> $site_url </tpl>/classes/libraries/code.php" onclick="this.src='<tpl> $site_url </tpl>/classes/libraries/code.php?' + Math.random()" title="<tpl> $langPOnclickInstead </tpl>" id="codeimage" name="codeimage" style=" vertical-align:middle" />
								  <input name="Submit" id="Submit" type="submit" value="<tpl> $langCsubmit </tpl>">
								  <input type="reset" value=" <tpl>$langReset</tpl> " name="Submit" /></td>
							  </tr>
							</tbody>
				  </table>
				</form>
				</div>
			<tpl> else </tpl>	
				<tpl> $errProductNeed </tpl><a href='<tpl> $site_url </tpl>/home/member.php?action=login'><tpl> $langPLogin </tpl></a><tpl> $errProductMayQuiz </tpl><br>
				<a href='<tpl> $site_url </tpl>/home/member.php?action=regist'><tpl> $langPRegist </tpl></a>
			<tpl> /if </tpl>
	  </div>
    </div>
      </div>
    </div>
    <div class="clear"></div>
  </div>
</div>
 <tpl> include file ='../../../html/footer.html' </tpl>
</body>
</html>