<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//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 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="{$ecs_css_path}" rel="stylesheet" type="text/css" />
{* 包含脚本文件 *}
{insert_scripts files='common.js,shopping_flow.js'}
<script type="text/javascript" src="js/action.js"></script>
</head>
<body>
<!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->
<!-- #BeginLibraryItem "/library/ur_here.lbi" --><!-- #EndLibraryItem -->
<!--主体内容 start-->
<div class="block">
<!-- {if $step eq "cart"} -->

<div class="blank"></div>
{* 包含脚本文件 *}
  {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="goodsTitle" style="background:#f6f6f6; border:#E3E3E3 solid 1px; border-bottom:none; padding-left: 5px;">{$lang.goods_list}</div>
	<form id="formCart" name="formCart" method="post" action="flow.php">
		 <table width="100%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#e3e3e3">
			<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}" height="50" width="50" style=" padding:3px;"/></a><br />
						<a href="goods.php?id={$goods.goods_id}" target="_blank">{$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> <img src="images/package.gif" />
					<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" class="price">{$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="InputBorder"  onkeydown="showdiv(this)"/>
					<!-- {else} -->
					{$goods.goods_number}
					<!-- {/if} -->
				</td>
				<td align="right" bgcolor="#ffffff" class="price">{$goods.subtotal}</td>
				<td align="center" bgcolor="#ffffff">
					<acronym class="delete"></acronym><a href="javascript:if (confirm('{$lang.drop_goods_confirm}')) location.href='flow.php?step=drop_goods&amp;id={$goods.rec_id}'; " ><u class="b">{$lang.drop}</u></a>&nbsp;&nbsp;
					<!-- {if $smarty.session.user_id gt 0} 如果登录了，可以加入收藏 -->
					<acronym class="start"></acronym><a href="javascript:if (confirm('{$lang.drop_goods_confirm}')) location.href='flow.php?step=drop_to_collect&amp;id={$goods.rec_id}'; " ><u class="b">{$lang.drop_to_collect}</u></a>
					<!-- {/if} -->
					</td>
			</tr>
			<!-- {/foreach} -->
			<tr>
		</table>
		<table width="100%" align="center" border="0" cellpadding="5" cellspacing="0" bgcolor="#f9f9f9">
			<tr>
				<td class="f1 f14b">
				<!-- {if $discount gt 0} -->{$your_discount}<br /><!-- {/if} -->
				{$shopping_money}<!-- {if $show_marketprice} -->，{$market_price_desc}<!-- {/if} -->
				</td>
				<td align="right">
					<input type="button" value="{$lang.clear_cart}" class="bnt_number6" onclick="location.href='flow.php?step=clear'" />
					<input name="submit" type="submit" class="bnt_number6" 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" class="floatTable">
		<tr>
			<td><a href="./"><img src="images/continue.gif" /></a></td>
			<td align="right"><a href="flow.php?step=checkout"><img src="images/checkout.gif" /></a></td>
		</tr>
	</table>
 <!-- {if $smarty.session.user_id gt 0} -->
 {insert_scripts files='transport.js'}
 <script type="text/javascript" charset=gbk>
	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>

<!-- {/if} -->
<!-- {/if} -->

<!-- {if $collection_goods} -->
<div class="goodsTitle">{$lang.label_collection}</div>
 <table width="100%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#e3e3e3" class="floatTable">
	<!-- {foreach from=$collection_goods item=goods} -->
			<tr>
				<td bgcolor="#ffffff"><a href="goods.php?id={$goods.goods_id}">{$goods.goods_name}</a></td>
				<td bgcolor="#ffffff" align="center" width="100"><a href="javascript:addToCart({$goods.goods_id})">加入购物车</a></td>
			</tr>
	<!-- {/foreach} -->
		</table>
<!-- {/if} -->


<!-- {if $fittings_list} 商品配件 -->
{insert_scripts files='transport.js'}
  <script type="text/javascript" charset=gbk>
  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)
      {
        openSpeDiv(result.message, result.goods_id, result.parent);
      }
      else
      {
        alert(result.message);
      }
    }
    else
    {
      location.href = 'flow.php';
    }
  }
  </script>
