<!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=GBK" />
<meta name="Keywords" content="{$keywords}" />
<meta name="Description" content="{$description}" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>{$page_title}</title>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<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">
function $(element)
{
  return document.getElementById(element);
}
//切屏--是按钮，_v是内容平台，_h是内容库
function reg(str)
{
  var bt=$(str+"_b").getElementsByTagName("h2");

  for(var i=0;i<bt.length;i++)
  {
    bt[i].subj=str;
    bt[i].pai=i;
    bt[i].style.cursor="pointer";

    bt[i].onclick=function()
    {
      $(this.subj+"_v").innerHTML=$(this.subj+"_h").getElementsByTagName("blockquote")[this.pai].innerHTML;

      for(var j=0;j<$(this.subj+"_b").getElementsByTagName("h2").length;j++)
      {
        var _bt=$(this.subj+"_b").getElementsByTagName("h2")[j];
        var ison=j==this.pai;
        _bt.className=(ison?"":"h2bg");
      }
    }
  }

  $(str+"_h").className="none";
  $(str+"_v").innerHTML=$(str+"_h").getElementsByTagName("blockquote")[0].innerHTML;
}

</script>
</head>
<body>
<!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->
<!--当前位置 start-->
<div class="block box">
  <div id="ur_here">
    <!-- #BeginLibraryItem "/library/ur_here.lbi" --><!-- #EndLibraryItem -->
  </div>
</div>
<!--当前位置 end-->
<div class="blank"></div>

