Server : Apache
System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64
User : www ( 1000)
PHP Version : 5.6.40
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Directory :  /www/wwwroot/saimikebio.com/themes/lingshi/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : /www/wwwroot/saimikebio.com/themes/lingshi/flow.dwt
<!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=utf-8" />
<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" />
<link href="cart.css" rel="stylesheet" type="text/css" />
{* 包含脚本文件 *}
{insert_scripts files='common.js,shopping_flow.js'}
</head>
<body>
<!-- #BeginLibraryItem "/library/page_header_flow.lbi" --><!-- #EndLibraryItem --> {insert_scripts files=lizi_flow.js'} 
<!-- {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 id="main">
  <div class="top-next cle">
    <div class="fl"> <h6>购物车</h6> </div>
  </div>
  <div class="cart-box" id="cart-box">
    <div class="hd"> <span class="selcartgoods no2" id="itemsnum-top"><input type="checkbox" autocomplete="off" id="chkAll" name="chkAll" checked=true  onclick="return chkAll_onclick()"><label for="chkAll">全选</label></span> <span class="no4">单价</span> <span>数量</span> <span>小计</span> </div>
    <div class="goods-list">
      <ul>
      <form id="formCart1" name="formCart" method="post" action="flow.php">
        <!-- {foreach from=$goods_list item=goods} -->
        <li class="cle hover" style="border-bottom-style: none;"> 
          
          <!-- {if $goods.goods_id gt 0 && $goods.extension_code neq 'package_buy'} 商品 -->
          
          <div class="selcartgoods"> <input type="checkbox" {if !$goods.is_cansel} disabled {else} checked=checked {/if} autocomplete="off" name="sel_cartgoods[]" value="{$goods.rec_id}" id="sel_cartgoods_{$goods.rec_id}" onclick="select_cart_goods();"><label for="sel_cartgoods_{$goods.rec_id}"></label> </div>
          <div class="pic"> <a href="goods.php?id={$goods.goods_id}" target="_blank"> <img alt="{$goods.goods_name|escape:html}" data-original="{$goods.goods_thumb}" src="images/spacer.gif" class="loading"></a> </div>
          <div class="name"> <a href="goods.php?id={$goods.goods_id}" target="_blank">{$goods.goods_name} 
            <!-- {if $show_goods_attribute eq 1} 显示商品属性 --> 
            <br><span style="color:#FA5437">{$goods.goods_attr|nl2br}</span> 
            <!-- {/if} --> 
            <!-- {if $goods.parent_id gt 0} 配件 --> 
            <span style="color:#FA5437">({$lang.accessories})</span> 
            <!-- {/if} --> 
            <!-- {if $goods.is_gift gt 0} 赠品 --> 
            <span style="color:#FA5437">({$lang.largess})</span> 
            <!-- {/if} --></a>
            <p> </p>
          </div>
          
          <!-- {elseif $goods.goods_id gt 0 && $goods.extension_code eq 'package_buy'} -->
          <div class="selcartgoods"> <input type="checkbox" {if !$goods.is_cansel} disabled {else} checked=checked {/if} autocomplete="off" name="sel_cartgoods[]" value="{$goods.rec_id}" id="sel_cartgoods_{$goods.rec_id}" onclick="select_cart_goods();"><label for="sel_cartgoods_{$goods.rec_id}"></label> </div>
          <div class="pic"> <img src="images/czlb.png"></div>
          <div class="name"> <a href="javascript:void(0)" onclick="setSuitShow({$goods.goods_id})">{$goods.goods_name}<span style="color:#FA5437;">({$lang.remark_package})</span></a>
            <p>
            
            <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>
            </p>
          </div>
          <!-- {else} 优惠活动 -->
          <div class="selcartgoods"> <input type="checkbox" {if !$goods.is_cansel} disabled {else} checked=checked {/if} autocomplete="off" name="sel_cartgoods[]" value="{$goods.rec_id}" id="sel_cartgoods_{$goods.rec_id}" onclick="select_cart_goods();"><label for="sel_cartgoods_{$goods.rec_id}"></label> </div>
          <div class="pic"> <img src="images/yhcx.png"></div>
          <div class="name">{$goods.goods_name}
            <p></p>
          </div>
          <!-- {/if} -->
          <div class="price-xj">
            <p><em>{$goods.goods_price}</em></p>
          </div>
          <!-- {if $goods.goods_id gt 0 && $goods.is_gift eq 0 && $goods.parent_id eq 0} 普通商品可修改数量 -->
          <div class="nums"> <span class="minus" title="减少1个数量" onclick="flowClickCartNum({$goods.rec_id},-1);" >-</span>
            <input type="text" id="goods_number_{$goods.rec_id}" value="{$goods.goods_number}"  onchange="flowClickCartNum({$goods.rec_id},0)">
            <span class="add" title="增加1个数量" onclick="flowClickCartNum({$goods.rec_id},+1);">+</span> </div>
          <!-- {else} --> 
         <div class="nums" style="text-indent:35px; font-size:14px;"> {$goods.goods_number} </div>
          <!-- {/if} -->
          <div class="price-xj"><span></span> <em id="total_items_{$goods.rec_id}">{$goods.subtotal}</em> </div>
          <div class="del"> <a class="btn-del" href="javascript:if (confirm('{$lang.drop_goods_confirm}')) location.href='flow.php?step=drop_goods&amp;id={$goods.rec_id}';">删除</a> </div>
        </li>
        <!-- {/foreach} -->
	<input type="hidden" name="step" id="actname" value="update_cart" />
      </form>
      </ul>
    </div>
    <script type="text/javascript" charset="utf-8">
	function chkAll_onclick(){
		var obj = document.getElementById('chkAll');
		var obj_cartgoods = document.getElementsByName("sel_cartgoods[]");
		for (var i=0;i<obj_cartgoods.length;i++){
            if(!obj_cartgoods[i].disabled){
                var e = obj_cartgoods[i];

                if (e.name != 'chkAll'){
                    e.checked = obj.checked;
                }
            }
		}
		select_cart_goods();
	}
	function select_cart_goods(){
	      var sel_goods = new Array();
	      var obj_cartgoods = document.getElementsByName("sel_cartgoods[]");
	      var j=0;
	      var c = true;
	      for (i=0;i<obj_cartgoods.length;i++){
			if(obj_cartgoods[i].checked == true){	
				sel_goods[j] = obj_cartgoods[i].value;
				j++;
			}else{
				c = false;
			}
	      }
	      document.getElementById('chkAll').checked = c;
	      Ajax.call('flow.php', 'act=selcart&sel_goods=' + sel_goods, selcartResponse, 'GET', 'JSON');
	}
	function selcartResponse(res){
	  if (res.err_msg.length > 0){
            alert(res.err_msg);
	  }else{
	     document.getElementById('selectedCount').innerHTML = res.total_number;
	     document.getElementById('totalSkuPrice').innerHTML = res.result;
	  }
	}
	function selcart_submit(){
	      var obj_cartgoods = document.getElementsByName("sel_cartgoods[]");
	      var formobj = document.getElementById('formCart1');
	      var j=0;
	      for (i=0;i<obj_cartgoods.length;i++){
			if(obj_cartgoods[i].checked == true){	
				j++;
			}
	      }
	      if (j>0){
		
			formobj.action='flow.php?step=checkout';
			document.getElementById('actname').value='checkout';
			formobj.submit();
			return true;
	      }else{	
			alert('您还没有选择商品哦!');	
			return false;
	     }
	}
    </script> 
    <div class="fd cle">
      <div class="fl">
        <p class="no1"> <a id="del-all" href="flow.php?step=clear">清空购物车</a> </p>
        <p><a class="graybtn" href="./">继续购物</a></p>
      </div>
      <div class="fr" id="price-total">
        <p><span id="selectedCount">{$total.total_number}</span>件商品,总价:<span class="red"><strong id="totalSkuPrice">{$total.goods_price}</strong></span></p>
        <p><a href="javascript:void(0);" onclick="return selcart_submit();" class="btn">去结算</a></p>
      </div>
    </div>
  </div>
</div>

<!-- {if $smarty.session.user_id gt 0} --> 
{insert_scripts files='transport_jquery.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)
            {
              openSpeDiv(result.message, result.goods_id);
            }
            else
            {
              alert(result.message);
            }
          }
          else
          {
            location.href = 'flow.php';
          }
        }
      </script>
</div>
<div class="blank"></div>
<!-- {/if} --> 

<!-- {if $fittings_list} 商品配件 --> 
{insert_scripts files='transport_jquery.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=' + $.toJSON(goods), 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)
      {
        openSpeDiv(result.message, result.goods_id, result.parent);
      }
      else
      {
        alert(result.message);
      }
    }
    else
    {
      location.href = 'flow.php';
    }
  }
  </script>
  <div class="page-btm" id="page-btm">

    


    

    

</div>

<!-- {/if} --> 

<!-- {/if} --> 

<!-- {if $step eq "consignee"} -->
<div class="cle cart_main"> 
  <!-- 开始收货人信息填写界面 --> 
  {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>
  <div class="aui_outer"> 
    <!-- 如果有收货地址,循环显示用户的收获地址 --> 
    <!-- {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} --> 
    
  </div>
</div>
<!-- {/if} --> 

<!-- {if $step eq "checkout"} 开始订单确认界面 -->
<div id="opendivbg" class="opendivbg" style="display:none;"></div>
<div class="cle cart_main">
  <div class="flowBox_cart">
    <div class="flowBox_in">
      <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="checkBox_jm clearfix" >
    {insert_scripts files='region.js,utils.js'}
      <h6><span>{$lang.consignee_info}</span><div style="clear:both"></div></h6>
      <div class="address_jm" id="AddressList" > <!-- #BeginLibraryItem "/library/address_list.lbi" --><!-- #EndLibraryItem --> </div>
      <div id="popDiv" class="mydiv" style="display:none;">
        <div class="mydiv-r" onclick="javascript:closePopDiv()" ></div>
        <div id="PopAddressCon"></div>
      </div>
    </div>
        <div class="blank"></div>
        <div class="cartlist">
          <h6><span>{$lang.goods_list}</span><!--{if $allow_edit_cart} --><a href="flow.php" class="f16">返回修改购物车</a><!--{/if} --></h6>
          <table class="table" cellspacing="0" cellpadding="0">
	   <tr>
	    <th class="title first">{$lang.goods_name}</th>
	    <th width="150">{$lang.goods_attr}</th>
	    <th width="150">{if $gb_deposit}{$lang.deposit}{else}{$lang.shop_prices}{/if}</th>
	    <th width="150">{$lang.number}</th>
	    <th class="last" width="150">{$lang.subtotal}</th>
	    </tr>
            <!-- {foreach from=$goods_list item=goods} -->
	    <tr>
		<td class="title first" style="text-align: left;"><div class="pro"> 
		    <!-- {if $goods.goods_id gt 0 && $goods.extension_code eq 'package_buy'} -->
		    <div class="img fl" >
		    <a href="javascript:void(0)" onclick="setSuitShow({$goods.goods_id})" class="f6"><img src="images/czlb.png" width="70" height="70" border=0 ></a> 
		    </div>
		    <p class="tit"> <a href="javascript:void(0)" onclick="setSuitShow({$goods.goods_id})">{$goods.goods_name}<span style="color:#FA5437;">({$lang.remark_package})</span></a>
		    
		    <div id="suit_{$goods.goods_id}" style="display:none;float:left;margin-top:10px;"> 
		      <!-- {foreach from=$goods.package_goods_list item=package_goods_list} --> 
		      <a href="goods.php?id={$package_goods_list.goods_id}" target="_blank">{$package_goods_list.goods_name}</a><br />
		      <!-- {/foreach} --> 
		    </div>
		    </p>
		    <!-- { else } --> 
		    <div class="img fl" >
		    <a href="goods.php?id={$goods.goods_id}" target="_blank" class="f6" title="{$goods.goods_name}"><img data-original="{$goods.goods_thumb}" src="images/spacer.gif" class="loading" width="70" height="70" border=0 ></a> 
		    </div>
		    <p class="tit"><a href="goods.php?id={$goods.goods_id}" target="_blank" title="{$goods.goods_name}">{$goods.goods_name}</a></p>
		    <!-- {if $goods.parent_id > 0} --> 
		    <span style="color:#FA5437">({$lang.accessories})</span> 
		    <!-- {elseif $goods.is_gift} --> 
		    <span style="color:#FA5437">({$lang.largess})</span> 
		    <!-- {/if} --> 
		    <!-- {/if} --> 
		    <!-- {if $goods.is_shipping} -->(<span style="color:#FA5437">{$lang.free_goods}</span>)<!-- {/if} --> 
		  </div></td>
	       <td><span class="price priceA_gray">{$goods.goods_attr|nl2br}</span></td>
		<td><span class="price priceA_gray">{$goods.formated_goods_price}</span></td>
		<td width="100"><span class="oprate"> 
		  {$goods.goods_number} 
		  </span></td>
		<td><span class="price priceA_gray" id="total_items_{$goods.rec_id}">{$goods.formated_subtotal}</span></td>
	    </tr>
            <!-- {/foreach} --> 
            <!-- {if !$gb_deposit} 团购且有保证金时不显示 -->
            <tr>
              <th colspan="10"><div class="sliceOrder tl"><!-- {if $discount gt 0} -->{$your_discount}<br />
                
                <!-- {/if} --> 
                {$shopping_money}<!-- {if $show_marketprice} -->,{$market_price_desc}<!--{/if}--></div></th>
            </tr>
            <!-- {/if} -->
          </table>
        </div>
        <div class="blank"></div>
        <!--{if $total.real_goods_count neq 0 && $shipping_list}-->
        <div class="flowBox">
          <h6><span>{$lang.shipping_method}</span><div style="clear:both"></div></h6>
            <div class="section-body " style="background:#FFF;">
            	<ul class="item-list clearfix payment-list" id="shipping-list">
			<!-- {foreach from=$shipping_list item=shipping name=foo} 循环配送方式 -->
                	<li>
                    	<label class="checkout-item" for="shipping_{$smarty.foreach.foo.iteration}">{$shipping.shipping_name}</label>
                    	<input type="radio" name="shipping" class="hide" id="shipping_{$smarty.foreach.foo.iteration}" 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)" {if $cod_disabled and $payment.is_cod eq "1"}disabled="true"{/if}/>
                        <div class="text">
                        	配送{$lang.fee}:{$shipping.format_shipping_fee}<br>
                        	{$lang.free_money}:{$shipping.free_money}<br>
                        	{$lang.insure_fee}:{if $shipping.insure neq 0}{$shipping.insure_formated}{else}{$lang.not_support_insure}{/if}
                        </div>
                    </li>
                    <!-- {/foreach} 循环支付方式 -->
		    <li class="need_insure"><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></li>
                </ul>
            </div>
        </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><div style="clear:both"></div></h6>
            <div class="section-body " style="background:#FFF;">
            	<ul class="item-list clearfix payment-list" id="payment-list">
                	<!-- {foreach from=$payment_list item=payment name=foo} 循环支付方式 --> 
                	<li id="act_{$smarty.foreach.foo.iteration}">
                    	<label class="checkout-item" for="payment_{$smarty.foreach.foo.iteration}">{$payment.pay_name}</label>
                    	<input type="radio" name="payment" class="hide" id="payment_{$smarty.foreach.foo.iteration}" 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}/>
                        <div class="text">
                        	{$lang.pay_fee}:{$payment.format_pay_fee}
                        </div>
                    </li>
                    <!-- {/foreach} 循环支付方式 -->
                </ul>
            </div>
        </div>
        <!--{else}-->
        <input name = "payment" type="radio" value = "-1" checked="checked"  style="display:none"/>
        <!--{/if}-->
        <div class="blank"></div>
        <!-- {if $pack_list} 是否有包装 -->
  <div class="cartlist cartlist_cpt">
          <h6><span>{$lang.goods_package}</span><div style="clear:both"></div></h6>
    <table class="table table_r_b" cellspacing="0" cellpadding="0" id="packTable">
      <tr>
        <th width="5%" scope="col">&nbsp;</th>
        <th width="35%" scope="col">{$lang.name}</th>
        <th width="22%" scope="col">{$lang.price}</th>
        <th width="22%" scope="col">{$lang.free_money}</th>
        <th scope="col">{$lang.img}</th>
      </tr>
      <tr>
        <td><input type="radio" name="pack" value="0" {if $order.pack_id eq 0}checked="true"{/if} onclick="selectPack(this)" /></td>
        <td style="text-align: left;"><strong>{$lang.no_pack}</strong></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <!-- {foreach from=$pack_list item=pack} 循环包装 -->
      <tr>
        <td><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 style="text-align: left;"><strong>{$pack.pack_name}</strong></td>
        <td>{$pack.format_pack_fee}</td>
        <td>{$pack.format_free_money}</td>
        <td><!-- {if $pack.pack_img} 是否有图片 --> 
          <a href="data/packimg/{$pack.pack_img}" target="_blank">{$lang.view}</a> 
          <!-- {else} --> 
          {$lang.no} 
          <!-- {/if} --></td>
      </tr>
      <!-- {/foreach} 循环包装 -->
    </table>
  </div>
        <div class="blank"></div>
        <!-- {/if} 是否使用包装 --> 
        
        <!-- {if $card_list} 是否有贺卡 -->
  <div class="cartlist cartlist_cpt">
          <h6><span>{$lang.goods_card}</span><div style="clear:both"></div></h6>
    <table class="table table_r_b" cellspacing="0" cellpadding="0" id="cardTable">
      <tr>
        <th width="5%" scope="col">&nbsp;</th>
        <th width="35%" scope="col">{$lang.name}</th>
        <th width="22%" scope="col">{$lang.price}</th>
        <th width="22%" scope="col">{$lang.free_money}</th>
        <th scope="col">{$lang.img}</th>
      </tr>
      <tr>
        <td><input type="radio" name="card" value="0" {if $order.card_id eq 0}checked="true"{/if} onclick="selectCard(this)" /></td>
        <td style="text-align: left;"><strong>{$lang.no_card}</strong></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <!-- {foreach from=$card_list item=card} 循环贺卡 -->
      <tr>
        <td><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 style="text-align: left;"><strong>{$card.card_name}</strong></td>
        <td>{$card.format_card_fee}</td>
        <td>{$card.format_free_money}</td>
        <td><!-- {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></td>
        <td><strong>{$lang.bless_note}:</strong></td>
        <td 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="cartlist cartlist_cpt">
    <h6><span>{$lang.other_info}</span><div style="clear:both"></div></h6>
    <table class="table table_r_b" cellspacing="0" cellpadding="0">
      <!-- {if $allow_use_surplus} 是否使用余额 -->
      <tr>
        <td><strong>{$lang.use_surplus}: </strong></td>
        <td style="text-align: left;"><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><strong>{$lang.use_integral}</strong></td>
        <td style="text-align: left;"><input name="integral" type="text" class="inputBg" 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><strong>{$lang.use_bonus}:</strong></td>
        <td style="text-align: left;"> {$lang.select_bonus}
          <select name="bonus" onchange="changeBonus(this.value)" id="ECS_BONUS" class="inputBg">
            <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" value="{$order.bonus_sn}" />
          <input name="validate_bonus" type="button" class="BonusButton" value="{$lang.validate_bonus}" onclick="validateBonus(document.forms['theForm'].elements['bonus_sn'].value)" /></td>
      </tr>
      <!-- {/if} 是否使用红包 --> 
      <!-- {if $inv_content_list} 能否开发票 -->
      <tr>
        <td><strong>{$lang.invoice}:</strong>
          <input name="need_inv" type="checkbox"  class="inputBg" id="ECS_NEEDINV" onclick="changeNeedInv()" value="1" {if $order.need_inv}checked="true"{/if} /></td>
        <td style="text-align: left;"><!-- {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()" class="inputBg">
            
								{html_options options=$inv_type_list selected=$order.inv_type}
							
          </select>
          
          <!-- {/if} --> 
          {$lang.invoice_title}
          <input name="inv_payee" type="text"  class="inputBg" 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()" class="inputBg">
            
								{html_options values=$inv_content_list output=$inv_content_list selected=$order.inv_content}
							
          </select></td>
      </tr>
      <!-- {/if} -->
      <tr>
        <td><strong>{$lang.order_postscript}:</strong></td>
        <td style="text-align: left;"><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><strong>{$lang.booking_process}:</strong></td>
        <td style="text-align: left;"><!-- {foreach from=$how_oos_list key=how_oos_id item=how_oos_name} -->
          
          <label style="padding-right:20px;">
            <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="cartlist cartlist_cpt">
          <h6><span>{$lang.fee_total}</span><div style="clear:both"></div></h6>
    <div class="booklist_sub mb40"> <!-- #BeginLibraryItem "/Library/order_total.lbi" --><!-- #EndLibraryItem -->
      <div style="margin:20px auto; text-align:center">
        <input type="submit" class="btn_booklist_sub" value="提交订单" />
        <input type="hidden" name="step" value="done" />
      </div>
    </div>
  </div>
      </form>
    </div>
  </div>
</div>
{if !$consignee_list}
<script>alert("请先设置收货地址!");</script>
{/if}
<!-- {/if} --> 

<!-- 订单提交成功,转向付款页面 -->
<!-- {if $step eq 'payinfo'} -->
<div class="cart_main">
    <div class="sub_main">
        <div class="top_intro">
            <div class="txt">
            	<h4><span class="green">{$lang.remember_order_number}:{$order.order_sn}</span></h4>
                <h5><!--{if $order.shipping_name}-->{$lang.select_shipping}:<font class="cc0001">{$order.shipping_name}</font><!--{/if}-->&nbsp;&nbsp;&nbsp;&nbsp;{$lang.select_payment}:<font class="cc0001">{$order.pay_name}</font></h5>
                <!--{if $order.order_amount gt 0}-->
                   <div class="price">应付总额:<i></i><span>{$total.amount_formated}</span></div>
                 <!--{else}-->
                   <div class="price">成功支付:<i></i><span>{$total.money_paid_formated}</span></div>
                <!--{/if}-->
		{if $pay_online}<div style="padding-left:60px; margin-top:20px;width:262px;">{$pay_online}</div>{/if}
            </div>
        </div>
        
        <div class="payment">
        <!-- {if $pay_online} -->
        	<div class="payment_tit">其他支付方式</div>
            <div class="payment_con">
                <div class="bd">
                	<div class="bd_box">
                        <div class="pay_c">
                        	<ul>
                            	<!-- {foreach from=$payment_list item=payment name=foo} 循环支付方式 -->
								<li{if $order.pay_id eq $payment.pay_id} class="current"{/if}><a href="flow.php?step=change_payment&pay_id={$payment.pay_id}&ext_paycode=&order_id={$order.order_id}"><img width="120" height="50" alt="" src="{$payment.pay_logo}"><i class="gou"></i>{$payment.pay_name}</a></li>
                                <!-- {/foreach} 循环支付方式 -->
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        <!--{else if}-->
            <div class="ordersucces">感谢您在本店购物!我们将尽快为您发货,请保持电话畅通,方便配送人员与您联系。</div>
        <!--{/if}-->
        </div>
	<div class="wcwxts">
		<p class="wxts1">温馨提示</p>
		<div class="wxtsny">
			<p><b style="color:#cc0001">如果遇到问题?</b>请拨打:{$service_phone},由客服协助您完成订单。</p>
		</div>
	</div>

    </div>
</div>
<!-- {/if} -->
<!-- 结束付款页面 -->				

<!-- {if $step eq "done"} --> 
<!-- 订单提交成功 -->
<div class="cle cart_main">
  <div class="flowBox" style="margin:30px auto 30px auto; border:none;">
   	<div class="flow_fastcg">
		<div class="xian">
			<p class="xian1"><span>{$lang.remember_order_number}: {$order.order_sn}</span></p>
			<p class="xian2">{$lang.select_shipping}: <font style="padding-right:30px;">{$order.shipping_name}</font>{$lang.select_payment}: <font  style="padding-right:30px;">{$order.pay_name}</font>{$lang.order_amount}: <font><b>{$total.amount_formated}</b></font></p>
			<!-- {if $pay_online} --> 
      		<!-- 判断是否是在线支付 -->
			<div class="online1">
				<b>还差一步,请立即支付,(支付成功后,我们将在<span style="color:#cc0001;padding:0px 5px; font-size:16px;">24小时</span>内为您发货)</b>
				<br><br>
				{$pay_online}
				<br><br>
			</div>
			<div class="wcwxts">
				<p class="wxts1">温馨提示</p>
				<div class="wxtsny">
					<p><b style="color:#cc0001">如果支付遇到问题?</b>请拨打:{$service_phone},由客服协助您完成支付。</p>
				</div>
			</div>
			<!-- {else} --> 
			<div class="online1">
				<b>请保持电话畅通,方便快递公司与您联系,我们将在<span style="color:#cc0001;padding:0px 5px; font-size:16px;">24小时</span>内为您发货。</b>
				<br><br>
			</div>
			<div class="wcwxts">
				<p class="wxts1">温馨提示</p>
				<div class="wxtsny">
					<p><b style="color:#cc0001">如果遇到问题?</b>请拨打:{$service_phone},由客服协助您完成订单。</p>
				</div>
			</div>
			<!-- {/if} -->
		</div>
	</div>
    <!--{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;">您可以 <a href="index.html">返回首页</a> 或去 <a href="user.php">用户中心</a></p>
  </div>
</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}
		$(function(){
			$(".input_box").click(function(){
				$(this).find(".t_text").hide();	
				$(this).find("input").focus();
			})
			
			$(".input_box").focusin(function(){
				$(this).find(".t_text").hide();
			})
		
			$(".input_box").focusout(function(){
				if($(this).find("input").val() == "")
				{
					$(this).find(".t_text").show();
				}
			})	
		})

        {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="cle cart_main">
  <table border=0 width=400 align=center>
  <tr><td align="center" valign="bottom" height=300>
  <input type="button" onclick="location.href='user.php?act=login'" value="登录会员中心" class="flow_btn">
  <input type="button" onclick="location.href='user.php?act=register'" value="还没有会员?立即注册" class="flow_btn">
  <!-- {if $anonymous_buy eq 1} 是否允许未登录用户购物 -->
  <input type="button" onclick="location.href='flow.php?step=checkout&direct_shopping=1'" value="{$lang.direct_shopping}" class="flow_btn">
  <!-- {/if} -->
  </td></tr>
  <tr><td height=10 ></td></tr>
  <tr><td align="left" valign="top" height=150 >
	  {if $qq_login || $weibo_login || $alipay_login || $weixin_login}
	  <div class="other-form">
	    <div class="other-login-tit">使用第三方帐号登录</div>
	    <div class="other-login">
	      {if $qq_login}<a class="qq" href="user.php?act=oath&type=qq"></a>{/if}
	      {if $weibo_login}<a class="sina" href="user.php?act=oath&type=weibo"></a>{/if}
	      {if $alipay_login}<a class="alipay" href="user.php?act=oath&type=alipay"></a>{/if}
	      {if $weixin_login}<a class="weixin" href="user.php?act=oath&type=weixin"></a>{/if}
	    </div>
	  </div>
	  {/if}
  </td></tr>
  </table>
</div>

<!-- 结束用户登录注册界面 --> 
<!-- {/if} --> 
<div class="add_ok" id="cart_show">
    <div class="tip">
        商品已成功加入购物车
    </div>
    <div class="go">
        <a href="javascript:easyDialog.close();" class="back">&lt;&lt;继续购物</a>
        <a href="flow.php" class="btn">去结算</a>
    </div>
</div>
<script>
function addToCartResponse(result)
{
  if (result.error > 0)
  {
    // 如果需要缺货登记,跳转
    if (result.error == 2)
    {
      if (confirm(result.message))
      {
        location.href = 'user.php?act=add_booking&id=' + result.goods_id + '&spec=' + result.product_spec;
      }
    }
    // 没选规格,弹出属性选择框
    else if (result.error == 6)
    {
      openSpeDiv(result.message, result.goods_id, result.parent ,result.number);
    }
    else
    {
      alert(result.message);
    }
  }
  else
  {
    var cartInfo = document.getElementById('ECS_CARTINFO');
    var ECS_CARTINFO_TOP = document.getElementById('ECS_CARTINFO_TOP');
    var cart_url = 'flow.php?step=cart';
    if (cartInfo)
    {
      cartInfo.innerHTML = result.content;
    }
    if (ECS_CARTINFO_TOP)
    {
      ECS_CARTINFO_TOP.innerHTML = result.content_top;
	  $('.cart-panel-content').height($(window).height()-90);
    }

    location.href = cart_url;
  }
}
</script>

<!-- #BeginLibraryItem "/library/page_footer.lbi" --> <!-- #EndLibraryItem --> 
<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>
</body>
</html>