PageRenderTime 38ms CodeModel.GetById 3ms app.highlight 13ms RepoModel.GetById 1ms app.codeStats 1ms

/themes/default/flow.dwt

https://bitbucket.org/luxi78/fengyu
Unknown | 900 lines | 872 code | 28 blank | 0 comment | 0 complexity | f12810989c87a7c8f15a017579a94496 MD5 | raw file
  1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2<html xmlns="http://www.w3.org/1999/xhtml">
  3<head>
  4<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5<meta name="Keywords" content="{$keywords}" />
  6<meta name="Description" content="{$description}" />
  7<!-- TemplateBeginEditable name="doctitle" -->
  8<title>{$page_title}</title>
  9<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
 10<link rel="shortcut icon" href="favicon.ico" />
 11<link rel="icon" href="animated_favicon.gif" type="image/gif" />
 12<link href="{$ecs_css_path}" rel="stylesheet" type="text/css" />
 13{* ?????? *}
 14{insert_scripts files='common.js,shopping_flow.js'}
 15</head>
 16<body>
 17<!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->
 18<!--???? start-->
 19<div class="block box">
 20 <div id="ur_here">
 21  <!-- #BeginLibraryItem "/library/ur_here.lbi" --><!-- #EndLibraryItem -->
 22 </div>
 23</div>
 24<!--???? end-->
 25<div class="blank"></div>
 26<div class="block">
 27  <!-- {if $step eq "cart"} -->
 28  <!-- ????? -->
 29  {* ?????? *}
 30  {insert_scripts files='showdiv.js'}
 31  <script type="text/javascript">
 32  {foreach from=$lang.password_js item=item key=key}
 33    var {$key} = "{$item}";
 34  {/foreach}
 35  </script>
 36  <div class="flowBox">
 37    <h6><span>{$lang.goods_list}</span></h6>
 38        <form id="formCart" name="formCart" method="post" action="flow.php">
 39           <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 40            <tr>
 41              <th bgcolor="#ffffff">{$lang.goods_name}</th>
 42      <!-- {if $show_goods_attribute eq 1} ?????? -->
 43              <th bgcolor="#ffffff">{$lang.goods_attr}</th>
 44              <!-- {/if} -->
 45              <!-- {if $show_marketprice} ????? -->
 46              <th bgcolor="#ffffff">{$lang.market_prices}</th>
 47              <!-- {/if} -->
 48              <th bgcolor="#ffffff">{$lang.shop_prices}</th>
 49              <th bgcolor="#ffffff">{$lang.number}</th>
 50              <th bgcolor="#ffffff">{$lang.subtotal}</th>
 51              <th bgcolor="#ffffff">{$lang.handle}</th>
 52            </tr>
 53            <!-- {foreach from=$goods_list item=goods} -->
 54            <tr>
 55              <td bgcolor="#ffffff" align="center">
 56                <!-- {if $goods.goods_id gt 0 && $goods.extension_code neq 'package_buy'} ?? -->
 57                  <!-- {if $show_goods_thumb eq 1} -->
 58                    <a href="goods.php?id={$goods.goods_id}" target="_blank" class="f6">{$goods.goods_name}</a>
 59                  <!-- {elseif $show_goods_thumb eq 2} -->
 60                    <a href="goods.php?id={$goods.goods_id}" target="_blank"><img src="{$goods.goods_thumb}" border="0" title="{$goods.goods_name|escape:html}" /></a>
 61                  <!-- {else} -->
 62                    <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 />
 63                    <a href="goods.php?id={$goods.goods_id}" target="_blank" class="f6">{$goods.goods_name}</a>
 64                  <!-- {/if} -->
 65                  <!-- {if $goods.parent_id gt 0} ?? -->
 66                  <span style="color:#FF0000">?{$lang.accessories}?</span>
 67                  <!-- {/if} -->
 68                  <!-- {if $goods.is_gift gt 0} ?? -->
 69                  <span style="color:#FF0000">?{$lang.largess}?</span>
 70                  <!-- {/if} -->
 71                <!-- {elseif $goods.goods_id gt 0 && $goods.extension_code eq 'package_buy'} -->
 72                  <a href="javascript:void(0)" onclick="setSuitShow({$goods.goods_id})" class="f6">{$goods.goods_name}<span style="color:#FF0000;">?{$lang.remark_package}?</span></a>
 73                  <div id="suit_{$goods.goods_id}" style="display:none">
 74                      <!-- {foreach from=$goods.package_goods_list item=package_goods_list} -->
 75                        <a href="goods.php?id={$package_goods_list.goods_id}" target="_blank" class="f6">{$package_goods_list.goods_name}</a><br />
 76                      <!-- {/foreach} -->
 77                  </div>
 78                <!-- {else} ???? -->
 79                  {$goods.goods_name}
 80                <!-- {/if} -->
 81              </td>
 82              <!-- {if $show_goods_attribute eq 1} ?????? -->
 83              <td bgcolor="#ffffff">{$goods.goods_attr|nl2br}</td>
 84              <!-- {/if} -->
 85              <!-- {if $show_marketprice} ????? -->
 86              <td align="right" bgcolor="#ffffff">{$goods.market_price}</td>
 87              <!-- {/if} -->
 88              <td align="right" bgcolor="#ffffff">{$goods.goods_price}</td>
 89              <td align="right" bgcolor="#ffffff">
 90                <!-- {if $goods.goods_id gt 0 && $goods.is_gift eq 0 && $goods.parent_id eq 0} ????????? -->
 91                <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)"/>
 92                <!-- {else} -->
 93                {$goods.goods_number}
 94                <!-- {/if} -->
 95              </td>
 96              <td align="right" bgcolor="#ffffff">{$goods.subtotal}</td>
 97              <td align="center" bgcolor="#ffffff">
 98                <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>
 99                <!-- {if $smarty.session.user_id gt 0 && $goods.extension_code neq 'package_buy'} ???????????? -->
100                <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>
101                <!-- {/if} -->            </td>
102            </tr>
103            <!-- {/foreach} -->
104          </table>
105          <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
106            <tr>
107              <td bgcolor="#ffffff">
108              <!-- {if $discount gt 0} -->{$your_discount}<br /><!-- {/if} -->
109              {$shopping_money}<!-- {if $show_marketprice} -->?{$market_price_desc}<!-- {/if} -->
110              </td>
111              <td align="right" bgcolor="#ffffff">
112                <input type="button" value="{$lang.clear_cart}" class="bnt_blue_1" onclick="location.href='flow.php?step=clear'" />
113                <input name="submit" type="submit" class="bnt_blue_1" value="{$lang.update_cart}" />
114              </td>
115            </tr>
116          </table>
117          <input type="hidden" name="step" value="update_cart" />
118        </form>
119        <table width="99%" align="center" border="0" cellpadding="5" cellspacing="0" bgcolor="#dddddd">
120          <tr>
121            <td bgcolor="#ffffff"><a href="./"><img src="images/continue.gif" alt="continue" /></a></td>
122            <td bgcolor="#ffffff" align="right"><a href="flow.php?step=checkout"><img src="images/checkout.gif" alt="checkout" /></a></td>
123          </tr>
124        </table>
125       <!-- {if $smarty.session.user_id gt 0} -->
126       {insert_scripts files='transport.js'}
127       <script type="text/javascript" charset="utf-8">
128        function collect_to_flow(goodsId)
129        {
130          var goods        = new Object();
131          var spec_arr     = new Array();
132          var fittings_arr = new Array();
133          var number       = 1;
134          goods.spec     = spec_arr;
135          goods.goods_id = goodsId;
136          goods.number   = number;
137          goods.parent   = 0;
138          Ajax.call('flow.php?step=add_to_cart', 'goods=' + goods.toJSONString(), collect_to_flow_response, 'POST', 'JSON');
139        }
140        function collect_to_flow_response(result)
141        {
142          if (result.error > 0)
143          {
144            // ???????????
145            if (result.error == 2)
146            {
147              if (confirm(result.message))
148              {
149                location.href = 'user.php?act=add_booking&id=' + result.goods_id;
150              }
151            }
152            else if (result.error == 6)
153            {
154              if (confirm(result.message))
155              {
156                location.href = 'goods.php?id=' + result.goods_id;
157              }
158            }
159            else
160            {
161              alert(result.message);
162            }
163          }
164          else
165          {
166            location.href = 'flow.php';
167          }
168        }
169      </script>
170  </div>
171    <div class="blank"></div>
172  <!-- {/if} -->
173
174  <!-- {if $collection_goods} -->
175  <div class="flowBox">
176    <h6><span>{$lang.label_collection}</span></h6>
177    <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
178      <!-- {foreach from=$collection_goods item=goods} -->
179          <tr>
180            <td bgcolor="#ffffff"><a href="goods.php?id={$goods.goods_id}" class="f6">{$goods.goods_name}</a></td>
181            <td bgcolor="#ffffff" align="center" width="100"><a href="javascript:addToCart({$goods.goods_id})" class="f6">{$lang.collect_to_flow}</a></td>
182          </tr>
183      <!-- {/foreach} -->
184        </table>
185      <!-- {/if} -->
186  </div>
187    <div class="blank5"></div>
188  <!-- {/if} -->
189
190  <!-- {if $fittings_list} ???? -->
191  {insert_scripts files='transport.js'}
192  <script type="text/javascript" charset="utf-8">
193  function fittings_to_flow(goodsId,parentId)
194  {
195    var goods        = new Object();
196    var spec_arr     = new Array();
197    var number       = 1;
198    goods.spec     = spec_arr;
199    goods.goods_id = goodsId;
200    goods.number   = number;
201    goods.parent   = parentId;
202    Ajax.call('flow.php?step=add_to_cart', 'goods=' + goods.toJSONString(), fittings_to_flow_response, 'POST', 'JSON');
203  }
204  function fittings_to_flow_response(result)
205  {
206    if (result.error > 0)
207    {
208      // ???????????
209      if (result.error == 2)
210      {
211        if (confirm(result.message))
212        {
213          location.href = 'user.php?act=add_booking&id=' + result.goods_id;
214        }
215      }
216      else if (result.error == 6)
217      {
218        if (confirm(result.message))
219        {
220          location.href = 'goods.php?id=' + result.goods_id;
221        }
222      }
223      else
224      {
225        alert(result.message);
226      }
227    }
228    else
229    {
230      location.href = 'flow.php';
231    }
232  }
233  </script>
234  <div class="block" >
235    <div class="flowBox">
236    <h6><span>{$lang.goods_fittings}</span></h6>
237    <form action="flow.php" method="post">
238        <div class="flowGoodsFittings clearfix">
239          <!-- {foreach from=$fittings_list item=fittings} -->
240            <ul class="clearfix">
241              <li class="goodsimg">
242                <a href="{$fittings.url}" target="_blank"><img src="{$fittings.goods_thumb}" alt="{$fittings.name|escape:html}" class="B_blue" /></a>
243              </li>
244              <li>
245                <a href="{$fittings.url}" target="_blank" title="{$fittings.goods_name|escape:html}" class="f6">{$fittings.short_name|escape:html}</a><br />
246                {$lang.fittings_price}<font class="f1">{$fittings.fittings_price}</font><br />
247                {$lang.parent_name}{$fittings.parent_short_name}<br />
248                <a href="javascript:fittings_to_flow({$fittings.goods_id},{$fittings.parent_id})"><img src="images/bnt_buy.gif" alt="{$lang.collect_to_flow}" /></a>
249              </li>
250            </ul>
251          <!-- {/foreach} ???????? -->
252        </div>
253    </form>
254    </div>
255  </div>
256  <div class="blank5"></div>
257  <!-- {/if} -->
258
259  <!-- {if $favourable_list} ???? -->
260  <div class="block">
261    <div class="flowBox">
262    <h6><span>{$lang.label_favourable}</span></h6>
263        <!-- {foreach from=$favourable_list item=favourable} -->
264        <form action="flow.php" method="post">
265          <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
266            <tr>
267              <td align="right" bgcolor="#ffffff">{$lang.favourable_name}</td>
268              <td bgcolor="#ffffff"><strong>{$favourable.act_name}</strong></td>
269            </tr>
270            <tr>
271              <td align="right" bgcolor="#ffffff">{$lang.favourable_period}</td>
272              <td bgcolor="#ffffff">{$favourable.start_time} --- {$favourable.end_time}</td>
273            </tr>
274            <tr>
275              <td align="right" bgcolor="#ffffff">{$lang.favourable_range}</td>
276              <td bgcolor="#ffffff">{$lang.far_ext[$favourable.act_range]}<br />
277              {$favourable.act_range_desc}</td>
278            </tr>
279            <tr>
280              <td align="right" bgcolor="#ffffff">{$lang.favourable_amount}</td>
281              <td bgcolor="#ffffff">{$favourable.formated_min_amount} --- {$favourable.formated_max_amount}</td>
282            </tr>
283            <tr>
284              <td align="right" bgcolor="#ffffff">{$lang.favourable_type}</td>
285              <td bgcolor="#ffffff">
286                <span class="STYLE1">{$favourable.act_type_desc}</span>
287                <!-- {if $favourable.act_type eq 0} -->
288                <!-- {foreach from=$favourable.gift item=gift} --><br />
289                  <input type="checkbox" value="{$gift.id}" name="gift[]" />
290                  <a href="goods.php?id={$gift.id}" target="_blank" class="f6">{$gift.name}</a> [{$gift.formated_price}]
291                <!-- {/foreach} -->
292              <!-- {/if} -->          </td>
293            </tr>
294            <!-- {if $favourable.available} -->
295            <tr>
296              <td align="right" bgcolor="#ffffff">&nbsp;</td>
297              <td align="center" bgcolor="#ffffff"><input type="image" src="images/bnt_cat.gif" alt="Add to cart"  border="0" /></td>
298            </tr>
299            <!-- {/if} -->
300          </table>
301          <input type="hidden" name="act_id" value="{$favourable.act_id}" />
302          <input type="hidden" name="step" value="add_favourable" />
303        </form>
304        <!-- {/foreach} ???????? -->
305  </div>
306  </div>
307  <!-- {/if} -->
308
309
310        <!-- {if $step eq "consignee"} -->
311        <!-- ??????????? -->
312        {insert_scripts files='region.js,utils.js'}
313        <script type="text/javascript">
314          region.isAdmin = false;
315          {foreach from=$lang.flow_js item=item key=key}
316          var {$key} = "{$item}";
317          {/foreach}
318
319          {literal}
320          onload = function() {
321            if (!document.all)
322            {
323              document.forms['theForm'].reset();
324            }
325          }
326          {/literal}
327        </script>
328        <!-- ??????????????????? -->
329        <!-- {foreach from=$consignee_list item=consignee key=sn} -->
330        <form action="flow.php" method="post" name="theForm" id="theForm" onsubmit="return checkConsignee(this)">
331        <!-- #BeginLibraryItem "/Library/consignee.lbi" --><!-- #EndLibraryItem -->
332        </form>
333        <!-- {/foreach} -->
334        <!-- {/if} -->
335
336        <!-- {if $step eq "checkout"} ???????? -->
337        <form action="flow.php" method="post" name="theForm" id="theForm" onsubmit="return checkOrderForm(this)">
338        <script type="text/javascript">
339        var flow_no_payment = "{$lang.flow_no_payment}";
340        var flow_no_shipping = "{$lang.flow_no_shipping}";
341        </script>
342        <div class="flowBox">
343        <h6><span>{$lang.goods_list}</span><!--{if $allow_edit_cart} --><a href="flow.php" class="f6">{$lang.modify}</a><!--{/if} --></h6>
344        <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
345            <tr>
346              <th bgcolor="#ffffff">{$lang.goods_name}</th>
347              <th bgcolor="#ffffff">{$lang.goods_attr}</th>
348              <!-- {if $show_marketprice} -->
349              <th bgcolor="#ffffff">{$lang.market_prices}</th>
350              <!-- {/if} -->
351              <th bgcolor="#ffffff">{if $gb_deposit}{$lang.deposit}{else}{$lang.shop_prices}{/if}</th>
352              <th bgcolor="#ffffff">{$lang.number}</th>
353              <th bgcolor="#ffffff">{$lang.subtotal}</th>
354            </tr>
355            <!-- {foreach from=$goods_list item=goods} -->
356            <tr>
357              <td bgcolor="#ffffff">
358              <!-- {if $goods.goods_id gt 0 && $goods.extension_code eq 'package_buy'} -->
359	      <a href="javascript:void(0)" onclick="setSuitShow({$goods.goods_id})" class="f6">{$goods.goods_name}<span style="color:#FF0000;">?{$lang.remark_package}?</span></a>
360	      <div id="suit_{$goods.goods_id}" style="display:none">
361	          <!-- {foreach from=$goods.package_goods_list item=package_goods_list} -->
362		    <a href="goods.php?id={$package_goods_list.goods_id}" target="_blank" class="f6">{$package_goods_list.goods_name}</a><br />
363	          <!-- {/foreach} -->
364	      </div>
365	      <!-- { else } -->
366	      <a href="goods.php?id={$goods.goods_id}" target="_blank" class="f6">{$goods.goods_name}</a>
367                <!-- {if $goods.parent_id > 0} -->
368                <span style="color:#FF0000">?{$lang.accessories}?</span>
369                <!-- {elseif $goods.is_gift} -->
370                <span style="color:#FF0000">?{$lang.largess}?</span>
371                <!-- {/if} -->
372	      <!-- {/if} -->
373              </td>
374              <td bgcolor="#ffffff">{$goods.goods_attr|nl2br}</td>
375              <!-- {if $show_marketprice} -->
376              <td align="right" bgcolor="#ffffff">{$goods.formated_market_price}</td>
377              <!-- {/if} -->
378              <td bgcolor="#ffffff" align="right">{$goods.formated_goods_price}</td>
379              <td bgcolor="#ffffff" align="right">{$goods.goods_number}</td>
380              <td bgcolor="#ffffff" align="right">{$goods.formated_subtotal}</td>
381            </tr>
382            <!-- {/foreach} -->
383            <!-- {if !$gb_deposit} ??????????? -->
384            <tr>
385              <td bgcolor="#ffffff" colspan="7">
386              <!-- {if $discount gt 0} -->{$your_discount}<br /><!-- {/if} -->
387              {$shopping_money}<!-- {if $show_marketprice} -->?{$market_price_desc}<!--{/if}-->
388              </td>
389            </tr>
390            <!-- {/if} -->
391          </table>
392      </div>
393      <div class="blank"></div>
394      <div class="flowBox">
395      <h6><span>{$lang.consignee_info}</span><a href="flow.php?step=consignee" class="f6">{$lang.modify}</a></h6>
396      <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
397            <tr>
398              <td bgcolor="#ffffff">{$lang.consignee_name}:</td>
399              <td bgcolor="#ffffff">{$consignee.consignee|escape}</td>
400              <td bgcolor="#ffffff">{$lang.email_address}:</td>
401              <td bgcolor="#ffffff">{$consignee.email|escape}</td>
402            </tr>
403            <!-- {if $total.real_goods_count gt 0} -->
404            <tr>
405              <td bgcolor="#ffffff">{$lang.detailed_address}:</td>
406              <td bgcolor="#ffffff">{$consignee.address|escape} </td>
407              <td bgcolor="#ffffff">{$lang.postalcode}:</td>
408              <td bgcolor="#ffffff">{$consignee.zipcode|escape}</td>
409            </tr>
410            <!-- {/if} -->
411            <tr>
412              <td bgcolor="#ffffff">{$lang.phone}:</td>
413              <td bgcolor="#ffffff">{$consignee.tel} </td>
414              <td bgcolor="#ffffff">{$lang.backup_phone}:</td>
415              <td bgcolor="#ffffff">{$consignee.mobile|escape}</td>
416            </tr>
417             <!-- {if $total.real_goods_count gt 0} -->
418            <tr>
419              <td bgcolor="#ffffff">{$lang.sign_building}:</td>
420              <td bgcolor="#ffffff">{$consignee.sign_building|escape} </td>
421              <td bgcolor="#ffffff">{$lang.deliver_goods_time}:</td>
422              <td bgcolor="#ffffff">{$consignee.best_time|escape}</td>
423            </tr>
424            <!-- {/if} -->
425          </table>
426      </div>
427     <div class="blank"></div>
428    <!--{if $total.real_goods_count neq 0}-->
429    <div class="flowBox">
430    <h6><span>{$lang.shipping_method}</span></h6>
431    <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="shippingTable">
432            <tr>
433              <th bgcolor="#ffffff" width="5%">&nbsp;</th>
434              <th bgcolor="#ffffff" width="25%">{$lang.name}</th>
435              <th bgcolor="#ffffff">{$lang.describe}</th>
436              <th bgcolor="#ffffff" width="15%">{$lang.fee}</th>
437              <th bgcolor="#ffffff" width="15%">{$lang.free_money}</th>
438              <th bgcolor="#ffffff" width="15%">{$lang.insure_fee}</th>
439            </tr>
440            <!-- {foreach from=$shipping_list item=shipping} ?????? -->
441            <tr>
442              <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)" />
443              </td>
444              <td bgcolor="#ffffff" valign="top"><strong>{$shipping.shipping_name}</strong></td>
445              <td bgcolor="#ffffff" valign="top">{$shipping.shipping_desc}</td>
446              <td bgcolor="#ffffff" align="right" valign="top">{$shipping.format_shipping_fee}</td>
447              <td bgcolor="#ffffff" align="right" valign="top">{$shipping.free_money}</td>
448              <td bgcolor="#ffffff" align="right" valign="top">{if $shipping.insure neq 0}{$shipping.insure_formated}{else}{$lang.not_support_insure}{/if}</td>
449            </tr>
450            <!-- {/foreach} ?????? -->
451            <tr>
452              <td colspan="6" bgcolor="#ffffff" align="right"><label for="ECS_NEEDINSURE">
453                <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}  />
454                {$lang.need_insure} </label></td>
455            </tr>
456          </table>
457    </div>
458    <div class="blank"></div>
459        <!--{else}-->
460        <input name = "shipping" type="radio" value = "-1" checked="checked"  style="display:none"/>
461        <!--{/if}-->
462    <!--{if $is_exchange_goods neq 1 || $total.real_goods_count neq 0}-->
463    <div class="flowBox">
464    <h6><span>{$lang.payment_method}</span></h6>
465    <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="paymentTable">
466            <tr>
467              <th width="5%" bgcolor="#ffffff">&nbsp;</th>
468              <th width="20%" bgcolor="#ffffff">{$lang.name}</th>
469              <th bgcolor="#ffffff">{$lang.describe}</th>
470              <th bgcolor="#ffffff" width="15%">{$lang.pay_fee}</th>
471            </tr>
472            <!-- {foreach from=$payment_list item=payment} -->
473            <!-- ?????? -->
474            <tr>
475              <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>
476              <td valign="top" bgcolor="#ffffff"><strong>{$payment.pay_name}</strong></td>
477              <td valign="top" bgcolor="#ffffff">{$payment.pay_desc}</td>
478              <td align="right" bgcolor="#ffffff" valign="top">{$payment.format_pay_fee}</td>
479            </tr>
480            <!-- {/foreach} ?????? -->
481          </table>
482    </div>
483    <!--{else}-->
484        <input name = "payment" type="radio" value = "-1" checked="checked"  style="display:none"/>
485    <!--{/if}-->
486    <div class="blank"></div>
487          <!-- {if $pack_list} ????? -->
488          <div class="flowBox">
489          <h6><span>{$lang.goods_package}</span></h6>
490          <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="packTable">
491            <tr>
492              <th width="5%" scope="col" bgcolor="#ffffff">&nbsp;</th>
493              <th width="35%" scope="col" bgcolor="#ffffff">{$lang.name}</th>
494              <th width="22%" scope="col" bgcolor="#ffffff">{$lang.price}</th>
495              <th width="22%" scope="col" bgcolor="#ffffff">{$lang.free_money}</th>
496              <th scope="col" bgcolor="#ffffff">{$lang.img}</th>
497            </tr>
498            <tr>
499              <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>
500              <td valign="top" bgcolor="#ffffff"><strong>{$lang.no_pack}</strong></td>
501              <td valign="top" bgcolor="#ffffff">&nbsp;</td>
502              <td valign="top" bgcolor="#ffffff">&nbsp;</td>
503              <td valign="top" bgcolor="#ffffff">&nbsp;</td>
504            </tr>
505            <!-- {foreach from=$pack_list item=pack} ???? -->
506            <tr>
507              <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)" />
508              </td>
509              <td valign="top" bgcolor="#ffffff"><strong>{$pack.pack_name}</strong></td>
510              <td valign="top" bgcolor="#ffffff" align="right">{$pack.format_pack_fee}</td>
511              <td valign="top" bgcolor="#ffffff" align="right">{$pack.format_free_money}</td>
512              <td valign="top" bgcolor="#ffffff" align="center">
513                  <!-- {if $pack.pack_img} ????? -->
514                  <a href="data/packimg/{$pack.pack_img}" target="_blank" class="f6">{$lang.view}</a>
515                  <!-- {else} -->
516                  {$lang.no}
517                  <!-- {/if} -->
518               </td>
519            </tr>
520            <!-- {/foreach} ???? -->
521          </table>
522       </div>
523             <div class="blank"></div>
524          <!-- {/if} ?????? -->
525
526          <!-- {if $card_list} ????? -->
527          <div class="flowBox">
528          <h6><span>{$lang.goods_card}</span></h6>
529          <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="cardTable">
530            <tr>
531              <th bgcolor="#ffffff" width="5%" scope="col">&nbsp;</th>
532              <th bgcolor="#ffffff" width="35%" scope="col">{$lang.name}</th>
533              <th bgcolor="#ffffff" width="22%" scope="col">{$lang.price}</th>
534              <th bgcolor="#ffffff" width="22%" scope="col">{$lang.free_money}</th>
535              <th bgcolor="#ffffff" scope="col">{$lang.img}</th>
536            </tr>
537            <tr>
538              <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>
539              <td bgcolor="#ffffff" valign="top"><strong>{$lang.no_card}</strong></td>
540              <td bgcolor="#ffffff" valign="top">&nbsp;</td>
541              <td bgcolor="#ffffff" valign="top">&nbsp;</td>
542              <td bgcolor="#ffffff" valign="top">&nbsp;</td>
543            </tr>
544            <!-- {foreach from=$card_list item=card} ???? -->
545            <tr>
546              <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)"  />
547              </td>
548              <td valign="top" bgcolor="#ffffff"><strong>{$card.card_name}</strong></td>
549              <td valign="top" align="right" bgcolor="#ffffff">{$card.format_card_fee}</td>
550              <td valign="top" align="right" bgcolor="#ffffff">{$card.format_free_money}</td>
551              <td valign="top" align="center" bgcolor="#ffffff">
552                  <!-- {if $card.card_img} ????? -->
553                  <a href="data/cardimg/{$card.card_img}" target="_blank" class="f6">{$lang.view}</a>
554                  <!-- {else} -->
555                  {$lang.no}
556                  <!-- {/if} -->
557                </td>
558            </tr>
559            <!-- {/foreach} ???? -->
560            <tr>
561              <td bgcolor="#ffffff"></td>
562              <td bgcolor="#ffffff" valign="top"><strong>{$lang.bless_note}:</strong></td>
563              <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>
564            </tr>
565          </table>
566        </div>
567                <div class="blank"></div>
568        <!-- {/if} ?????? -->
569
570      <div class="flowBox">
571    <h6><span>{$lang.other_info}</span></h6>
572      <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
573            <!-- {if $allow_use_surplus} ?????? -->
574            <tr>
575              <td width="20%" bgcolor="#ffffff"><strong>{$lang.use_surplus}: </strong></td>
576              <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} />
577              {$lang.your_surplus}{$your_surplus|default:0} <span id="ECS_SURPLUS_NOTICE" class="notice"></span></td>
578            </tr>
579            <!-- {/if} ?????? -->
580            <!-- {if $allow_use_integral} ?????? -->
581            <tr>
582              <td bgcolor="#ffffff"><strong>{$lang.use_integral}</strong></td>
583              <td bgcolor="#ffffff"><input name="integral" type="text" class="input" id="ECS_INTEGRAL" onblur="changeIntegral(this.value)" value="{$order.integral|default:0}" size="10" />
584              {$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>
585            </tr>
586            <!-- {/if} ?????? -->
587            <!-- {if $allow_use_bonus} ?????? -->
588            <tr>
589              <td bgcolor="#ffffff"><strong>{$lang.use_bonus}:</strong></td>
590              <td bgcolor="#ffffff">
591                {$lang.select_bonus}
592                <select name="bonus" onchange="changeBonus(this.value)" id="ECS_BONUS" style="border:1px solid #ccc;">
593                  <option value="0" {if $order.bonus_id eq 0}selected{/if}>{$lang.please_select}</option>
594                  <!-- {foreach from=$bonus_list item=bonus} -->
595                  <option value="{$bonus.bonus_id}" {if $order.bonus_id eq $bonus.bonus_id}selected{/if}>{$bonus.type_name}[{$bonus.bonus_money_formated}]</option>
596                  <!-- {/foreach} -->
597                </select>
598
599                {$lang.input_bonus_no}
600                <input name="bonus_sn" type="text" class="inputBg" size="15" />
601                <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;" />
602              </td>
603            </tr>
604            <!-- {/if} ?????? -->
605            <!-- {if $inv_content_list} ????? -->
606            <tr>
607              <td bgcolor="#ffffff"><strong>{$lang.invoice}:</strong>
608                <input name="need_inv" type="checkbox"  class="input" id="ECS_NEEDINV" onclick="changeNeedInv()" value="1" {if $order.need_inv}checked="true"{/if} />
609              </td>
610              <td bgcolor="#ffffff">
611                <!-- {if $inv_type_list} -->
612                {$lang.invoice_type}
613                <select name="inv_type" id="ECS_INVTYPE" {if $order.need_inv neq 1}disabled="true"{/if} onchange="changeNeedInv()" style="border:1px solid #ccc;">
614                {html_options options=$inv_type_list selected=$order.inv_type}</select>
615                <!-- {/if} -->
616                {$lang.invoice_title}
617                <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()" />
618                {$lang.invoice_content}
619              <select name="inv_content" id="ECS_INVCONTENT" {if $order.need_inv neq 1}disabled="true"{/if}  onchange="changeNeedInv()" style="border:1px solid #ccc;">
620
621                {html_options values=$inv_content_list output=$inv_content_list selected=$order.inv_content}
622
623                </select></td>
624            </tr>
625            <!-- {/if} -->
626            <tr>
627              <td valign="top" bgcolor="#ffffff"><strong>{$lang.order_postscript}:</strong></td>
628              <td bgcolor="#ffffff"><textarea name="postscript" cols="80" rows="3" id="postscript" style="border:1px solid #ccc;">{$order.postscript|escape}</textarea></td>
629            </tr>
630            <!-- {if $how_oos_list} ???????? -->
631            <tr>
632              <td bgcolor="#ffffff"><strong>{$lang.booking_process}:</strong></td>
633              <td bgcolor="#ffffff"><!-- {foreach from=$how_oos_list key=how_oos_id item=how_oos_name} -->
634                <label>
635                <input name="how_oos" type="radio" value="{$how_oos_id}" {if $order.how_oos eq $how_oos_id}checked{/if} onclick="changeOOS(this)" />
636                {$how_oos_name}</label>
637                <!-- {/foreach} -->
638              </td>
639            </tr>
640            <!-- {/if} ?????? -->
641          </table>
642    </div>
643    <div class="blank"></div>
644    <div class="flowBox">
645    <h6><span>{$lang.fee_total}</span></h6>
646          <!-- #BeginLibraryItem "/Library/order_total.lbi" --><!-- #EndLibraryItem -->
647           <div align="center" style="margin:8px auto;">
648            <input type="image" src="images/bnt_subOrder.gif" />
649            <input type="hidden" name="step" value="done" />
650            </div>
651    </div>
652    </form>
653        <!-- {/if} -->
654
655        <!-- {if $step eq "done"} -->
656        <!-- ?????? -->
657        <div class="flowBox" style="margin:30px auto 70px auto;">
658         <h6 style="text-align:center; height:30px; line-height:30px;">{$lang.remember_order_number}: <font style="color:red">{$order.order_sn}</font></h6>
659          <table width="99%" align="center" border="0" cellpadding="15" cellspacing="0" bgcolor="#fff" style="border:1px solid #ddd; margin:20px auto;" >
660            <tr>
661              <td align="center" bgcolor="#FFFFFF">
662              <!--{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>
663              </td>
664            </tr>
665            <tr>
666              <td align="center" bgcolor="#FFFFFF">{$order.pay_desc}</td>
667            </tr>
668            <!-- {if $pay_online} -->
669            <!-- ?????????????? -->
670            <tr>
671              <td align="center" bgcolor="#FFFFFF">{$pay_online}</td>
672            </tr>
673            <!-- {/if} -->
674          </table>
675          <!--{if $virtual_card}-->
676          <div style="text-align:center;overflow:hidden;border:1px solid #E2C822;background:#FFF9D7;margin:10px;padding:10px 50px 30px;">
677          <!--{foreach from=$virtual_card item=vgoods}-->
678            <h3 style="color:#2359B1; font-size:12px;">{$vgoods.goods_name}</h3>
679            <!--{foreach from=$vgoods.info item=card}-->
680              <ul style="list-style:none;padding:0;margin:0;clear:both">
681              <!--{if $card.card_sn}-->
682              <li style="margin-right:50px;float:left;">
683              <strong>{$lang.card_sn}:</strong><span style="color:red;">{$card.card_sn}</span>
684              </li><!--{/if}-->
685              <!--{if $card.card_password}-->
686              <li style="margin-right:50px;float:left;">
687              <strong>{$lang.card_password}:</strong><span style="color:red;">{$card.card_password}</span>
688              </li><!--{/if}-->
689              <!--{if $card.end_date}-->
690              <li style="float:left;">
691              <strong>{$lang.end_date}:</strong>{$card.end_date}
692              </li><!--{/if}-->
693              </ul>
694            <!--{/foreach}-->
695          <!--{/foreach}-->
696          </div>
697          <!--{/if}-->
698          <p style="text-align:center; margin-bottom:20px;">{$order_submit_back}</p>
699        </div>
700        <!-- {/if} -->
701        <!-- {if $step eq "login"} -->
702        {insert_scripts files='utils.js,user.js'}
703        <script type="text/javascript">
704        {foreach from=$lang.flow_login_register item=item key=key}
705          var {$key} = "{$item}";
706        {/foreach}
707
708        {literal}
709        function checkLoginForm(frm) {
710          if (Utils.isEmpty(frm.elements['username'].value)) {
711            alert(username_not_null);
712            return false;
713          }
714
715          if (Utils.isEmpty(frm.elements['password'].value)) {
716            alert(password_not_null);
717            return false;
718          }
719
720          return true;
721        }
722
723        function checkSignupForm(frm) {
724          if (Utils.isEmpty(frm.elements['username'].value)) {
725            alert(username_not_null);
726            return false;
727          }
728
729          if (Utils.trim(frm.elements['username'].value).match(/^\s*$|^c:\\con\\con$|[%,\'\*\"\s\t\<\>\&\\]/))
730          {
731            alert(username_invalid);
732            return false;
733          }
734
735          if (Utils.isEmpty(frm.elements['email'].value)) {
736            alert(email_not_null);
737            return false;
738          }
739
740          if (!Utils.isEmail(frm.elements['email'].value)) {
741            alert(email_invalid);
742            return false;
743          }
744
745          if (Utils.isEmpty(frm.elements['password'].value)) {
746            alert(password_not_null);
747            return false;
748          }
749
750          if (frm.elements['password'].value.length < 6) {
751            alert(password_lt_six);
752            return false;
753          }
754
755          if (frm.elements['password'].value != frm.elements['confirm_password'].value) {
756            alert(password_not_same);
757            return false;
758          }
759          return true;
760        }
761        {/literal}
762        </script>
763        <!-- ?????????? -->
764        <div class="flowBox">
765        <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
766          <tr>
767            <td width="50%" valign="top" bgcolor="#ffffff">
768            <h6><span>?????</span></h6>
769            <form action="flow.php?step=login" method="post" name="loginForm" id="loginForm" onsubmit="return checkLoginForm(this)">
770                <table width="90%" border="0" cellpadding="8" cellspacing="1" bgcolor="#B0D8FF" class="table">
771                  <tr>
772                    <td bgcolor="#ffffff"><div align="right"><strong>{$lang.username}</strong></div></td>
773                    <td bgcolor="#ffffff"><input name="username" type="text" class="inputBg" id="username" /></td>
774                  </tr>
775                  <tr>
776                    <td bgcolor="#ffffff"><div align="right"><strong>{$lang.password}</strong></div></td>
777                    <td bgcolor="#ffffff"><input name="password" class="inputBg" type="password" /></td>
778                  </tr>
779                  <!-- ?????????{if $enabled_login_captcha} -->
780                  <tr>
781                    <td bgcolor="#ffffff"><div align="right"><strong>{$lang.comment_captcha}:</strong></div></td>
782                    <td bgcolor="#ffffff"><input type="text" size="8" name="captcha" class="inputBg" />
783                    <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>
784                  </tr>
785                  <!--{/if}-->
786                  <tr>
787                    <td bgcolor="#ffffff" colspan="2" align="center"><a href="user.php?act=get_password" class="f6">{$lang.forgot_password}</a></td>
788                  </tr>
789                  <tr>
790                    <td bgcolor="#ffffff" colspan="2"><div align="center">
791                        <input type="submit" class="bnt_blue" name="login" value="{$lang.forthwith_login}" />
792                        <!-- {if $anonymous_buy eq 1} ??????????? -->
793                        <input type="button" class="bnt_blue_2" value="{$lang.direct_shopping}" onclick="location.href='flow.php?step=consignee&amp;direct_shopping=1'" />
794                        <!-- {/if} -->
795                        <input name="act" type="hidden" value="signin" />
796                      </div></td>
797                  </tr>
798                </table>
799              </form>
800
801              </td>
802            <td valign="top" bgcolor="#ffffff">
803            <h6><span>?????</span></h6>
804            <form action="flow.php?step=login" method="post" name="formUser" id="registerForm" onsubmit="return checkSignupForm(this)">
805               <table width="98%" border="0" cellpadding="8" cellspacing="1" bgcolor="#B0D8FF" class="table">
806                  <tr>
807                    <td bgcolor="#ffffff" align="right" width="25%"><strong>{$lang.username}</strong></td>
808                    <td bgcolor="#ffffff"><input name="username" type="text" class="inputBg" id="username" onblur="is_registered(this.value);" /><br />
809		    <span id="username_notice" style="color:#FF0000"></span></td>
810                  </tr>
811                  <tr>
812                    <td bgcolor="#ffffff" align="right"><strong>{$lang.email_address}</strong></td>
813                    <td bgcolor="#ffffff"><input name="email" type="text" class="inputBg" id="email" onblur="checkEmail(this.value);" /><br />
814		    <span id="email_notice" style="color:#FF0000"></span></td>
815                  </tr>
816                  <tr>
817                    <td bgcolor="#ffffff" align="right"><strong>{$lang.password}</strong></td>
818                    <td bgcolor="#ffffff"><input name="password" class="inputBg" type="password" id="password1" onblur="check_password(this.value);" onkeyup="checkIntensity(this.value)" /><br />
819		    <span style="color:#FF0000" id="password_notice"></span></td>
820                  </tr>
821                  <tr>
822                    <td bgcolor="#ffffff" align="right"><strong>{$lang.confirm_password}</strong></td>
823                    <td bgcolor="#ffffff"><input name="confirm_password" class="inputBg" type="password" id="confirm_password" onblur="check_conform_password(this.value);" /><br />
824		    <span style="color:#FF0000" id="conform_password_notice"></span></td>
825                  </tr>
826                  <!-- ?????????{if $enabled_register_captcha} -->
827                  <tr>
828                    <td bgcolor="#ffffff" align="right"><strong>{$lang.comment_captcha}:</strong></td>
829                    <td bgcolor="#ffffff"><input type="text" size="8" name="captcha" class="inputBg" />
830                    <img src="captcha.php?{$rand}" alt="captcha" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha.php?'+Math.random()" /> </td>
831                  </tr>
832                  <!--{/if}-->
833                  <tr>
834                    <td colspan="2" bgcolor="#ffffff" align="center">
835                        <input type="submit" name="Submit" class="bnt_blue_1" value="{$lang.forthwith_register}" />
836                        <input name="act" type="hidden" value="signup" />
837                    </td>
838                  </tr>
839                </table>
840              </form>
841              </td>
842          </tr>
843          {if $need_rechoose_gift}
844          <tr>
845            <td colspan="2" align="center" style="border-top:1px #ccc solid; padding:5px; color:red;">{$lang.gift_remainder}</td>
846          </tr>
847          {/if}
848        </table>
849        </div>
850        <!-- ?????????? -->
851        <!-- {/if} -->
852
853
854
855
856</div>
857<div class="blank5"></div>
858<!--??-->
859<div class="block">
860  <div class="box">
861   <div class="helpTitBg clearfix">
862    <!-- #BeginLibraryItem "/library/help.lbi" --><!-- #EndLibraryItem -->
863   </div>
864  </div>
865</div>
866<div class="blank"></div>
867<!--??-->
868<!--???? start-->
869<!--{if $img_links  or $txt_links }-->
870<div id="bottomNav" class="box">
871 <div class="box_1">
872  <div class="links clearfix">
873    <!--???????????{foreach from=$img_links item=link}-->
874    <a href="{$link.url}" target="_blank" title="{$link.name}"><img src="{$link.logo}" alt="{$link.name}" border="0" /></a>
875    <!--???????????{/foreach}-->
876    <!-- {if $txt_links} -->
877    <!--???????????{foreach from=$txt_links item=link}-->
878    [<a href="{$link.url}" target="_blank" title="{$link.name}">{$link.name}</a>]
879    <!--???????????{/foreach}-->
880    <!-- {/if} -->
881  </div>
882 </div>
883</div>
884<!--{/if}-->
885<!--???? end-->
886<div class="blank"></div>
887<!-- #BeginLibraryItem "/library/page_footer.lbi" --><!-- #EndLibraryItem -->
888</body>
889<script type="text/javascript">
890var process_request = "{$lang.process_request}";
891{foreach from=$lang.passport_js item=item key=key}
892var {$key} = "{$item}";
893{/foreach}
894var username_exist = "{$lang.username_exist}";
895var compare_no_goods = "{$lang.compare_no_goods}";
896var btn_buy = "{$lang.btn_buy}";
897var is_cancel = "{$lang.is_cancel}";
898var select_spe = "{$lang.select_spe}";
899</script>
900</html>