<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<meta name="Keywords" content="{$keywords}" />
<meta name="Description" content="{$description}" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>{$page_title}</title>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="{$ecs_css_path}" rel="stylesheet" type="text/css" />
{* 包含脚本文件 *}
{insert_scripts files='common.js'}
<script type="text/javascript" src="themes/68ecshopcom_ssqyfree/js/mzp-packed-me.js"></script>
<script type="text/javascript" src="themes/68ecshopcom_ssqyfree/js/action.js"></script>
<style>
.ur_here{ width:980px; border-bottom: solid 1px #DDD}
.goodsInfo span{width:400px; float:left; font-size:12px;color:#999;}
</style>
</head>
<body>
<!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->

<div style=" width: 980px;">
 <!-- #BeginLibraryItem "/library/ur_here.lbi" --><!-- #EndLibraryItem -->
 
    <div class="clearfix" style="position:relative;min-height:460px; margin:0 auto;" >
    
  
	  <div class="goodsimgbox fl" style=" width:452px; overflow:hidden;">
		  <div id="focuscont" style=" width:452px; height:452px;  ">
		 
     <!-- {if $pictures}-->
<a href="{$goods.goods_img}"  id="zoom1" class="MagicZoom MagicThumb " title="{$goods.goods_name|escape:html}">
      <img src="{$goods.goods_img}" alt="{$goods.goods_name|escape:html}" width="450px" height="450px" style="border:1px solid #d2d0d0;"/>
      
     </a>
         <!-- {else} -->
         <img src="{$goods.goods_img}" alt="{$goods.goods_name|escape:html}"/>
         <!-- {/if}-->
		 
	   </div>

<!-- {if $pictures}-->

<div class="picture" id="imglist" style="width:450px; height:80px;">
		
        <!-- {foreach from=$pictures item=picture name=picture}-->
        <a  href="{$picture.img_url}" rel="zoom1" rev="{$picture.img_url}">
        <img src="{if $picture.thumb_url}{$picture.thumb_url}{else}{$picture.img_url}{/if}" alt="{$goods.goods_name}" {if $smarty.foreach.picture.iteration==1 }class="onbg"{else}class="autobg"{/if} /></a>
        <!--{/foreach}-->

                        
</div>  
		  
<script type="text/javascript">
	mypicBg();
</script>
<!-- {/if}-->
		</div>
	  <div class="goodstxtbox fl" style="margin-left:30px; margin-top:3px; width:488px; _overflow:hidden;">
		  <h4 class="goodName">
		 {$goods.goods_style_name}
	
		 </h4>
		 <form class="goodsform" action="javascript:addToCart({$goods.goods_id})" method="post" name="ECS_FORMBUY" id="ECS_FORMBUY" >
			<!-- {if $promotion} -->
			<div class="Goodpromotion">
			<font id="fontcolor">{$lang.activity}</font><br />
			<!-- {foreach from=$promotion item=item key=key} 优惠活动-->
			<!-- {if $item.type eq "snatch"} -->
			<a href="snatch.php" title="{$lang.snatch}">[{$lang.snatch}]</a>
			<!-- {elseif $item.type eq "group_buy"} -->
			<a href="group_buy.php" title="{$lang.group_buy}">[{$lang.group_buy}]</a>
			<!-- {elseif $item.type eq "auction"} -->
			<a href="auction.php" title="{$lang.auction}">[{$lang.auction}]</a>
			<!-- {elseif $item.type eq "favourable"} -->
			<a href="activity.php" title="{$lang.favourable}">[{$lang.favourable}]</a>
			<!-- {/if} -->
			<a href="{$item.url}" title="{$lang.$item.type} {$item.act_name}{$item.time}">{$item.act_name}</a><br />
			<!-- {/foreach} -->
			<script>setInterval("colorStyle('fontcolor','a','b')",300);</script>
			</div>
			<!-- {/if} -->
            <!----商品详细信息----->
			<p class="goodsInfo">
            
			<!-- {if $cfg.show_goodssn} 显示商品货号-->
			<span>{$lang.goods_sn}{$goods.goods_sn}</span>
			<!-- {/if} -->
			
            
			<!-- {if $goods.goods_number neq "" and $cfg.show_goodsnumber} 商品库存-->
			<span><!-- {if $goods.goods_number eq 0} -->
			{$lang.goods_number}<img src="images/wuhuo.gif" />
			<!-- {else} -->
			{$lang.goods_number} {$goods.goods_number} {$goods.measure_unit}
			<!-- {/if} --></span>
			<!-- {/if} -->
			
            
			<!-- {if $goods.goods_brand neq "" and $cfg.show_brand} 显示商品品牌-->
			<span>{$lang.goods_brand}<a href="{$goods.goods_brand_url}" ><u>{$goods.goods_brand}</u></a>
			</span><!--{/if}-->
			
            
			<!-- {if $cfg.show_goodsweight} 商品重量-->
			<span>{$lang.goods_weight}{$goods.goods_weight}
			</span><!-- {/if} -->
			
            
			<!-- {if $cfg.show_addtime} 上架时间-->
			<span>{$lang.add_time}{$goods.add_time}
			</span><!-- {/if} -->
			
           <span>
			<!--点击数-->
			 {$lang.goods_click_count}：{$goods.click_count}
            </span>
            <span>
			{$lang.goods_rank} <img src="images/stars{$goods.comment_rank}.gif" alt="comment rank {$goods.comment_rank}" />
            </span>
			</p>
			<!--本店售价-->
			<div class="Goodpromotion" style="float:left; width:500px; border-left:none; border-right:none">


			<!--{if $goods.is_promote and $goods.gmt_end_time } 促销价格-->
			<font class="goodspice">{$lang.promote_price}<font class="price"  style="font-size:20px;">{$goods.promote_price}</font></font>
            <!--{/if}-->
            <font style="font-size:12px;">{$lang.shop_price}</font><font class="price" id="ECS_SHOPPRICE" style="font-size:20px;">{$goods.shop_price_formated}</font><br />
            
			<!-- {if $cfg.show_marketprice} 市场价格-->
			<font class="goodspice" style="color:#CCC">{$lang.market_price}<span class="market">{$goods.market_price}</span></font><br />
			<!-- {/if} -->

			<!-- {foreach from=$rank_prices item=rank_price key=key} 会员等级对应的价格-->
			<font class="goodspice" style="margin-right:15px;">{$rank_price.rank_name}：<font class="" id="ECS_RANKPRICE_{$key}">{$rank_price.price}</font></font>
			<!--{/foreach}-->

            
            <font class="goodspiceA">
			<!-- {if $affiliate.on} -->
			<a href="user.php?act=affiliate&goodsid={$goods.goods_id}" style="font-size:12px;">分享</a>|
			<!-- {/if} -->
            <a href="javascript:collect({$goods.goods_id})" style="font-size:12px;">暂存</a>
            </font>
            <br />

			</div>
			
			<!--{if $goods.is_promote and $goods.gmt_end_time } 促销时间-->
			<font style="font-size:12px;">{insert_scripts files='lefttime.js'}
			{$lang.residual_time} <font class="a" id="leftTime">{$lang.please_waiting}</font></font><br />
			<!--{/if}-->
			
			<!-- {if $goods.give_integral > 0} 购买此商品赠送积分-->
			<font style="font-size:12px;">{$lang.goods_give_integral}<font class="price">{$goods.give_integral} {$points_name}</font></font><br />
			<!-- {/if} -->
			<!-- {if $cfg.use_integral} 购买此商品可使用积分-->
			<font style="font-size:12px;">{$lang.goods_integral}<font class="price">{$goods.integral} {$points_name}</font></font><br />
			<!-- {/if} -->
			<!-- {if $goods.bonus_money} 红包-->
			<font style="font-size:12px;">{$lang.goods_bonus}<font class="price">{$goods.bonus_money}</font></font><br />
			<!-- {/if} -->
			
			<!--{if $volume_price_list } -->
		 <font class="a">{$lang.volume_price}：</font><br />
			<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#cccccc" class="blank" style="font-size:12px;">
				<tr>
				<td align="center" bgcolor="#FFFFFF">{$lang.number_to}</td>
				<td align="center" bgcolor="#FFFFFF">{$lang.preferences_price}</td>
				</tr>
				<!-- {foreach from=$volume_price_list item=price_list key=price_key} -->
				<tr>
				<td align="center" bgcolor="#FFFFFF" class="shop">{$price_list.number}</td>
				<td align="center" bgcolor="#FFFFFF" class="price">{$price_list.format_price}</td>
				</tr>
				<!-- {/foreach} -->
			</table>
		 <!--{/if}-->
		
			
			<!-- {* 开始循环所有可选属性 *} -->
			<!-- {foreach from=$specification item=spec key=spec_key} -->
			<font style="font-size:12px;">{$spec.name}：</font>
			<!-- {* 判断属性是复选还是单选 *} -->
			<!-- {if $spec.attr_type eq 1} -->
			<!-- {if $cfg.goodsattr_style eq 1} -->
			<br />
			<!-- {foreach from=$spec.values item=value key=key} -->
			<label for="spec_value_{$value.id}">
			<input type="radio" name="spec_{$spec_key}" value="{$value.id}" id="spec_value_{$value.id}" {if $key eq 0}checked{/if} onClick="changePrice()" />
			<font style="font-size:12px;">{$value.label} [{if $value.price gt 0}{$lang.plus}{elseif $value.price lt 0}{$lang.minus}{/if} {$value.format_price|abs}] </font></label><br />
			<!-- {/foreach} -->
			<input type="hidden" name="spec_list" value="{$key}" />
			<!-- {else} -->
			<select name="spec_{$spec_key}" onChange="changePrice()" class="InputBorder">
				<!-- {foreach from=$spec.values item=value key=key} -->
				<option label="{$value.label}" value="{$value.id}">
                <font style="font-size:12px;">
                {$value.label} {if $value.price gt 0}{$lang.plus}{elseif $value.price lt 0}{$lang.minus}{/if}{if $value.price neq 0}{$value.format_price}{/if}</font></option>
				<!-- {/foreach} -->
			</select>
			<br />
			<input type="hidden" name="spec_list" value="{$key}" />
			<!-- {/if} -->
			<!-- {else} -->
			<br />
			<!-- {foreach from=$spec.values item=value key=key} -->
			<label for="spec_value_{$value.id}">
			<input type="checkbox" name="spec_{$spec_key}" value="{$value.id}" id="spec_value_{$value.id}" onClick="changePrice()" />
			<font style="font-size:12px;">{$value.label} [{if $value.price gt 0}{$lang.plus}{elseif $value.price lt 0}{$lang.minus}{/if} {$value.format_price|abs}]</font> </label>
			<br />
			<!-- {/foreach} -->
			<input type="hidden" name="spec_list" value="{$key}" />
			<!-- {/if} -->
			<!-- {/foreach} -->
			<!-- {* 结束循环可选属性 *} -->
			
            <div class="Goodpromotion" style="margin-bottom:10px; border:none">
            
			<font style="font-size:12px;">{$lang.number}：</font>
			<input name="number" type="text" id="number" value="1" size="4" onBlur="changePrice()" class="InputBorder"/>
			&nbsp;&nbsp;&nbsp;
			<font style="font-size:12px;">{$lang.amount}：</font><span id="ECS_GOODS_AMOUNT" class="price"></span>
			<!-- {if $goods.is_shipping}-->
		  <font class="a f14b" style="font-size:12px;">{$lang.goods_free_shipping}</font>
		  <!-- {/if} -->
			</div>
			<a href="javascript:addToCart({$goods.goods_id})"><img src="images/Detail_bg1.gif" /></a> 

		</form>
     
		</div>
 </div>
    
	<div class="infotit clearfix" id="com_b">
	    <h2>{$lang.feed_goods_desc}</h2>
		
        <h2 class="h2bg">{$lang.releate_goods}</h2>
		<h2 class="h2bg">还购买过</h2>
		<h2 class="h2bg">购买记录</h2>
	</div>
	 <div class="tagcontent" id="com_v"></div>
	 <div id="com_h">
		   <blockquote>
        {$goods.goods_desc}
      
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" border="0">
        <!-- {foreach from=$properties item=property_group key=key} -->
        <tr>
          <th colspan="2" bgcolor="#FFFFFF">{$key|escape}</th>
        </tr>
        <!-- {foreach from=$property_group item=property} -->
        <tr>
          <td bgcolor="#FFFFFF" align="left" width="30%" class="f1">[{$property.name|escape:html}]</td>
          <td bgcolor="#FFFFFF" align="left" width="70%">{$property.value}</td>
        </tr>
        <!-- {/foreach}-->
        <!-- {/foreach}-->
       </table>
       </blockquote>

			 <blockquote>
			 <!-- #BeginLibraryItem "/library/goods_related.lbi" --><!-- #EndLibraryItem -->
			 </blockquote>
			 <blockquote>
			 <!-- #BeginLibraryItem "/library/bought_goods.lbi" --><!-- #EndLibraryItem -->
			 </blockquote>
			 <blockquote>
             <!-- #BeginLibraryItem "/library/bought_note_guide.lbi" --><!-- #EndLibraryItem -->
			 </blockquote>
		 </div>
	<script type="text/javascript">reg("com");</script>
	 <!-- TemplateBeginEditable name="右边可编辑区" -->
	 <!-- #BeginLibraryItem "/library/comments.lbi" --><!-- #EndLibraryItem -->
	 <!-- TemplateEndEditable -->

    </div>
<!-- #BeginLibraryItem "/library/help.lbi" --><!-- #EndLibraryItem -->

<!-- #BeginLibraryItem "/library/page_footer.lbi" --><!-- #EndLibraryItem -->

</body>
<script type="text/javascript">
var goods_id = {$goods_id};
var goodsattr_style = {$cfg.goodsattr_style|default:1};
var gmt_end_time = {$promote_end_time|default:0};
{foreach from=$lang.goods_js item=item key=key}
var {$key} = "{$item}";
{/foreach}
var goodsId = {$goods_id};
var now_time = {$now_time};

<!-- {literal} -->
onload = function(){
  changePrice();
  fixpng();
  try { onload_leftTime(); }
  catch (e) {}
}

/**
 * 点选可选属性或改变数量时修改商品价格的函数
 */
function changePrice()
{
  var attr = getSelectedAttributes(document.forms['ECS_FORMBUY']);
  var qty = document.forms['ECS_FORMBUY'].elements['number'].value;

  Ajax.call('goods.php', 'act=price&id=' + goodsId + '&attr=' + attr + '&number=' + qty, changePriceResponse, 'GET', 'JSON');
}

/**
 * 接收返回的信息
 */
function changePriceResponse(res)
{
  if (res.err_msg.length > 0)
  {
    alert(res.err_msg);
  }
  else
  {
    document.forms['ECS_FORMBUY'].elements['number'].value = res.qty;

    if (document.getElementById('ECS_GOODS_AMOUNT'))
      document.getElementById('ECS_GOODS_AMOUNT').innerHTML = res.result;
  }
}
<!-- {/literal} -->
</script>
</html>

