<!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,shopping_flow.js'}
</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">
  <!-- {if $step eq "cart"} -->
  <!-- 购物车内容 -->
  {* 包含脚本文件 *}
  {insert_scripts files='showdiv.js'}
  <script type="text/javascript">
  {foreach from=$lang.password_js item=item key=key}
    var {$key} = "{$item}";
  {/foreach}
  </script>
  <div class="flowBox">
    <h6><span>{$lang.goods_list}</span></h6>
        <form id="formCart" name="formCart" method="post" action="flow.php">
           <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <th bgcolor="#ffffff">{$lang.goods_name}</th>
      <!-- {if $show_goods_attribute eq 1} 显示商品属性 -->
              <th bgcolor="#ffffff">{$lang.goods_attr}</th>
              <!-- {/if} -->
              <!-- {if $show_marketprice} 显示市场价 -->
              <th bgcolor="#ffffff">{$lang.market_prices}</th>
              <!-- {/if} -->
              <th bgcolor="#ffffff">{$lang.shop_prices}</th>
              <th bgcolor="#ffffff">{$lang.number}</th>
              <th bgcolor="#ffffff">{$lang.subtotal}</th>
              <th bgcolor="#ffffff">{$lang.handle}</th>
            </tr>
            <!-- {foreach from=$goods_list item=goods} -->
            <tr>
              <td bgcolor="#ffffff" align="center">
                <!-- {if $goods.goods_id gt 0 && $goods.extension_code neq 'package_buy'} 商品 -->
                  <!-- {if $show_goods_thumb eq 1} -->
                    <a href="goods.php?id={$goods.goods_id}" target="_blank" class="f6">{$goods.goods_name}</a>
                  <!-- {elseif $show_goods_thumb eq 2} -->
                    <a href="goods.php?id={$goods.goods_id}" target="_blank"><img src="{$goods.goods_thumb}" border="0" title="{$goods.goods_name|escape:html}" /></a>
                  <!-- {else} -->
                    <a href="goods.php?id={$goods.goods_id}" target="_blank"><img src="{$goods.goods_thumb}" border="0" title="{$goods.goods_name|escape:html}" /></a><br />
                    <a href="goods.php?id={$goods.goods_id}" target="_blank" class="f6">{$goods.goods_name}</a>
                  <!-- {/if} -->
                  <!-- {if $goods.parent_id gt 0} 配件 -->
                  <span style="color:#FF0000">（{$lang.accessories}）</span>
                  <!-- {/if} -->
                  <!-- {if $goods.is_gift gt 0} 赠品 -->
                  <span style="color:#FF0000">（{$lang.largess}）</span>
                  <!-- {/if} -->
                <!-- {elseif $goods.goods_id gt 0 && $goods.extension_code eq 'package_buy'} -->
                  <a href="javascript:void(0)" onclick="setSuitShow({$goods.goods_id})" class="f6">{$goods.goods_name}<span style="color:#FF0000;">（{$lang.remark_package}）</span></a>
                  <div id="suit_{$goods.goods_id}" style="display:none">
                      <!-- {foreach from=$goods.package_goods_list item=package_goods_list} -->
                        <a href="goods.php?id={$package_goods_list.goods_id}" target="_blank" class="f6">{$package_goods_list.goods_name}</a><br />
                      <!-- {/foreach} -->
                  </div>
                <!-- {else} 优惠活动 -->
                  {$goods.goods_name}
                <!-- {/if} -->
              </td>
              <!-- {if $show_goods_attribute eq 1} 显示商品属性 -->
              <td bgcolor="#ffffff">{$goods.goods_attr|nl2br}</td>
              <!-- {/if} -->
              <!-- {if $show_marketprice} 显示市场价 -->
              <td align="right" bgcolor="#ffffff">{$goods.market_price}</td>
              <!-- {/if} -->
              <td align="right" bgcolor="#ffffff">{$goods.goods_price}</td>
              <td align="right" bgcolor="#ffffff">
                <!-- {if $goods.goods_id gt 0 && $goods.is_gift eq 0 && $goods.parent_id eq 0} 普通商品可修改数量 -->
                <input type="text" name="goods_number[{$goods.rec_id}]" id="goods_number_{$goods.rec_id}" value="{$goods.goods_number}" size="4" class="inputBg" style="text-align:center " onkeydown="showdiv(this)"/>
                <!-- {else} -->
                {$goods.goods_number}
                <!-- {/if} -->
              </td>
              <td align="right" bgcolor="#ffffff">{$goods.subtotal}</td>
              <td align="center" bgcolor="#ffffff">
                <a href="javascript:if (confirm('{$lang.drop_goods_confirm}')) location.href='flow.php?step=drop_goods&amp;id={$goods.rec_id}'; " class="f6">{$lang.drop}</a>
                <!-- {if $smarty.session.user_id gt 0 && $goods.extension_code neq 'package_buy'} 如果登录了，可以加入收藏 -->
                <a href="javascript:if (confirm('{$lang.drop_goods_confirm}')) location.href='flow.php?step=drop_to_collect&amp;id={$goods.rec_id}'; " class="f6">{$lang.drop_to_collect}</a>
                <!-- {/if} -->            </td>
            </tr>
            <!-- {/foreach} -->
          </table>
          <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <td bgcolor="#ffffff">
              <!-- {if $discount gt 0} -->{$your_discount}<br /><!-- {/if} -->
              {$shopping_money}<!-- {if $show_marketprice} -->，{$market_price_desc}<!-- {/if} -->
              </td>
              <td align="right" bgcolor="#ffffff">
                <input type="button" value="{$lang.clear_cart}" class="bnt_blue_1" onclick="location.href='flow.php?step=clear'" />
                <input name="submit" type="submit" class="bnt_blue_1" value="{$lang.update_cart}" />
              </td>
            </tr>
          </table>
          <input type="hidden" name="step" value="update_cart" />
        </form>
        <table width="99%" align="center" border="0" cellpadding="5" cellspacing="0" bgcolor="#dddddd">
          <tr>
            <td bgcolor="#ffffff"><a href="./"><img src="images/continue.gif" alt="continue" /></a></td>
            <td bgcolor="#ffffff" align="right"><a href="flow.php?step=checkout"><img src="images/checkout.gif" alt="checkout" /></a></td>
          </tr>
        </table>
       <!-- {if $smarty.session.user_id gt 0} -->
       {insert_scripts files='transport.js'}
       <script type="text/javascript" charset="utf-8">
        function collect_to_flow(goodsId)
        {
          var goods        = new Object();
          var spec_arr     = new Array();
          var fittings_arr = new Array();
          var number       = 1;
          goods.spec     = spec_arr;
          goods.goods_id = goodsId;
          goods.number   = number;
          goods.parent   = 0;
          Ajax.call('flow.php?step=add_to_cart', 'goods=' + goods.toJSONString(), collect_to_flow_response, 'POST', 'JSON');
        }
        function collect_to_flow_response(result)
        {
          if (result.error > 0)
          {
            // 如果需要缺货登记，跳转
            if (result.error == 2)
            {
              if (confirm(result.message))
              {
                location.href = 'user.php?act=add_booking&id=' + result.goods_id;
              }
            }
            else if (result.error == 6)
            {
              if (confirm(result.message))
              {
                location.href = 'goods.php?id=' + result.goods_id;
              }
            }
            else
            {
              alert(result.message);
            }
          }
          else
          {
            location.href = 'flow.php';
          }
        }
      </script>
  </div>
    <div class="blank"></div>
  <!-- {/if} -->

  <!-- {if $collection_goods} -->
  <div class="flowBox">
    <h6><span>{$lang.label_collection}</span></h6>
    <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
      <!-- {foreach from=$collection_goods item=goods} -->
          <tr>
            <td bgcolor="#ffffff"><a href="goods.php?id={$goods.goods_id}" class="f6">{$goods.goods_name}</a></td>
            <td bgcolor="#ffffff" align="center" width="100"><a href="javascript:addToCart({$goods.goods_id})" class="f6">{$lang.collect_to_flow}</a></td>
          </tr>
      <!-- {/foreach} -->
        </table>
      <!-- {/if} -->
  </div>
    <div class="blank5"></div>
  <!-- {/if} -->

  <!-- {if $fittings_list} 商品配件 -->
  {insert_scripts files='transport.js'}
  <script type="text/javascript" charset="utf-8">
  function fittings_to_flow(goodsId,parentId)
  {
    var goods        = new Object();
    var spec_arr     = new Array();
    var number       = 1;
    goods.spec     = spec_arr;
    goods.goods_id = goodsId;
    goods.number   = number;
    goods.parent   = parentId;
    Ajax.call('flow.php?step=add_to_cart', 'goods=' + goods.toJSONString(), fittings_to_flow_response, 'POST', 'JSON');
  }
  function fittings_to_flow_response(result)
  {
    if (result.error > 0)
    {
      // 如果需要缺货登记，跳转
      if (result.error == 2)
      {
        if (confirm(result.message))
        {
          location.href = 'user.php?act=add_booking&id=' + result.goods_id;
        }
      }
      else if (result.error == 6)
      {
        if (confirm(result.message))
        {
          location.href = 'goods.php?id=' + result.goods_id;
        }
      }
      else
      {
        alert(result.message);
      }
    }
    else
    {
      location.href = 'flow.php';
    }
  }
  </script>
  <div class="block" >
    <div class="flowBox">
    <h6><span>{$lang.goods_fittings}</span></h6>
    <form action="flow.php" method="post">
        <div class="flowGoodsFittings clearfix">
          <!-- {foreach from=$fittings_list item=fittings} -->
            <ul class="clearfix">
              <li class="goodsimg">
                <a href="{$fittings.url}" target="_blank"><img src="{$fittings.goods_thumb}" alt="{$fittings.name|escape:html}" class="B_blue" /></a>
              </li>
              <li>
                <a href="{$fittings.url}" target="_blank" title="{$fittings.goods_name|escape:html}" class="f6">{$fittings.short_name|escape:html}</a><br />
                {$lang.fittings_price}<font class="f1">{$fittings.fittings_price}</font><br />
                {$lang.parent_name}{$fittings.parent_short_name}<br />
                <a href="javascript:fittings_to_flow({$fittings.goods_id},{$fittings.parent_id})"><img src="images/bnt_buy.gif" alt="{$lang.collect_to_flow}" /></a>
              </li>
            </ul>
          <!-- {/foreach} 循环商品配件结束 -->
        </div>
    </form>
    </div>
  </div>
  <div class="blank5"></div>
  <!-- {/if} -->

  <!-- {if $favourable_list} 优惠活动 -->
  <div class="block">
    <div class="flowBox">
    <h6><span>{$lang.label_favourable}</span></h6>
        <!-- {foreach from=$favourable_list item=favourable} -->
        <form action="flow.php" method="post">
          <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <td align="right" bgcolor="#ffffff">{$lang.favourable_name}</td>
              <td bgcolor="#ffffff"><strong>{$favourable.act_name}</strong></td>
            </tr>
            <tr>
              <td align="right" bgcolor="#ffffff">{$lang.favourable_period}</td>
              <td bgcolor="#ffffff">{$favourable.start_time} --- {$favourable.end_time}</td>
            </tr>
            <tr>
              <td align="right" bgcolor="#ffffff">{$lang.favourable_range}</td>
              <td bgcolor="#ffffff">{$lang.far_ext[$favourable.act_range]}<br />
              {$favourable.act_range_desc}</td>
            </tr>
            <tr>
              <td align="right" bgcolor="#ffffff">{$lang.favourable_amount}</td>
              <td bgcolor="#ffffff">{$favourable.formated_min_amount} --- {$favourable.formated_max_amount}</td>
            </tr>
            <tr>
              <td align="right" bgcolor="#ffffff">{$lang.favourable_type}</td>
              <td bgcolor="#ffffff">
                <span class="STYLE1">{$favourable.act_type_desc}</span>
                <!-- {if $favourable.act_type eq 0} -->
                <!-- {foreach from=$favourable.gift item=gift} --><br />
                  <input type="checkbox" value="{$gift.id}" name="gift[]" />
                  <a href="goods.php?id={$gift.id}" target="_blank" class="f6">{$gift.name}</a> [{$gift.formated_price}]
                <!-- {/foreach} -->
              <!-- {/if} -->          </td>
            </tr>
            <!-- {if $favourable.available} -->
            <tr>
              <td align="right" bgcolor="#ffffff">&nbsp;</td>
              <td align="center" bgcolor="#ffffff"><input type="image" src="images/bnt_cat.gif" alt="Add to cart"  border="0" /></td>
            </tr>
            <!-- {/if} -->
          </table>
          <input type="hidden" name="act_id" value="{$favourable.act_id}" />
          <input type="hidden" name="step" value="add_favourable" />
        </form>
        <!-- {/foreach} 循环赠品活动结束 -->
  </div>
  </div>
  <!-- {/if} -->


        <!-- {if $step eq "consignee"} -->
        <!-- 开始收货人信息填写界面 -->
        {insert_scripts files='region.js,utils.js'}
        <script type="text/javascript">
          region.isAdmin = false;
          {foreach from=$lang.flow_js item=item key=key}
          var {$key} = "{$item}";
          {/foreach}

          {literal}
          onload = function() {
            if (!document.all)
            {
              document.forms['theForm'].reset();
            }
          }
          {/literal}
        </script>
        <!-- 如果有收货地址，循环显示用户的收获地址 -->
        <!-- {foreach from=$consignee_list item=consignee key=sn} -->
        <form action="flow.php" method="post" name="theForm" id="theForm" onsubmit="return checkConsignee(this)">
        <!-- #BeginLibraryItem "/Library/consignee.lbi" --><!-- #EndLibraryItem -->
        </form>
        <!-- {/foreach} -->
        <!-- {/if} -->

        <!-- {if $step eq "checkout"} 开始订单确认界面 -->
        <form action="flow.php" method="post" name="theForm" id="theForm" onsubmit="return checkOrderForm(this)">
        <script type="text/javascript">
        var flow_no_payment = "{$lang.flow_no_payment}";
        var flow_no_shipping = "{$lang.flow_no_shipping}";
        </script>
        <div class="flowBox">
        <h6><span>{$lang.goods_list}</span><!--{if $allow_edit_cart} --><a href="flow.php" class="f6">{$lang.modify}</a><!--{/if} --></h6>
        <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <th bgcolor="#ffffff">{$lang.goods_name}</th>
              <th bgcolor="#ffffff">{$lang.goods_attr}</th>
              <!-- {if $show_marketprice} -->
              <th bgcolor="#ffffff">{$lang.market_prices}</th>
              <!-- {/if} -->
              <th bgcolor="#ffffff">{if $gb_deposit}{$lang.deposit}{else}{$lang.shop_prices}{/if}</th>
              <th bgcolor="#ffffff">{$lang.number}</th>
              <th bgcolor="#ffffff">{$lang.subtotal}</th>
            </tr>
            <!-- {foreach from=$goods_list item=goods} -->
            <tr>
              <td bgcolor="#ffffff">
              <!-- {if $goods.goods_id gt 0 && $goods.extension_code eq 'package_buy'} -->
	      <a href="javascript:void(0)" onclick="setSuitShow({$goods.goods_id})" class="f6">{$goods.goods_name}<span style="color:#FF0000;">（{$lang.remark_package}）</span></a>
	      <div id="suit_{$goods.goods_id}" style="display:none">
	          <!-- {foreach from=$goods.package_goods_list item=package_goods_list} -->
		    <a href="goods.php?id={$package_goods_list.goods_id}" target="_blank" class="f6">{$package_goods_list.goods_name}</a><br />
	          <!-- {/foreach} -->
	      </div>
	      <!-- { else } -->
	      <a href="goods.php?id={$goods.goods_id}" target="_blank" class="f6">{$goods.goods_name}</a>
                <!-- {if $goods.parent_id > 0} -->
                <span style="color:#FF0000">（{$lang.accessories}）</span>
                <!-- {elseif $goods.is_gift} -->
                <span style="color:#FF0000">（{$lang.largess}）</span>
                <!-- {/if} -->
	      <!-- {/if} -->
              </td>
              <td bgcolor="#ffffff">{$goods.goods_attr|nl2br}</td>
              <!-- {if $show_marketprice} -->
              <td align="right" bgcolor="#ffffff">{$goods.formated_market_price}</td>
              <!-- {/if} -->
              <td bgcolor="#ffffff" align="right">{$goods.formated_goods_price}</td>
              <td bgcolor="#ffffff" align="right">{$goods.goods_number}</td>
              <td bgcolor="#ffffff" align="right">{$goods.formated_subtotal}</td>
            </tr>
            <!-- {/foreach} -->
            <!-- {if !$gb_deposit} 团购且有保证金时不显示 -->
            <tr>
              <td bgcolor="#ffffff" colspan="7">
              <!-- {if $discount gt 0} -->{$your_discount}<br /><!-- {/if} -->
              {$shopping_money}<!-- {if $show_marketprice} -->，{$market_price_desc}<!--{/if}-->
              </td>
            </tr>
            <!-- {/if} -->
          </table>
      </div>
      <div class="blank"></div>
      <div class="flowBox">
      <h6><span>{$lang.consignee_info}</span><a href="flow.php?step=consignee" class="f6">{$lang.modify}</a></h6>
      <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <td bgcolor="#ffffff">{$lang.consignee_name}:</td>
              <td bgcolor="#ffffff">{$consignee.consignee|escape}</td>
              <td bgcolor="#ffffff">{$lang.email_address}:</td>
              <td bgcolor="#ffffff">{$consignee.email|escape}</td>
            </tr>
            <!-- {if $total.real_goods_count gt 0} -->
            <tr>
              <td bgcolor="#ffffff">{$lang.detailed_address}:</td>
              <td bgcolor="#ffffff">{$consignee.address|escape} </td>
              <td bgcolor="#ffffff">{$lang.postalcode}:</td>
              <td bgcolor="#ffffff">{$consignee.zipcode|escape}</td>
            </tr>
            <!-- {/if} -->
            <tr>
              <td bgcolor="#ffffff">{$lang.phone}:</td>
              <td bgcolor="#ffffff">{$consignee.tel} </td>
              <td bgcolor="#ffffff">{$lang.backup_phone}:</td>
              <td bgcolor="#ffffff">{$consignee.mobile|escape}</td>
            </tr>
             <!-- {if $total.real_goods_count gt 0} -->
            <tr>
              <td bgcolor="#ffffff">{$lang.sign_building}:</td>
              <td bgcolor="#ffffff">{$consignee.sign_building|escape} </td>
              <td bgcolor="#ffffff">{$lang.deliver_goods_time}:</td>
              <td bgcolor="#ffffff">{$consignee.best_time|escape}</td>
            </tr>
            <!-- {/if} -->
          </table>
      </div>
     <div class="blank"></div>
    <!--{if $total.real_goods_count neq 0}-->
    <div class="flowBox">
    <h6><span>{$lang.shipping_method}</span></h6>
    <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="shippingTable">
            <tr>
              <th bgcolor="#ffffff" width="5%">&nbsp;</th>
              <th bgcolor="#ffffff" width="25%">{$lang.name}</th>
              <th bgcolor="#ffffff">{$lang.describe}</th>
              <th bgcolor="#ffffff" width="15%">{$lang.fee}</th>
              <th bgcolor="#ffffff" width="15%">{$lang.free_money}</th>
              <th bgcolor="#ffffff" width="15%">{$lang.insure_fee}</th>
            </tr>
            <!-- {foreach from=$shipping_list item=shipping} 循环配送方式 -->
            <tr>
              <td bgcolor="#ffffff" valign="top"><input name="shipping" type="radio" value="{$shipping.shipping_id}" {if $order.shipping_id eq $shipping.shipping_id}checked="true"{/if} supportCod="{$shipping.support_cod}" insure="{$shipping.insure}" onclick="selectShipping(this)" />
              </td>
              <td bgcolor="#ffffff" valign="top"><strong>{$shipping.shipping_name}</strong></td>
              <td bgcolor="#ffffff" valign="top">{$shipping.shipping_desc}</td>
              <td bgcolor="#ffffff" align="right" valign="top">{$shipping.format_shipping_fee}</td>
              <td bgcolor="#ffffff" align="right" valign="top">{$shipping.free_money}</td>
              <td bgcolor="#ffffff" align="right" valign="top">{if $shipping.insure neq 0}{$shipping.insure_formated}{else}{$lang.not_support_insure}{/if}</td>
            </tr>
            <!-- {/foreach} 循环配送方式 -->
            <tr>
              <td colspan="6" bgcolor="#ffffff" align="right"><label for="ECS_NEEDINSURE">
                <input name="need_insure" id="ECS_NEEDINSURE" type="checkbox"  onclick="selectInsure(this.checked)" value="1" {if $order.need_insure}checked="true"{/if} {if $insure_disabled}disabled="true"{/if}  />
                {$lang.need_insure} </label></td>
            </tr>
          </table>
    </div>
    <div class="blank"></div>
        <!--{else}-->
        <input name = "shipping" type="radio" value = "-1" checked="checked"  style="display:none"/>
        <!--{/if}-->
    <!--{if $is_exchange_goods neq 1 || $total.real_goods_count neq 0}-->
    <div class="flowBox">
    <h6><span>{$lang.payment_method}</span></h6>
    <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="paymentTable">
            <tr>
              <th width="5%" bgcolor="#ffffff">&nbsp;</th>
              <th width="20%" bgcolor="#ffffff">{$lang.name}</th>
              <th bgcolor="#ffffff">{$lang.describe}</th>
              <th bgcolor="#ffffff" width="15%">{$lang.pay_fee}</th>
            </tr>
            <!-- {foreach from=$payment_list item=payment} -->
            <!-- 循环支付方式 -->
            <tr>
              <td valign="top" bgcolor="#ffffff"><input type="radio" name="payment" value="{$payment.pay_id}" {if $order.pay_id eq $payment.pay_id}checked{/if} isCod="{$payment.is_cod}" onclick="selectPayment(this)" {if $cod_disabled and $payment.is_cod eq "1"}disabled="true"{/if}/></td>
              <td valign="top" bgcolor="#ffffff"><strong>{$payment.pay_name}</strong></td>
              <td valign="top" bgcolor="#ffffff">{$payment.pay_desc}</td>
              <td align="right" bgcolor="#ffffff" valign="top">{$payment.format_pay_fee}</td>
            </tr>
            <!-- {/foreach} 循环支付方式 -->
          </table>
    </div>
    <!--{else}-->
        <input name = "payment" type="radio" value = "-1" checked="checked"  style="display:none"/>
    <!--{/if}-->
    <div class="blank"></div>
          <!-- {if $pack_list} 是否有包装 -->
          <div class="flowBox">
          <h6><span>{$lang.goods_package}</span></h6>
          <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="packTable">
            <tr>
              <th width="5%" scope="col" bgcolor="#ffffff">&nbsp;</th>
              <th width="35%" scope="col" bgcolor="#ffffff">{$lang.name}</th>
              <th width="22%" scope="col" bgcolor="#ffffff">{$lang.price}</th>
              <th width="22%" scope="col" bgcolor="#ffffff">{$lang.free_money}</th>
              <th scope="col" bgcolor="#ffffff">{$lang.img}</th>
            </tr>
            <tr>
              <td valign="top" bgcolor="#ffffff"><input type="radio" name="pack" value="0" {if $order.pack_id eq 0}checked="true"{/if} onclick="selectPack(this)" /></td>
              <td valign="top" bgcolor="#ffffff"><strong>{$lang.no_pack}</strong></td>
              <td valign="top" bgcolor="#ffffff">&nbsp;</td>
              <td valign="top" bgcolor="#ffffff">&nbsp;</td>
              <td valign="top" bgcolor="#ffffff">&nbsp;</td>
            </tr>
            <!-- {foreach from=$pack_list item=pack} 循环包装 -->
            <tr>
              <td valign="top" bgcolor="#ffffff"><input type="radio" name="pack" value="{$pack.pack_id}" {if $order.pack_id eq $pack.pack_id}checked="true"{/if} onclick="selectPack(this)" />
              </td>
              <td valign="top" bgcolor="#ffffff"><strong>{$pack.pack_name}</strong></td>
              <td valign="top" bgcolor="#ffffff" align="right">{$pack.format_pack_fee}</td>
              <td valign="top" bgcolor="#ffffff" align="right">{$pack.format_free_money}</td>
              <td valign="top" bgcolor="#ffffff" align="center">
                  <!-- {if $pack.pack_img} 是否有图片 -->
                  <a href="data/packimg/{$pack.pack_img}" target="_blank" class="f6">{$lang.view}</a>
                  <!-- {else} -->
                  {$lang.no}
                  <!-- {/if} -->
               </td>
            </tr>
            <!-- {/foreach} 循环包装 -->
          </table>
       </div>
             <div class="blank"></div>
          <!-- {/if} 是否使用包装 -->

          <!-- {if $card_list} 是否有贺卡 -->
          <div class="flowBox">
          <h6><span>{$lang.goods_card}</span></h6>
          <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="cardTable">
            <tr>
              <th bgcolor="#ffffff" width="5%" scope="col">&nbsp;</th>
              <th bgcolor="#ffffff" width="35%" scope="col">{$lang.name}</th>
              <th bgcolor="#ffffff" width="22%" scope="col">{$lang.price}</th>
              <th bgcolor="#ffffff" width="22%" scope="col">{$lang.free_money}</th>
              <th bgcolor="#ffffff" scope="col">{$lang.img}</th>
            </tr>
            <tr>
              <td bgcolor="#ffffff" valign="top"><input type="radio" name="card" value="0" {if $order.card_id eq 0}checked="true"{/if} onclick="selectCard(this)" /></td>
              <td bgcolor="#ffffff" valign="top"><strong>{$lang.no_card}</strong></td>
              <td bgcolor="#ffffff" valign="top">&nbsp;</td>
              <td bgcolor="#ffffff" valign="top">&nbsp;</td>
              <td bgcolor="#ffffff" valign="top">&nbsp;</td>
            </tr>
            <!-- {foreach from=$card_list item=card} 循环贺卡 -->
            <tr>
              <td valign="top" bgcolor="#ffffff"><input type="radio" name="card" value="{$card.card_id}" {if $order.card_id eq $card.card_id}checked="true"{/if} onclick="selectCard(this)"  />
              </td>
              <td valign="top" bgcolor="#ffffff"><strong>{$card.card_name}</strong></td>
              <td valign="top" align="right" bgcolor="#ffffff">{$card.format_card_fee}</td>
              <td valign="top" align="right" bgcolor="#ffffff">{$card.format_free_money}</td>
              <td valign="top" align="center" bgcolor="#ffffff">
                  <!-- {if $card.card_img} 是否有图片 -->
                  <a href="data/cardimg/{$card.card_img}" target="_blank" class="f6">{$lang.view}</a>
                  <!-- {else} -->
                  {$lang.no}
                  <!-- {/if} -->
                </td>
            </tr>
            <!-- {/foreach} 循环贺卡 -->
            <tr>
              <td bgcolor="#ffffff"></td>
              <td bgcolor="#ffffff" valign="top"><strong>{$lang.bless_note}:</strong></td>
              <td bgcolor="#ffffff" colspan="3"><textarea name="card_message" cols="60" rows="3" style="width:auto; border:1px solid #ccc;">{$order.card_message|escape}</textarea></td>
            </tr>
          </table>
        </div>
                <div class="blank"></div>
        <!-- {/if} 是否使用贺卡 -->

      <div class="flowBox">
    <h6><span>{$lang.other_info}</span></h6>
      <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <!-- {if $allow_use_surplus} 是否使用余额 -->
            <tr>
              <td width="20%" bgcolor="#ffffff"><strong>{$lang.use_surplus}: </strong></td>
              <td bgcolor="#ffffff"><input name="surplus" type="text" class="inputBg" id="ECS_SURPLUS" size="10" value="{$order.surplus|default:0}" onblur="changeSurplus(this.value)" {if $disable_surplus}disabled="disabled"{/if} />
              {$lang.your_surplus}{$your_surplus|default:0} <span id="ECS_SURPLUS_NOTICE" class="notice"></span></td>
            </tr>
            <!-- {/if} 是否使用余额 -->
            <!-- {if $allow_use_integral} 是否使用积分 -->
            <tr>
              <td bgcolor="#ffffff"><strong>{$lang.use_integral}</strong></td>
              <td bgcolor="#ffffff"><input name="integral" type="text" class="input" id="ECS_INTEGRAL" onblur="changeIntegral(this.value)" value="{$order.integral|default:0}" size="10" />
              {$lang.can_use_integral}:{$your_integral|default:0} {$points_name}，{$lang.noworder_can_integral}{$order_max_integral}  {$points_name}. <span id="ECS_INTEGRAL_NOTICE" class="notice"></span></td>
            </tr>
            <!-- {/if} 是否使用积分 -->
            <!-- {if $allow_use_bonus} 是否使用红包 -->
            <tr>
              <td bgcolor="#ffffff"><strong>{$lang.use_bonus}:</strong></td>
              <td bgcolor="#ffffff">
                {$lang.select_bonus}
                <select name="bonus" onchange="changeBonus(this.value)" id="ECS_BONUS" style="border:1px solid #ccc;">
                  <option value="0" {if $order.bonus_id eq 0}selected{/if}>{$lang.please_select}</option>
                  <!-- {foreach from=$bonus_list item=bonus} -->
                  <option value="{$bonus.bonus_id}" {if $order.bonus_id eq $bonus.bonus_id}selected{/if}>{$bonus.type_name}[{$bonus.bonus_money_formated}]</option>
                  <!-- {/foreach} -->
                </select>

                {$lang.input_bonus_no}
                <input name="bonus_sn" type="text" class="inputBg" size="15" />
                <input name="validate_bonus" type="button" class="bnt_blue_1" value="{$lang.validate_bonus}" onclick="validateBonus(document.forms['theForm'].elements['bonus_sn'].value)" style="vertical-align:middle;" />
              </td>
            </tr>
            <!-- {/if} 是否使用红包 -->
            <!-- {if $inv_content_list} 能否开发票 -->
            <tr>
              <td bgcolor="#ffffff"><strong>{$lang.invoice}:</strong>
                <input name="need_inv" type="checkbox"  class="input" id="ECS_NEEDINV" onclick="changeNeedInv()" value="1" {if $order.need_inv}checked="true"{/if} />
              </td>
              <td bgcolor="#ffffff">
                <!-- {if $inv_type_list} -->
                {$lang.invoice_type}
                <select name="inv_type" id="ECS_INVTYPE" {if $order.need_inv neq 1}disabled="true"{/if} onchange="changeNeedInv()" style="border:1px solid #ccc;">
                {html_options options=$inv_type_list selected=$order.inv_type}</select>
                <!-- {/if} -->
                {$lang.invoice_title}
                <input name="inv_payee" type="text"  class="input" id="ECS_INVPAYEE" size="20" {if !$order.need_inv}disabled="true"{/if} value="{$order.inv_payee}" onblur="changeNeedInv()" />
                {$lang.invoice_content}
              <select name="inv_content" id="ECS_INVCONTENT" {if $order.need_inv neq 1}disabled="true"{/if}  onchange="changeNeedInv()" style="border:1px solid #ccc;">

                {html_options values=$inv_content_list output=$inv_content_list selected=$order.inv_content}

                </select></td>
            </tr>
            <!-- {/if} -->
            <tr>
              <td valign="top" bgcolor="#ffffff"><strong>{$lang.order_postscript}:</strong></td>
              <td bgcolor="#ffffff"><textarea name="postscript" cols="80" rows="3" id="postscript" style="border:1px solid #ccc;">{$order.postscript|escape}</textarea></td>
            </tr>
            <!-- {if $how_oos_list} 是否使用缺货处理 -->
            <tr>
              <td bgcolor="#ffffff"><strong>{$lang.booking_process}:</strong></td>
              <td bgcolor="#ffffff"><!-- {foreach from=$how_oos_list key=how_oos_id item=how_oos_name} -->
                <label>
                <input name="how_oos" type="radio" value="{$how_oos_id}" {if $order.how_oos eq $how_oos_id}checked{/if} onclick="changeOOS(this)" />
                {$how_oos_name}</label>
                <!-- {/foreach} -->
              </td>
            </tr>
            <!-- {/if} 缺货处理结束 -->
          </table>
    </div>
    <div class="blank"></div>
    <div class="flowBox">
    <h6><span>{$lang.fee_total}</span></h6>
          <!-- #BeginLibraryItem "/Library/order_total.lbi" --><!-- #EndLibraryItem -->
           <div align="center" style="margin:8px auto;">
            <input type="image" src="images/bnt_subOrder.gif" />
            <input type="hidden" name="step" value="done" />
            </div>
    </div>
    </form>
        <!-- {/if} -->

        <!-- {if $step eq "done"} -->
        <!-- 订单提交成功 -->
        <div class="flowBox" style="margin:30px auto 70px auto;">
         <h6 style="text-align:center; height:30px; line-height:30px;">{$lang.remember_order_number}: <font style="color:red">{$order.order_sn}</font></h6>
          <table width="99%" align="center" border="0" cellpadding="15" cellspacing="0" bgcolor="#fff" style="border:1px solid #ddd; margin:20px auto;" >
            <tr>
              <td align="center" bgcolor="#FFFFFF">
              <!--{if $order.shipping_name}-->{$lang.select_shipping}: <strong>{$order.shipping_name}</strong>，<!--{/if}-->{$lang.select_payment}: <strong>{$order.pay_name}</strong>。{$lang.order_amount}: <strong>{$total.amount_formated}</strong>
              </td>
            </tr>
            <tr>
              <td align="center" bgcolor="#FFFFFF">{$order.pay_desc}</td>
            </tr>
            <!-- {if $pay_online} -->
            <!-- 如果是线上支付则显示支付按钮 -->
            <tr>
              <td align="center" bgcolor="#FFFFFF">{$pay_online}</td>
            </tr>
            <!-- {/if} -->
          </table>
          <!--{if $virtual_card}-->
          <div style="text-align:center;overflow:hidden;border:1px solid #E2C822;background:#FFF9D7;margin:10px;padding:10px 50px 30px;">
          <!--{foreach from=$virtual_card item=vgoods}-->
            <h3 style="color:#2359B1; font-size:12px;">{$vgoods.goods_name}</h3>
            <!--{foreach from=$vgoods.info item=card}-->
              <ul style="list-style:none;padding:0;margin:0;clear:both">
              <!--{if $card.card_sn}-->
              <li style="margin-right:50px;float:left;">
              <strong>{$lang.card_sn}:</strong><span style="color:red;">{$card.card_sn}</span>
              </li><!--{/if}-->
              <!--{if $card.card_password}-->
              <li style="margin-right:50px;float:left;">
              <strong>{$lang.card_password}:</strong><span style="color:red;">{$card.card_password}</span>
              </li><!--{/if}-->
              <!--{if $card.end_date}-->
              <li style="float:left;">
              <strong>{$lang.end_date}:</strong>{$card.end_date}
              </li><!--{/if}-->
              </ul>
            <!--{/foreach}-->
          <!--{/foreach}-->
          </div>
          <!--{/if}-->
          <p style="text-align:center; margin-bottom:20px;">{$order_submit_back}</p>
        </div>
        <!-- {/if} -->
        <!-- {if $step eq "login"} -->
        {insert_scripts files='utils.js,user.js'}
        <script type="text/javascript">
        {foreach from=$lang.flow_login_register item=item key=key}
          var {$key} = "{$item}";
        {/foreach}

        {literal}
        function checkLoginForm(frm) {
          if (Utils.isEmpty(frm.elements['username'].value)) {
            alert(username_not_null);
            return false;
          }

          if (Utils.isEmpty(frm.elements['password'].value)) {
            alert(password_not_null);
            return false;
          }

          return true;
        }

        function checkSignupForm(frm) {
          if (Utils.isEmpty(frm.elements['username'].value)) {
            alert(username_not_null);
            return false;
          }

          if (Utils.trim(frm.elements['username'].value).match(/^\s*$|^c:\\con\\con$|[%,\'\*\"\s\t\<\>\&\\]/))
          {
            alert(username_invalid);
            return false;
          }

          if (Utils.isEmpty(frm.elements['email'].value)) {
            alert(email_not_null);
            return false;
          }

          if (!Utils.isEmail(frm.elements['email'].value)) {
            alert(email_invalid);
            return false;
          }

          if (Utils.isEmpty(frm.elements['password'].value)) {
            alert(password_not_null);
            return false;
          }

          if (frm.elements['password'].value.length < 6) {
            alert(password_lt_six);
            return false;
          }

          if (frm.elements['password'].value != frm.elements['confirm_password'].value) {
            alert(password_not_same);
            return false;
          }
          return true;
        }
        {/literal}
        </script>
        <!-- 开始用户登录注册界面 -->
        <div class="flowBox">
        <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <td width="50%" valign="top" bgcolor="#ffffff">
            <h6><span>用户登录：</span></h6>
            <form action="flow.php?step=login" method="post" name="loginForm" id="loginForm" onsubmit="return checkLoginForm(this)">
                <table width="90%" border="0" cellpadding="8" cellspacing="1" bgcolor="#B0D8FF" class="table">
                  <tr>
                    <td bgcolor="#ffffff"><div align="right"><strong>{$lang.username}</strong></div></td>
                    <td bgcolor="#ffffff"><input name="username" type="text" class="inputBg" id="username" /></td>
                  </tr>
                  <tr>
                    <td bgcolor="#ffffff"><div align="right"><strong>{$lang.password}</strong></div></td>
                    <td bgcolor="#ffffff"><input name="password" class="inputBg" type="password" id="password" /></td>
                  </tr>
                  <!-- 判断是否启用验证码{if $enabled_login_captcha} -->
                  <tr>
                    <td bgcolor="#ffffff"><div align="right"><strong>{$lang.comment_captcha}:</strong></div></td>
                    <td bgcolor="#ffffff"><input type="text" size="8" name="captcha" class="inputBg" />
                    <img src="captcha.php?is_login=1&{$rand}" alt="captcha" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha.php?is_login=1&'+Math.random()" /> </td>
                  </tr>
                  <!--{/if}-->
                  <tr>
                    <td bgcolor="#ffffff" colspan="2" align="center"><a href="user.php?act=get_password" class="f6">{$lang.forgot_password}</a></td>
                  </tr>
                  <tr>
                    <td bgcolor="#ffffff" colspan="2"><div align="center">
                        <input type="submit" class="bnt_blue" name="login" value="{$lang.forthwith_login}" />
                        <!-- {if $anonymous_buy eq 1} 是否允许未登录用户购物 -->
                        <input type="button" class="bnt_blue_2" value="{$lang.direct_shopping}" onclick="location.href='flow.php?step=consignee&amp;direct_shopping=1'" />
                        <!-- {/if} -->
                        <input name="act" type="hidden" value="signin" />
                      </div></td>
                  </tr>
                </table>
              </form>

              </td>
            <td valign="top" bgcolor="#ffffff">
            <h6><span>用户注册：</span></h6>
            <form action="flow.php?step=login" method="post" name="formUser" id="registerForm" onsubmit="return checkSignupForm(this)">
               <table width="98%" border="0" cellpadding="8" cellspacing="1" bgcolor="#B0D8FF" class="table">
                  <tr>
                    <td bgcolor="#ffffff" align="right" width="25%"><strong>{$lang.username}</strong></td>
                    <td bgcolor="#ffffff"><input name="username" type="text" class="inputBg" id="username" onblur="is_registered(this.value);" /><br />
		    <span id="username_notice" style="color:#FF0000"></span></td>
                  </tr>
                  <tr>
                    <td bgcolor="#ffffff" align="right"><strong>{$lang.email_address}</strong></td>
                    <td bgcolor="#ffffff"><input name="email" type="text" class="inputBg" id="email" onblur="checkEmail(this.value);" /><br />
		    <span id="email_notice" style="color:#FF0000"></span></td>
                  </tr>
                  <tr>
                    <td bgcolor="#ffffff" align="right"><strong>{$lang.password}</strong></td>
                    <td bgcolor="#ffffff"><input name="password" class="inputBg" type="password" id="password" onblur="check_password(this.value);" onkeyup="checkIntensity(this.value)" /><br />
		    <span style="color:#FF0000" id="password_notice"></span></td>
                  </tr>
                  <tr>
                    <td bgcolor="#ffffff" align="right"><strong>{$lang.confirm_password}</strong></td>
                    <td bgcolor="#ffffff"><input name="confirm_password" class="inputBg" type="password" id="confirm_password" onblur="check_conform_password(this.value);" /><br />
		    <span style="color:#FF0000" id="conform_password_notice"></span></td>
                  </tr>
                  <!-- 判断是否启用验证码{if $enabled_register_captcha} -->
                  <tr>
                    <td bgcolor="#ffffff" align="right"><strong>{$lang.comment_captcha}:</strong></td>
                    <td bgcolor="#ffffff"><input type="text" size="8" name="captcha" class="inputBg" />
                    <img src="captcha.php?{$rand}" alt="captcha" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha.php?'+Math.random()" /> </td>
                  </tr>
                  <!--{/if}-->
                  <tr>
                    <td colspan="2" bgcolor="#ffffff" align="center">
                        <input type="submit" name="Submit" class="bnt_blue_1" value="{$lang.forthwith_register}" />
                        <input name="act" type="hidden" value="signup" />
                    </td>
                  </tr>
                </table>
              </form>
              </td>
          </tr>
          {if $need_rechoose_gift}
          <tr>
            <td colspan="2" align="center" style="border-top:1px #ccc solid; padding:5px; color:red;">{$lang.gift_remainder}</td>
          </tr>
          {/if}
        </table>
        </div>
        <!-- 结束用户登录注册界面 -->
        <!-- {/if} -->




</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}-->
<!--友情链接 end-->
<div class="blank"></div>
<!-- #BeginLibraryItem "/library/page_footer.lbi" --><!-- #EndLibraryItem -->
</body>
<script type="text/javascript">
var process_request = "{$lang.process_request}";
{foreach from=$lang.passport_js item=item key=key}
var {$key} = "{$item}";
{/foreach}
var username_exist = "{$lang.username_exist}";
var compare_no_goods = "{$lang.compare_no_goods}";
var btn_buy = "{$lang.btn_buy}";
var is_cancel = "{$lang.is_cancel}";
var select_spe = "{$lang.select_spe}";
</script>
</html>