<div class="block clearfix">
  <!--left start-->
  <div class="AreaL">
  <!-- TemplateBeginEditable name="左边区域" -->
  <!-- #BeginLibraryItem "/library/cart.lbi" --><!-- #EndLibraryItem -->
  <!-- #BeginLibraryItem "/library/category_tree.lbi" --><!-- #EndLibraryItem -->
  <!-- TemplateEndEditable -->
  <!-- TemplateBeginEditable name="左边广告区域（宽200px）" -->
  <!-- TemplateEndEditable -->
  <!--AD end-->
  <!-- #BeginLibraryItem "/library/history.lbi" --><!-- #EndLibraryItem -->
  </div>
  <!--left end-->

  <!--right start-->
  <div class="AreaR">
    <!--商品详情start-->
    <div id="goodsInfo" class="clearfix">
      <!--商品图片和相册 start-->
      <div class="imgInfo">
        <!-- {if $pictures}-->
          <a href="javascript:;" onclick="window.open('gallery.php?id={$goods.goods_id}'); return false;">
            <img src="{$goods.goods_img}" alt="{$goods.goods_name|escape:html}"/>
          </a>
        <!-- {else} -->
          <img src="{$goods.goods_img}" alt="{$goods.goods_name|escape:html}"/>
        <!-- {/if}-->
        <div class="blank5"></div>

        <!--相册 START-->
        <!-- #BeginLibraryItem "/library/goods_gallery.lbi" --><!-- #EndLibraryItem -->
        <div class="blank5"></div>
        <!--相册 END-->
        <!-- TemplateBeginEditable name="商品相册下广告（宽230px）" -->
        <!-- TemplateEndEditable -->
      </div>
      <!--商品图片和相册 end-->

      <div class="textInfo">
      <form action="exchange.php?act=buy" method="post" name="ECS_FORMBUY" id="ECS_FORMBUY" >
              <div class="clearfix">
        <p class="f_l">{$goods.goods_style_name}</p>
        <p class="f_r">
          <!-- {if $prev_good} -->
          <a href="{$prev_good.url}"><img alt="prev" src="./images/up.gif" /></a>
          <!-- {/if} -->
          <!-- {if $next_good} -->
          <a href="{$next_good.url}"><img alt="next" src="./images/down.gif" /></a>
          <!-- {/if} -->
        </p>
                </div>

        <ul>
          <!-- {if $cfg.show_goodssn} 显示商品货号-->
          <li class="clearfix">
            <dd>
              <strong>{$lang.goods_sn}</strong>{$goods.goods_sn}
            </dd>
          </li>
          <!-- {/if} -->
          <!-- {if $goods.goods_brand neq "" and $cfg.show_brand} 显示商品品牌-->
          <li class="clearfix">
            <dd>
              <strong>{$lang.goods_brand}</strong><a href="{$goods.goods_brand_url}" >{$goods.goods_brand}</a>
            </dd>
          </li>
          <!--{/if}-->
          <!-- {if $cfg.show_goodsweight} 商品重量-->
          <li class="clearfix">
            <dd>
            <strong>{$lang.goods_weight}</strong>{$goods.goods_weight}
            </dd>
          </li>
          <!-- {/if} -->
          <li class="clearfix">
            <dd>
            <strong>{$lang.exchange_integral}</strong><font class="shop">{$goods.exchange_integral}</font><br />
            </dd>
          </li>
          <!-- {* 开始循环所有可选属性 *} -->
          <!-- {foreach from=$specification item=spec key=spec_key} 循环规格开始 -->
          <li class="padd loop">
            <strong>{$spec.name}:</strong><br />
            <!-- {if $cfg.goodsattr_style eq 1} 规格显示方式：单选按钮 -->
              <!-- {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} />
                {$value.label} </label>
              <!-- {/foreach} -->
            <!-- {else} 规格显示方式：下拉列表 -->
              <select name="spec_{$spec_key}" style="border:1px solid #ccc;">
              <!-- {foreach from=$spec.values item=value key=key} -->
                <option label="{$value.label}" value="{$value.id}">{$value.label} </option>
              <!-- {/foreach} -->
              </select>
            <!-- {/if} 规格显示方式 -->
          </li>
          <!-- {/foreach} 循环规格结束 -->
          <!-- {* 结束循环可选属性 *} -->
          <li class="padd">
            <input type="hidden" name="goods_id" value="{$goods.goods_id}" />
            <input type="submit" value="{$lang.exchange_goods}" class="bnt_blue_1"/>
          </li>
        </ul>
      </form>
      </div>
    </div>
    <div class="blank"></div>
    <!--商品详情end-->

    <!--商品描述，商品属性 START-->
    <div class="box">
      <div class="box_1">
        <h3 style="padding:0 5px;">
          <div id="com_b" class="history clearfix">
            <h2>{$lang.goods_brief}</h2>
            <h2 class="h2bg">{$lang.goods_attr}</h2>
          </div>
        </h3>

        <div id="com_v" class="boxCenterList RelaArticle"></div>

        <div id="com_h">
          <blockquote>
            {$goods.goods_desc}
          </blockquote>

          <blockquote>
            <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#dddddd">
              <!-- {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|escape:html}</td>
              </tr>
              <!-- {/foreach}-->
              <!-- {/foreach}-->
            </table>
          </blockquote>
        </div>
      </div>
    </div>

    <script type="text/javascript">
    <!--
    reg("com");
    //-->
    </script>

    <div class="blank"></div>
    <!--商品描述，商品属性 END-->

  </div>
  <!--right end-->
</div>
<div class="blank5"></div>

<!--帮助-->
<div class="block">
  <div class="box">
    <div class="helpTitBg clearfix">
      <!-- #BeginLibraryItem "/library/help.lbi" --><!-- #EndLibraryItem -->
    </div>
  </div>
</div>
<div class="blank"></div>
<!--帮助-->

<!--友情链接 start-->
<!--{if $img_links  or $txt_links }-->
<div id="bottomNav" class="box">
  <div class="box_1">
    <div class="links clearfix">
      <!--开始图片类型的友情链接{foreach from=$img_links item=link}-->
        <a href="{$link.url}" target="_blank" title="{$link.name}"><img src="{$link.logo}" alt="{$link.name}" border="0" /></a>
      <!--结束图片类型的友情链接{/foreach}-->
      <!-- {if $txt_links} -->
        <!--开始文字类型的友情链接{foreach from=$txt_links item=link}-->
          [<a href="{$link.url}" target="_blank" title="{$link.name}">{$link.name}</a>]
        <!--结束文字类型的友情链接{/foreach}-->
      <!-- {/if} -->
    </div>
  </div>
</div>
<!--{/if}-->
<div class="blank"></div>
<!--友情链接 end-->

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

<script type="text/javascript">
<!-- {literal} -->
onload = function()
{
  fixpng();
}
<!-- {/literal} -->
</script>
</html>