<div class="goodsTitle">{$lang.goods_fittings}</div>
 <form action="flow.php" method="post">
		<div class="clearfix floatTable" style="padding-top:10px;">
			<!-- {foreach from=$fittings_list item=fittings} -->
			 <div class="goodsbox">
				<div class="imgbox"><a href="{$fittings.url}" target="_blank"><img src="{$fittings.goods_thumb}" alt="{$fittings.name|escape:html}" class="B_blue" /></a></div>
				<a href="{$fittings.url}" target="_blank" title="{$fittings.goods_name|escape:html}">{$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})"><acronym class="addToCart">加入购物车</acronym></a>
			</div>
		 <!-- {/foreach} 循环商品配件结束 -->
		</div>
 </form>
<!-- {/if} -->


<!-- {if $favourable_list} 优惠活动 -->
<div class="goodsTitle">{$lang.label_favourable}</div>
	<!-- {foreach from=$favourable_list item=favourable} -->
	<form action="flow.php" method="post" class="floatTable clearfix">
		<table width="100%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#e3e3e3">
			<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" class="f1">{$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" class="f1">{$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">{$gift.name}</a> <font class="f1">[{$gift.formated_price}]</font>
					<!-- {/foreach} -->
				<!-- {/if} -->
				</td>
			</tr>
			<!-- {if $favourable.available} -->
			<tr>
				<td align="right" bgcolor="#ffffff">&nbsp;</td>
				<td align="center" bgcolor="#ffffff">
				<input type="submit" class="bnt_number4" value="立即购买" /></td>
			</tr>
			<!-- {/if} -->
		</table>
		<input type="hidden" name="act_id" value="{$favourable.act_id}" />
		<input type="hidden" name="step" value="add_favourable" />
	</form>
	<!-- {/foreach} 循环赠品活动结束 -->
<!-- {/if} -->


<!-- {if $step eq "consignee"} -->
<!-- 开始收货人信息填写界面 -->
<div class="blank"></div>
{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"} 开始订单确认界面 -->
<div class="blank"></div>
<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="goodsTitle clearfix" style="background:#f6f6f6; border:#E3E3E3 solid 1px; border-bottom:none;">
<span class="fl">{$lang.goods_list}</span><!--{if $allow_edit_cart} --><a href="flow.php" class="fr">{$lang.modify}</a><!--{/if} -->
</div>
<table width="100%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#e3e3e3" class="floatTable">
		<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})">{$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">{$package_goods_list.goods_name}</a><br />
						<!-- {/foreach} -->
				</div>
			<!-- { else } -->
				<a href="goods.php?id={$goods.goods_id}" target="_blank">{$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} -->
			<!-- {if $goods.is_shipping} -->(<span style="color:#FF0000">{$lang.free_goods}</span>)<!-- {/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"  class="price">{$goods.formated_goods_price}</td>
			<td bgcolor="#ffffff" align="right">{$goods.goods_number}</td>
			<td bgcolor="#ffffff" align="right"  class="price">{$goods.formated_subtotal}</td>
		</tr>
		<!-- {/foreach} -->
		<!-- {if !$gb_deposit} 团购且有保证金时不显示 -->
		<tr>
			<td bgcolor="#ffffff" colspan="7" class="f1 f14b" style="text-align:right;">
			<!-- {if $discount gt 0} -->{$your_discount}<br /><!-- {/if} -->
			{$shopping_money}<!-- {if $show_marketprice} -->，{$market_price_desc}<!--{/if}-->
			</td>
		</tr>
		<!-- {/if} -->
	</table>


<div class="goodsTitle clearfix" style="background:#f6f6f6; border:#E3E3E3 solid 1px; border-bottom:none;">
<span class="fl" >{$lang.consignee_info}</span><a href="flow.php?step=consignee" class="fr f1">{$lang.modify}</a>
</div>
<table width="100%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#e3e3e3" class="floatTable">
		<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>


<!--{if $total.real_goods_count neq 0}-->
<div class="goodsTitle" style="background:#f6f6f6; border:#E3E3E3 solid 1px; border-bottom:none;">{$lang.shipping_method}</div>
<table width="100%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#e3e3e3" class="floatTable" 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" class="f1">{$shipping.format_shipping_fee}</td>
			<td bgcolor="#ffffff" align="right" valign="top" class="f1">{$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>
<!--{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="goodsTitle" style="background:#f6f6f6; border:#E3E3E3 solid 1px; border-bottom:none;">{$lang.payment_method}</div>
<table width="100%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#e3e3e3" class="floatTable" 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" class="f1">{$payment.format_pay_fee}</td>
		</tr>
		<!-- {/foreach} 循环支付方式 -->
	</table>
<!--{else}-->
 <input name = "payment" type="radio" value = "-1" checked="checked"  style="display:none"/>
<!--{/if}-->

<!-- {if $pack_list} 是否有包装 -->
<div class="goodsTitle" style="background:#f6f6f6; border:#E3E3E3 solid 1px; border-bottom:none;">{$lang.goods_package}</div>
	<table width="100%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#e3e3e3" class="floatTable" 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" class="f1">{$pack.format_pack_fee}</td>
			<td valign="top" bgcolor="#ffffff" align="right" class="f1">{$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">{$lang.view}</a>
					<!-- {else} -->
					{$lang.no}
					<!-- {/if} -->
			 </td>
		</tr>
		<!-- {/foreach} 循环包装 -->
	</table>
<!-- {/if} 是否使用包装 -->

<!-- {if $card_list} 是否有贺卡 -->
<div class="goodsTitle" style="background:#f6f6f6; border:#E3E3E3 solid 1px; border-bottom:none;">{$lang.goods_card}</div>
	<table width="100%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#e3e3e3" class="floatTable" 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" class="f1">{$card.format_card_fee}</td>
			<td valign="top" align="right" bgcolor="#ffffff" class="f1">{$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">{$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"  class="InputBorder">{$order.card_message|escape}</textarea></td>
		</tr>
	</table>
<!-- {/if} 是否使用贺卡 -->

<div class="goodsTitle" style="background:#f6f6f6; border:#E3E3E3 solid 1px; border-bottom:none;">{$lang.other_info}</div>
<table width="100%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#e3e3e3" class="floatTable">
		<!-- {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="InputBorder" 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="InputBorder" 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"  class="InputBorder">
					<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="InputBorder" size="15" value="{$order.bonus_sn}" />
				<input name="validate_bonus" type="button" class="bnt_number4" 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()"  class="InputBorder">
				{html_options options=$inv_type_list selected=$order.inv_type}</select>
				<!-- {/if} -->
				{$lang.invoice_title}
				<input name="inv_payee" type="text"  class="InputBorder" 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="InputBorder">

				{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" class="InputBorder">{$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 class="goodsTitle" style="background:#f6f6f6; border:#E3E3E3 solid 1px; border-bottom:none;">{$lang.fee_total}</div>
	<!-- #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>
</form>
<!-- {/if} -->

<!-- {if $step eq "done"} -->
<div class="blank"></div>
<!-- 订单提交成功 -->
<div class="orderSuccess">
 <div class="order_sn tc">{$lang.remember_order_number}：<font class="a">{$order.order_sn}</font></div>
 <div class="shipping_name">
  <!--{if $order.shipping_name}-->
	{$lang.select_shipping}： <strong>{$order.shipping_name}</strong><br />
	<!--{/if}-->
	{$lang.select_payment}： <strong>{$order.pay_name}</strong>。<br />
	{$lang.order_amount}： <strong class="f1">{$total.amount_formated}</strong><br />
	&nbsp;&nbsp;&nbsp;&nbsp;{$order.pay_desc}<br />
	<!-- {if $pay_online} 如果是线上支付则显示支付按钮-->
   {$pay_online}
 <!-- {/if} -->
 </div>
 <!--{if $virtual_card}-->
 <div class="shipping_name">
 <!--{foreach from=$virtual_card item=vgoods}-->
	<font class="f14b">{$vgoods.goods_name}</font><br />
		<!--{foreach from=$vgoods.info item=card}-->
			<!--{if $card.card_sn}-->
			<strong>{$lang.card_sn}：</strong><font class="f1">{$card.card_sn}</font><br />
			<!--{/if}-->
			<!--{if $card.card_password}-->
			<strong>{$lang.card_password}：</strong><font class="f1">{$card.card_password}</font><br />
			<!--{/if}-->
			<!--{if $card.end_date}-->
			<strong>{$lang.end_date}：</strong>{$card.end_date}<br />
			<!--{/if}-->
		<!--{/foreach}-->
	<!--{/foreach}-->
 </div>
 <!--{/if}-->
	<p>现在，{$order_submit_back}</p>
</div>
<!-- {/if} -->


<!-- {if $step eq "login"} -->
<div class="blank"></div>
{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="clearfix">
 <div class="step_login fl">
  <h4>用户登录</h4>
	<form action="flow.php?step=login" method="post" name="loginForm" id="loginForm" onsubmit="return checkLoginForm(this)">
		<table width="100%" border="0" cellpadding="5" cellspacing="0">
					<tr>
						<td width="30%" align="right" bgcolor="#ffffff">{$lang.username}</td>
						<td width="70%" bgcolor="#ffffff"><input name="username" type="text" class="InputBorder" id="username" /></td>
					</tr>
					<tr>
						<td align="right" bgcolor="#ffffff" valign="top">{$lang.password}</td>
						<td bgcolor="#ffffff">
						<input name="password" class="InputBorder" type="password" />
						<a href="#blank" onclick="pwTips()">{$lang.get_password}？</a><br />
						<div class="close" id="tips">
						<span title="关闭" id="tipsClose" onclick=" pwTipsClose()"></span>
						如果您忘记了密码，可以通过下面两种方式找回：<br />
						1. <a href="user.php?act=qpassword_name">{$lang.get_password_by_question}</a><br />
						2. <a href="user.php?act=get_password">{$lang.get_password_by_mail}</a>
						</div>
						<script type="text/javascript">
						function pwTips(){
						document.getElementById("tips").style.display = "block";
						}
						function pwTipsClose(){
						document.getElementById("tips").style.display = "none";
						}
						</script>
						</td>
					</tr>
					<!-- 判断是否启用验证码{if $enabled_login_captcha} -->
					<tr>
						<td align="right" bgcolor="#ffffff">{$lang.comment_captcha}</td>
						<td bgcolor="#ffffff"><input type="text" size="8" name="captcha" class="InputBorder" />
						<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 align="right" bgcolor="#ffffff">&nbsp;</td>
						<td bgcolor="#ffffff"><input type="checkbox" value="1" name="remember" id="remember" /><label for="remember">{$lang.remember}</label></td>
          </tr>
					<tr>
						<td colspan="2" align="center" bgcolor="#ffffff">
								<input type="submit" class="bnt_number2" name="login" value="{$lang.forthwith_login}" />
								<!-- {if $anonymous_buy eq 1} 是否允许未登录用户购物 -->
								<input type="button" class="bnt_number10" value="{$lang.direct_shopping}" onclick="location.href='flow.php?step=consignee&amp;direct_shopping=1'" />
								<!-- {/if} -->
								<input name="act" type="hidden" value="signin" />
						</td>
					</tr>
		</table>
	</form>
 </div>
 <div class="step_login fr">
 <h4 class="h4bg">用户注册</h4>
<form action="flow.php?step=login" method="post" name="formUser" id="registerForm" onsubmit="return checkSignupForm(this)">
	 <table width="100%" border="0" cellpadding="5" cellspacing="0" >
			<tr>
				<td bgcolor="#ffffff" align="right" width="25%">{$lang.username}</td>
				<td bgcolor="#ffffff"><input name="username" type="text" class="InputBorder" id="username" onblur="is_registered(this.value);" /><br />
<span id="username_notice" style="color:#FF0000"></span></td>
			</tr>
			<tr>
				<td bgcolor="#ffffff" align="right">{$lang.email_address}</td>
				<td bgcolor="#ffffff"><input name="email" type="text" class="InputBorder" id="email" onblur="checkEmail(this.value);" /><br />
<span id="email_notice" style="color:#FF0000"></span></td>
			</tr>
			<tr>
				<td bgcolor="#ffffff" align="right">{$lang.password}</td>
				<td bgcolor="#ffffff"><input name="password" class="InputBorder" type="password" id="password1" 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">{$lang.confirm_password}</td>
				<td bgcolor="#ffffff"><input name="confirm_password" class="InputBorder" 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">{$lang.comment_captcha}:</td>
				<td bgcolor="#ffffff"><input type="text" size="8" name="captcha" class="InputBorder" />
				<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_number6" value="{$lang.forthwith_register}" />
						<input name="act" type="hidden" value="signup" />
				</td>
			</tr>
		</table>
	</form>
 </div>
</div>
<!-- 结束用户登录注册界面 -->
<!-- {/if} -->
</div>



</div>
<!--主体内容 end-->

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

