<!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" />
<style>
th,td{padding:3px;}
</style>
{* 包含脚本文件 *}
{insert_scripts files='common.js,lefttime.js'}
<script type="text/javascript">
  {foreach from=$lang.js_languages item=item key=key}
    var {$key} = "{$item}";
  {/foreach}
</script>
</head>
<body>
<div id="wrap">
  <!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->
  <div class="container">
    <div class="global_l">
    <!-- TemplateBeginEditable name="左边区域" -->
    <!-- #BeginLibraryItem "/library/category_tree.lbi" --><!-- #EndLibraryItem -->
    <!-- #BeginLibraryItem "/library/promotion_info.lbi" --><!-- #EndLibraryItem -->
    <!-- #BeginLibraryItem "/library/history.lbi" --><!-- #EndLibraryItem -->
    <!-- TemplateEndEditable -->
    </div>
    <div class="global_r">
    <!-- TemplateBeginEditable name="通栏广告区域（宽752px）" -->
    <!-- TemplateEndEditable -->
      <div class="module" id="group_auction">
        <p class="top"><span></span></p>
        <div class="content">
          <div class="cont">
            <div class="img_info">
              <h2>{$lang.gb_goods_name} {$gb_goods.goods_name|escape:html}</h2>
              <ul>
                <li>
									<!-- {if $cfg.show_goodssn && 0} -->
									{$lang.goods_sn} {$gb_goods.goods_sn}<br>
									<!-- {/if} -->
									<!-- {if $cfg.goods.brand_name && $show_brand && 0} -->
									{$lang.goods_brand} {$gb_goods.brand_name}<br>
									<!--{/if}-->
									<!-- {if $cfg.show_goodsweight && 0} -->
									{$lang.goods_weight} {$gb_goods.goods_weight}<br>
									<!-- {/if} --> 
									
                  {$lang.act_time}：{$group_buy.formated_start_date} -- {$group_buy.formated_end_date}<br>
                  {$lang.gb_price_ladder}
                </li>
              </ul>
              <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                <tr>
                  <th width="29%" align="center" bgcolor="#FFFFFF">{$lang.gb_ladder_amount}</th>
                  <th width="71%" align="center" bgcolor="#FFFFFF">{$lang.gb_ladder_price}</th>
                </tr>
                <!-- {foreach from=$group_buy.price_ladder item=item} -->
                <tr>
                  <td width="29%" align="center" bgcolor="#FFFFFF">{$item.amount}</td>
                  <td width="71%" align="center" bgcolor="#FFFFFF">{$item.formated_price}</td>
                </tr>
                <!-- {/foreach} -->
              </table>
              <ul>
                <li>
                  <!-- {if $group_buy.deposit > 0} 保证金额-->
                  {$lang.gb_deposit} {$group_buy.formated_deposit}<br />
                  <!--{/if}-->
                  <!--{if $group_buy.restrict_amount > 0} 限购数量-->
                  {$lang.gb_restrict_amount} {$group_buy.restrict_amount}<br />
                  <!--{/if}-->
                  <!--{if $group_buy.gift_integral > 0} 送积分-->
                  {$lang.gb_gift_integral} {$group_buy.gift_integral}<br />
                  <!--{/if}-->
                  <!-- {if $group_buy.status eq 0} 未开始 -->
                  {$lang.gbs_pre_start}
                  <!-- {elseif $group_buy.status eq 1} 进行中 -->
                  <font class="f5">{$lang.gbs_under_way}<span id="leftTime">{$lang.please_waiting}</span></font><br />
                  {$lang.gb_cur_price} {$group_buy.formated_cur_price}<br />
                  {$lang.gb_valid_goods} {$group_buy.valid_goods}<br />
                  <!-- {elseif $group_buy.status eq 2} 已结束 -->
                  {$lang.gbs_finished} {$lang.gb_cur_price} {$group_buy.formated_cur_price} {$lang.gb_valid_goods} {$group_buy.valid_goods}
                  <!-- {elseif $group_buy.status eq 3} 团购成功 -->
                  {$lang.gbs_succeed}
                  {$lang.gb_final_price} {$group_buy.formated_trans_price}<br />
                  {$lang.gb_final_amount} {$group_buy.trans_amount}
                  <!-- {elseif $group_buy.status eq 4} 团购失败 -->
                  {$lang.gbs_fail}
                  <!-- {/if} -->
                </li>
              </ul>
            </div>
            <p class="img"><a href="{$gb_goods.url}"><img src="{$gb_goods.goods_thumb}" alt="{$gb_goods.goods_name|escape:html}" /></a></p>
          </div>
        </div>
        <p class="bottom"><span></span></p>
      </div>
      <div class="module goods_list">
        <div class="caption"><span>{$lang.properties}</span></div>
        <p class="top"><span></span></p>
        <div class="content">
          <form action="group_buy.php?act=buy" method="post" name="ECS_FORMBUY" id="ECS_FORMBUY">
            <table width="98%" border="0" style="margin:0 auto 5px;" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
              <!-- {foreach from=$specification item=spec key=spec_key} 循环规格开始 -->
              <tr>
                <td width="22%" bgcolor="#ffffff">{$spec.name}</td>
                <td width="78%" bgcolor="#ffffff">
                  <!-- {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} 规格显示方式 -->
                </td>
              </tr>
              <!-- {/foreach} 循环规格结束 -->
              <!-- {if $smarty.session.user_id > 0} 如果登录了，显示购买按钮 -->
              <tr>
                <td bgcolor="#ffffff"><strong>{$lang.number}:</strong></td>
                <td bgcolor="#ffffff">
                  <input name="number" type="text" id="number" value="1" size="4" />
                  <input type="hidden" name="group_buy_id" value="{$group_buy.group_buy_id}" />
                  <input type="image" src="images/but_1.gif" style="width:73px; height:21px; line-height:21px; position:relative; top:-1px; *top:-2px; vertical-align:middle" />
                </td>
              </tr>
              <!-- {else} 如果没有登录，显示提示信息 -->
              <tr>
                <td colspan="2" align="right"  bgcolor="#ffffff"><font class="f_red">{$lang.gb_notice_login}</font></td>
              </tr>
              <!-- {/if} 判断登录结束 -->
            </table>
          </form>
        </div>
        <p class="bottom"><span></span></p>
      </div>
      <div class="module goods_list">
        <div class="caption"><span>{$lang.groupbuy_intro}</span></div>
        <p class="top"><span></span></p>
        <div class="content" style="font-size:12px; padding:5px; line-height:20px;">{$group_buy.group_buy_desc}</div>
        <p class="bottom"><span></span></p>
      </div>
    </div>
  </div>
  <!-- #BeginLibraryItem "/library/help.lbi" --><!-- #EndLibraryItem -->
  <!-- #BeginLibraryItem "/library/page_footer.lbi" --><!-- #EndLibraryItem -->
</div>
</body>
<script type="text/javascript">
var gmt_end_time = "{$group_buy.gmt_end_date|default:0}";
{foreach from=$lang.goods_js item=item key=key}
var {$key} = "{$item}";
{/foreach}
var now_time = {$now_time};
<!-- {literal} -->

onload = function()
{
  try
  {
    onload_leftTime();
  }
  catch (e)
  {}
}
<!-- {/literal} -->
</script>
</html>