📄 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=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="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
{* 包含脚本文件 *}
{insert_scripts files='common.js,shopping_flow.js'}
</head>
<body>
<div id="globalWrapper">
<div id="wrapper">
<!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="8"></td>
</tr>
</table>
<div id="search-bar">
<!-- TemplateBeginEditable name="导航栏下方" -->
<!-- #BeginLibraryItem "/library/search_form.lbi" --><!-- #EndLibraryItem -->
<!-- TemplateEndEditable -->
</div>
<!-- TemplateBeginEditable name="通栏广告位" --><!-- TemplateEndEditable -->
<div id="container2"><div id="page-c">
<!-- {if $step eq "cart"} -->
<!-- 购物车内容 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div><img src="themes/jbd/images/flow1.gif" /></div></td>
</tr>
<tr><td height="15"> </td></tr>
</table>
<DIV class=buy_box>
<div class=buy_t>商品列表</div>
<form id="formCart" name="formCart" method="post" action="flow.php">
<table width="96%" class=bt1 borderColor=#d1d1d1 cellSpacing=0 borderColorDark=#ffffff
cellPadding=0 align=center border=1>
<tr style="COLOR: #990000" bgColor=#f8eed6>
<th width="200">{$lang.goods_name}</th>
<th width="80">{$lang.shop_prices}</th>
<th width="120">{$lang.number}</th>
<th width="80">{$lang.subtotal}</th>
<th width="100">{$lang.handle}</th>
</tr>
<!-- {foreach from=$goods_list item=goods} -->
<tr>
<td align="left">
<span style="padding-left: 10px;"><a href="goods.php?id={$goods.goods_id}" target="_blank">{$goods.goods_name}</a></span>
</td>
<td align="right">{$goods.goods_price}</td>
<td align="right">
<!-- {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" style="text-align:right " /><input name="submit" type="submit" value="修改" />
<!-- {else} -->
{$goods.goods_number}
<!-- {/if} -->
</td>
<td align="right">{$goods.subtotal}</td>
<td align="center">
<a href="javascript:if (confirm('{$lang.drop_goods_confirm}')) location.href='flow.php?step=drop_goods&id={$goods.rec_id}'; ">{$lang.drop}</a>
<!-- {if $smarty.session.user_id gt 0} 如果登录了,可以加入收藏 -->
<a href="javascript:if (confirm('{$lang.drop_goods_confirm}')) location.href='flow.php?step=drop_to_collect&id={$goods.rec_id}'; ">{$lang.drop_to_collect}</a>
<!-- {/if} -->
</td>
</tr>
<!-- {/foreach} -->
<tr style="COLOR: #990000" bgColor=#f8eed6>
<td align="right" colspan="5"><strong><font color="#990000">{$shopping_money}</font></strong></td></tr>
<tr>
</table>
<table width="98%" border="0" style="border-top:0px dotted #DADADA;">
<td align="right">
<input type="button" value="{$lang.clear_cart}" onclick="location.href='flow.php?step=clear'" />
<input name="submit" type="submit" value="{$lang.update_cart}" />
</td>
</tr>
</table>
<input type="hidden" name="step" value="update_cart" />
</form>
<table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><table width="84%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" align="left"><span style="color:#990000"><b>金百度购物三步曲:</b></span></td>
</tr>
<tr>
<td height="25" align="left">第一步:选定商品,可以多次选购。选购完产品,进入购物车,<span style="color:#990000">可以在商品数量中填写购买数量,并点击"修改"按钮或者"更新购物车"按钮。</span></td>
</tr>
<tr>
<td height="25" align="left">第二步:确认收货人信息,选择配送方式及支付方式,并提交订单。</td>
</tr>
<tr>
<td height="25" align="left">第三步:支付货款,等待发货。</td>
</tr>
</table></td>
</tr>
</table></div>
<br />
<table width="100%" border="0">
<tr>
<td><a href="./"><img src="themes/jbd/images/continue.gif" alt="continue" width="130" height="30" border="0" /></a></td>
<td align="right"><a href="flow.php?step=checkout"><img src="themes/jbd/images/flownext.gif" alt="checkout" width="130" height="30" border="0" /></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)
{
if (confirm(result.message))
{
location.href = 'goods.php?id=' + result.goods_id;
}
}
else
{
alert(result.message);
}
}
else
{
location.href = 'flow.php';
}
}
</script>
<!-- {if $collection_goods} -->
<DIV class=buy_box>
<div class=buy_t>我的收藏</div>
<table width="92%" class=bt1 borderColor=#d1d1d1 cellSpacing=0 borderColorDark=#ffffff
cellPadding=0 align=center border=1>
<!-- {foreach from=$collection_goods item=goods} -->
<tr>
<td align="left"> <a href="goods.php?id={$goods.goods_id}">{$goods.goods_name}</a></td>
<td align="center"><a href="javascript:collect_to_flow({$goods.goods_id})"><img src="themes/jbd/images/add_cart.gif" alt="Add to cart" width="100" height="20" /></a></td>
</tr>
<!-- {/foreach} -->
</table></DIV>
<!-- {/if} -->
<!-- {/if} -->
</DIV>
<!-- {/if} -->
<!-- {if $step eq "consignee"} -->
<!-- 开始收货人信息填写界面 -->
<div class="goods-title-full">收货人信息</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"} -->
<!-- 开始订单确认界面 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div><img src="themes/jbd/images/flow2.gif" /></div></td>
</tr>
<tr><td height="15"> </td></tr>
</table>
<script type="text/javascript">
var flow_no_payment = "{$lang.flow_no_payment}";
var flow_no_shipping = "{$lang.flow_no_shipping}";
</script>
<form action="flow.php" method="post" name="theForm" id="theForm" onsubmit="return checkOrderForm(this)">
<DIV class=buy_box>
<div class=buy_t>收货人信息<span class=buy_span><a href="flow.php?step=consignee">{$lang.modify}</a></span></div>
<table class=bt1sh borderColor=#d1d1d1 cellSpacing=0 borderColorDark=#ffffff
cellPadding=0 width="96%" align=center border=1>
<tr>
<td style="COLOR: #990000" bgColor=#f8eed6> {$lang.consignee_name}:</td>
<td> {$consignee.consignee|escape}</td>
<td style="COLOR: #990000" bgColor=#f8eed6> {$lang.email_address}:</td>
<td> {$consignee.email|escape}</td>
</tr>
<!-- {if $total.real_goods_count gt 0} -->
<tr>
<td style="COLOR: #990000" bgColor=#f8eed6> {$lang.detailed_address}:</td>
<td> {$consignee.address|escape}</td>
<td style="COLOR: #990000" bgColor=#f8eed6> {$lang.postalcode}:</td>
<td> {$consignee.zipcode|escape}</td>
</tr>
<!-- {/if} -->
<tr>
<td style="COLOR: #990000" bgColor=#f8eed6> {$lang.phone}:</td>
<td> {$consignee.tel} </td>
<td style="COLOR: #990000" bgColor=#f8eed6> {$lang.backup_phone}:</td>
<td> {$consignee.mobile|escape}</td>
</tr>
<!-- {if $total.real_goods_count gt 0} -->
<tr>
<td style="COLOR: #990000" bgColor=#f8eed6> {$lang.sign_building}:</td>
<td> {$consignee.sign_building|escape}</td>
<td style="COLOR: #990000" bgColor=#f8eed6> {$lang.deliver_goods_time}:</td>
<td> {$consignee.best_time|escape}</td>
</tr>
<!-- {/if} -->
</table>
<table width="96%" border="0" cellspacing="0" cellpadding="0" align=center>
<tr>
<td height="25" align="left"><span style="color:#0000ff"><b>重要说明:如果更改收货人的城市,请使用"{$lang.modify}"来修改您的收货信息!</b></span></td>
</tr></table>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="40" valign="bottom"><div align="right"><a href="flow.php?step=consignee" target="_blank"></a> <a href="flow.php?step=consignee" target="_blank"><img src="themes/jbd/images/xzshr.gif" width="128" height="28" border="0" /></a></div></td>
</tr>
</table>
</DIV>
<!--{if $total.real_goods_count neq 0}-->
<DIV class=buy_box>
<div class=buy_t>配送方式<span class=buy_spand><a href="article.php?id=38" target=_blank>配送帮助</a></span></div>
<table class=bt1 borderColor=#d1d1d1 cellSpacing=0 borderColorDark=#ffffff
cellPadding=0 width="96%" align=center border=1>
<tr style="COLOR: #990000" bgColor=#f8eed6>
<th width="5%"> </th>
<th width="15%">{$lang.name}</th>
<th width="10%">{$lang.insure_fee}</th>
<th width="10%">{$lang.fee}</th>
<th width="10%">{$lang.free_money}</th>
<th>{$lang.describe}</th>
</tr>
<!-- {foreach from=$shipping_list item=shipping} 循环配送方式 -->
<tr>
<td valign="middle" height="25" valign="middle"><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 valign="middle"><strong>{$shipping.shipping_name}</strong></td>
<td valign="middle" align="right" >{if $shipping.insure neq 0}{$shipping.insure_formated}{else}{$lang.not_support_insure}{/if}</td>
<td valign="middle" align="right" >{$shipping.format_shipping_fee}</td>
<td valign="middle" align="right" >{$shipping.free_money}</td>
<td valign="middle" align="center"><table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left">{$shipping.shipping_desc}</td>
</tr>
</table></td>
</tr>
<!-- {/foreach} 循环配送方式 -->
<tr style="COLOR: #990000" bgColor=#f8eed6>
<td colspan="6" 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -