PageRenderTime 54ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 1ms

/temp/compiled/flow.dwt.php

https://bitbucket.org/luxi78/fengyu
PHP | 915 lines | 878 code | 35 blank | 2 comment | 148 complexity | b9e664f936a3a0d4e3d754bcda973085 MD5 | raw file
Possible License(s): LGPL-2.1

Large files files are truncated, but you can click here to view the full 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 name="Generator" content="ECSHOP v2.7.0" />
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
  7. <meta name="Description" content="<?php echo $this->_var['description']; ?>" />
  8. <title><?php echo $this->_var['page_title']; ?></title>
  9. <link rel="shortcut icon" href="favicon.ico" />
  10. <link rel="icon" href="animated_favicon.gif" type="image/gif" />
  11. <link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />
  12. <?php echo $this->smarty_insert_scripts(array('files'=>'common.js,shopping_flow.js')); ?>
  13. </head>
  14. <body>
  15. <?php echo $this->fetch('library/page_header.lbi'); ?>
  16. <?php echo $this->fetch('library/search_form.lbi'); ?>
  17. <?php echo $this->fetch('library/ur_here.lbi'); ?>
  18. <div class="block">
  19. <?php if ($this->_var['step'] == "cart"): ?>
  20. <?php echo $this->smarty_insert_scripts(array('files'=>'showdiv.js')); ?>
  21. <script type="text/javascript">
  22. <?php $_from = $this->_var['lang']['password_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
  23. foreach ($_from AS $this->_var['key'] => $this->_var['item']):
  24. ?>
  25. var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
  26. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  27. </script>
  28. <div class="General_Title clearfix">
  29. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['goods_list']; ?></p>&nbsp;</div>
  30. </div>
  31. <div class="clearfix groupList flowBox">
  32. <form id="formCart" name="formCart" method="post" action="flow.php">
  33. <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  34. <tr>
  35. <th bgcolor="#ffffff"><?php echo $this->_var['lang']['goods_name']; ?></th>
  36. <?php if ($this->_var['show_goods_attribute'] == 1): ?>
  37. <th bgcolor="#ffffff"><?php echo $this->_var['lang']['goods_attr']; ?></th>
  38. <?php endif; ?>
  39. <?php if ($this->_var['show_marketprice']): ?>
  40. <th bgcolor="#ffffff"><?php echo $this->_var['lang']['market_prices']; ?></th>
  41. <?php endif; ?>
  42. <th bgcolor="#ffffff"><?php echo $this->_var['lang']['shop_prices']; ?></th>
  43. <th bgcolor="#ffffff"><?php echo $this->_var['lang']['number']; ?></th>
  44. <th bgcolor="#ffffff"><?php echo $this->_var['lang']['subtotal']; ?></th>
  45. <th bgcolor="#ffffff"><?php echo $this->_var['lang']['handle']; ?></th>
  46. </tr>
  47. <?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
  48. foreach ($_from AS $this->_var['goods']):
  49. ?>
  50. <tr>
  51. <td bgcolor="#ffffff" align="center">
  52. <?php if ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['extension_code'] != 'package_buy'): ?>
  53. <?php if ($this->_var['show_goods_thumb'] == 1): ?>
  54. <a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank" class="f6"><?php echo $this->_var['goods']['goods_name']; ?></a>
  55. <?php elseif ($this->_var['show_goods_thumb'] == 2): ?>
  56. <a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" border="0" title="<?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?>" /></a>
  57. <?php else: ?>
  58. <a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" border="0" title="<?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?>" /></a><br />
  59. <a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank" class="f6"><?php echo $this->_var['goods']['goods_name']; ?></a>
  60. <?php endif; ?>
  61. <?php if ($this->_var['goods']['parent_id'] > 0): ?>
  62. <span style="color:#FF0000">?<?php echo $this->_var['lang']['accessories']; ?>?</span>
  63. <?php endif; ?>
  64. <?php if ($this->_var['goods']['is_gift'] > 0): ?>
  65. <span style="color:#FF0000">?<?php echo $this->_var['lang']['largess']; ?>?</span>
  66. <?php endif; ?>
  67. <?php elseif ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['extension_code'] == 'package_buy'): ?>
  68. <a href="javascript:void(0)" onclick="setSuitShow(<?php echo $this->_var['goods']['goods_id']; ?>)" class="f6"><?php echo $this->_var['goods']['goods_name']; ?><span style="color:#FF0000;">?<?php echo $this->_var['lang']['remark_package']; ?>?</span></a>
  69. <div id="suit_<?php echo $this->_var['goods']['goods_id']; ?>" style="display:none">
  70. <?php $_from = $this->_var['goods']['package_goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'package_goods_list');if (count($_from)):
  71. foreach ($_from AS $this->_var['package_goods_list']):
  72. ?>
  73. <a href="goods.php?id=<?php echo $this->_var['package_goods_list']['goods_id']; ?>" target="_blank" class="f6"><?php echo $this->_var['package_goods_list']['goods_name']; ?></a><br />
  74. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  75. </div>
  76. <?php else: ?>
  77. <?php echo $this->_var['goods']['goods_name']; ?>
  78. <?php endif; ?>
  79. </td>
  80. <?php if ($this->_var['show_goods_attribute'] == 1): ?>
  81. <td bgcolor="#ffffff"><?php echo nl2br($this->_var['goods']['goods_attr']); ?></td>
  82. <?php endif; ?>
  83. <?php if ($this->_var['show_marketprice']): ?>
  84. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['goods']['market_price']; ?></td>
  85. <?php endif; ?>
  86. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['goods']['goods_price']; ?></td>
  87. <td align="right" bgcolor="#ffffff">
  88. <?php if ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['is_gift'] == 0 && $this->_var['goods']['parent_id'] == 0): ?>
  89. <input type="text" name="goods_number[<?php echo $this->_var['goods']['rec_id']; ?>]" id="goods_number_<?php echo $this->_var['goods']['rec_id']; ?>" value="<?php echo $this->_var['goods']['goods_number']; ?>" size="4" class="inputBg" style="text-align:center " onkeydown="showdiv(this)"/>
  90. <?php else: ?>
  91. <?php echo $this->_var['goods']['goods_number']; ?>
  92. <?php endif; ?>
  93. </td>
  94. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['goods']['subtotal']; ?></td>
  95. <td align="center" bgcolor="#ffffff">
  96. <a href="javascript:if (confirm('<?php echo $this->_var['lang']['drop_goods_confirm']; ?>')) location.href='flow.php?step=drop_goods&amp;id=<?php echo $this->_var['goods']['rec_id']; ?>'; " class="f6"><?php echo $this->_var['lang']['drop']; ?></a>
  97. <?php if ($_SESSION['user_id'] > 0): ?>
  98. <a href="javascript:if (confirm('<?php echo $this->_var['lang']['drop_goods_confirm']; ?>')) location.href='flow.php?step=drop_to_collect&amp;id=<?php echo $this->_var['goods']['rec_id']; ?>'; " class="f6"><?php echo $this->_var['lang']['drop_to_collect']; ?></a>
  99. <?php endif; ?> </td>
  100. </tr>
  101. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  102. </table>
  103. <table width="99%" align="center" style="margin-top:5px;" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  104. <tr>
  105. <td bgcolor="#ffffff">
  106. <?php if ($this->_var['discount'] > 0): ?><?php echo $this->_var['your_discount']; ?><br /><?php endif; ?>
  107. <?php echo $this->_var['shopping_money']; ?><?php if ($this->_var['show_marketprice']): ?>?<?php echo $this->_var['market_price_desc']; ?><?php endif; ?>
  108. </td>
  109. <td align="right" bgcolor="#ffffff">
  110. <input type="button" value="<?php echo $this->_var['lang']['clear_cart']; ?>" class="bnt_number6" onclick="location.href='flow.php?step=clear'" />
  111. <input name="submit" type="submit" class="bnt_number6" value="<?php echo $this->_var['lang']['update_cart']; ?>" />
  112. </td>
  113. </tr>
  114. </table>
  115. <input type="hidden" name="step" value="update_cart" />
  116. </form>
  117. <table width="99%" align="center" border="0" cellpadding="5" cellspacing="0" bgcolor="#dddddd">
  118. <tr>
  119. <td bgcolor="#ffffff"><a href="./"><img src="themes/clothing/images/continue.gif" alt="continue" /></a></td>
  120. <td bgcolor="#ffffff" align="right"><a href="flow.php?step=checkout"><img src="themes/clothing/images/checkout.gif" alt="checkout" /></a></td>
  121. </tr>
  122. </table>
  123. <?php if ($_SESSION['user_id'] > 0): ?>
  124. <?php echo $this->smarty_insert_scripts(array('files'=>'transport.js')); ?>
  125. <script type="text/javascript" charset="utf-8">
  126. function collect_to_flow(goodsId)
  127. {
  128. var goods = new Object();
  129. var spec_arr = new Array();
  130. var fittings_arr = new Array();
  131. var number = 1;
  132. goods.spec = spec_arr;
  133. goods.goods_id = goodsId;
  134. goods.number = number;
  135. goods.parent = 0;
  136. Ajax.call('flow.php?step=add_to_cart', 'goods=' + goods.toJSONString(), collect_to_flow_response, 'POST', 'JSON');
  137. }
  138. function collect_to_flow_response(result)
  139. {
  140. if (result.error > 0)
  141. {
  142. // ???????????
  143. if (result.error == 2)
  144. {
  145. if (confirm(result.message))
  146. {
  147. location.href = 'user.php?act=add_booking&id=' + result.goods_id;
  148. }
  149. }
  150. else if (result.error == 6)
  151. {
  152. if (confirm(result.message))
  153. {
  154. location.href = 'goods.php?id=' + result.goods_id;
  155. }
  156. }
  157. else
  158. {
  159. alert(result.message);
  160. }
  161. }
  162. else
  163. {
  164. location.href = 'flow.php';
  165. }
  166. }
  167. </script>
  168. </div>
  169. <?php endif; ?>
  170. <?php if ($this->_var['collection_goods']): ?>
  171. <div class="General_Title clearfix">
  172. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['label_collection']; ?></p>&nbsp;</div>
  173. </div>
  174. <div class="clearfix groupList flowBox">
  175. <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  176. <?php $_from = $this->_var['collection_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
  177. foreach ($_from AS $this->_var['goods']):
  178. ?>
  179. <tr>
  180. <td bgcolor="#ffffff"><a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" class="f6"><?php echo $this->_var['goods']['goods_name']; ?></a></td>
  181. <td bgcolor="#ffffff" align="center" width="100"><a href="javascript:addToCart(<?php echo $this->_var['goods']['goods_id']; ?>)" class="f6"><?php echo $this->_var['lang']['collect_to_flow']; ?></a></td>
  182. </tr>
  183. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  184. </table>
  185. </div> <?php endif; ?>
  186. <?php endif; ?>
  187. <?php if ($this->_var['fittings_list']): ?>
  188. <?php echo $this->smarty_insert_scripts(array('files'=>'transport.js')); ?>
  189. <script type="text/javascript" charset="utf-8">
  190. function fittings_to_flow(goodsId,parentId)
  191. {
  192. var goods = new Object();
  193. var spec_arr = new Array();
  194. var number = 1;
  195. goods.spec = spec_arr;
  196. goods.goods_id = goodsId;
  197. goods.number = number;
  198. goods.parent = parentId;
  199. Ajax.call('flow.php?step=add_to_cart', 'goods=' + goods.toJSONString(), fittings_to_flow_response, 'POST', 'JSON');
  200. }
  201. function fittings_to_flow_response(result)
  202. {
  203. if (result.error > 0)
  204. {
  205. // ???????????
  206. if (result.error == 2)
  207. {
  208. if (confirm(result.message))
  209. {
  210. location.href = 'user.php?act=add_booking&id=' + result.goods_id;
  211. }
  212. }
  213. else if (result.error == 6)
  214. {
  215. if (confirm(result.message))
  216. {
  217. location.href = 'goods.php?id=' + result.goods_id;
  218. }
  219. }
  220. else
  221. {
  222. alert(result.message);
  223. }
  224. }
  225. else
  226. {
  227. location.href = 'flow.php';
  228. }
  229. }
  230. </script>
  231. <div class="General_Title clearfix">
  232. <div class="TitleBoxcon" style="overflow:hidden; zoom:1;">
  233. <p><?php echo $this->_var['lang']['goods_fittings']; ?></p>
  234. </div>
  235. </div>
  236. <div class="clearfix groupList flowBox NewHot">
  237. <form action="flow.php" method="post">
  238. <div class="goodsList clearfix">
  239. <?php $_from = $this->_var['fittings_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'fittings');if (count($_from)):
  240. foreach ($_from AS $this->_var['fittings']):
  241. ?>
  242. <div class="goodsBox" style="margin:5px 12px 0;">
  243. <a href="<?php echo $this->_var['fittings']['url']; ?>" target="_blank"><img src="<?php echo $this->_var['fittings']['goods_thumb']; ?>" alt="<?php echo htmlspecialchars($this->_var['fittings']['name']); ?>" class="B_blue" /></a><br />
  244. <a href="<?php echo $this->_var['fittings']['url']; ?>" target="_blank" title="<?php echo htmlspecialchars($this->_var['fittings']['goods_name']); ?>" class="f6"><?php echo htmlspecialchars($this->_var['fittings']['short_name']); ?></a><br />
  245. <?php echo $this->_var['lang']['fittings_price']; ?><font class="f1"><?php echo $this->_var['fittings']['fittings_price']; ?></font><br />
  246. <?php echo $this->_var['lang']['parent_name']; ?><?php echo $this->_var['fittings']['parent_short_name']; ?><br />
  247. <a href="javascript:fittings_to_flow(<?php echo $this->_var['fittings']['goods_id']; ?>,<?php echo $this->_var['fittings']['parent_id']; ?>)" style="color:#07A8CF;"><?php echo $this->_var['lang']['collect_to_flow']; ?></a>
  248. </div>
  249. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  250. </div>
  251. </form>
  252. </div>
  253. <?php endif; ?>
  254. <?php if ($this->_var['favourable_list']): ?>
  255. <div class="General_Title clearfix">
  256. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['activity_list']; ?></p>&nbsp;</div>
  257. </div>
  258. <div class="clearfix groupList flowBox">
  259. <?php $_from = $this->_var['favourable_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'favourable');if (count($_from)):
  260. foreach ($_from AS $this->_var['favourable']):
  261. ?>
  262. <form action="flow.php" method="post">
  263. <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  264. <tr>
  265. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['favourable_name']; ?></td>
  266. <td bgcolor="#ffffff"><strong><?php echo $this->_var['favourable']['act_name']; ?></strong></td>
  267. </tr>
  268. <tr>
  269. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['favourable_period']; ?></td>
  270. <td bgcolor="#ffffff"><?php echo $this->_var['favourable']['start_time']; ?> --- <?php echo $this->_var['favourable']['end_time']; ?></td>
  271. </tr>
  272. <tr>
  273. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['favourable_range']; ?></td>
  274. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['far_ext'][$this->_var['favourable']['act_range']]; ?><br />
  275. <?php echo $this->_var['favourable']['act_range_desc']; ?></td>
  276. </tr>
  277. <tr>
  278. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['favourable_amount']; ?></td>
  279. <td bgcolor="#ffffff"><?php echo $this->_var['favourable']['formated_min_amount']; ?> --- <?php echo $this->_var['favourable']['formated_max_amount']; ?></td>
  280. </tr>
  281. <tr>
  282. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['favourable_type']; ?></td>
  283. <td bgcolor="#ffffff">
  284. <span class="STYLE1"><?php echo $this->_var['favourable']['act_type_desc']; ?></span>
  285. <?php if ($this->_var['favourable']['act_type'] == 0): ?>
  286. <?php $_from = $this->_var['favourable']['gift']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'gift');if (count($_from)):
  287. foreach ($_from AS $this->_var['gift']):
  288. ?><br />
  289. <input type="checkbox" value="<?php echo $this->_var['gift']['id']; ?>" name="gift[]" />
  290. <a href="goods.php?id=<?php echo $this->_var['gift']['id']; ?>" target="_blank" class="f6"><?php echo $this->_var['gift']['name']; ?></a> [<?php echo $this->_var['gift']['formated_price']; ?>]
  291. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  292. <?php endif; ?> </td>
  293. </tr>
  294. <?php if ($this->_var['favourable']['available']): ?>
  295. <tr>
  296. <td align="right" bgcolor="#ffffff">&nbsp;</td>
  297. <td align="center" bgcolor="#ffffff"><input type="image" src="themes/clothing/images/bnt_cat.gif" alt="Add to cart" border="0" /></td>
  298. </tr>
  299. <?php endif; ?>
  300. </table>
  301. <input type="hidden" name="act_id" value="<?php echo $this->_var['favourable']['act_id']; ?>" />
  302. <input type="hidden" name="step" value="add_favourable" />
  303. </form>
  304. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  305. </div>
  306. <?php endif; ?>
  307. <?php if ($this->_var['step'] == "consignee"): ?>
  308. <?php echo $this->smarty_insert_scripts(array('files'=>'region.js,utils.js')); ?>
  309. <script type="text/javascript">
  310. region.isAdmin = false;
  311. <?php $_from = $this->_var['lang']['flow_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
  312. foreach ($_from AS $this->_var['key'] => $this->_var['item']):
  313. ?>
  314. var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
  315. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  316. onload = function() {
  317. if (!document.all)
  318. {
  319. document.forms['theForm'].reset();
  320. }
  321. }
  322. </script>
  323. <?php $_from = $this->_var['consignee_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('sn', 'consignee');if (count($_from)):
  324. foreach ($_from AS $this->_var['sn'] => $this->_var['consignee']):
  325. ?>
  326. <form action="flow.php" method="post" name="theForm" id="theForm" onsubmit="return checkConsignee(this)">
  327. <?php echo $this->fetch('library/consignee.lbi'); ?>
  328. </form>
  329. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  330. <?php endif; ?>
  331. <?php if ($this->_var['step'] == "checkout"): ?>
  332. <form action="flow.php" method="post" name="theForm" id="theForm" onsubmit="return checkOrderForm(this)">
  333. <script type="text/javascript">
  334. var flow_no_payment = "<?php echo $this->_var['lang']['flow_no_payment']; ?>";
  335. var flow_no_shipping = "<?php echo $this->_var['lang']['flow_no_shipping']; ?>";
  336. </script>
  337. <div class="General_Title clearfix">
  338. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['goods_list']; ?></p><?php if ($this->_var['allow_edit_cart']): ?><a href="flow.php"><font class="price"><?php echo $this->_var['lang']['modify']; ?></font></a><?php endif; ?></div>
  339. </div>
  340. <div class="clearfix groupList flowBox">
  341. <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  342. <tr>
  343. <th bgcolor="#ffffff"><?php echo $this->_var['lang']['goods_name']; ?></th>
  344. <th bgcolor="#ffffff"><?php echo $this->_var['lang']['goods_attr']; ?></th>
  345. <?php if ($this->_var['show_marketprice']): ?>
  346. <th bgcolor="#ffffff"><?php echo $this->_var['lang']['market_prices']; ?></th>
  347. <?php endif; ?>
  348. <th bgcolor="#ffffff"><?php if ($this->_var['gb_deposit']): ?><?php echo $this->_var['lang']['deposit']; ?><?php else: ?><?php echo $this->_var['lang']['shop_prices']; ?><?php endif; ?></th>
  349. <th bgcolor="#ffffff"><?php echo $this->_var['lang']['number']; ?></th>
  350. <th bgcolor="#ffffff"><?php echo $this->_var['lang']['subtotal']; ?></th>
  351. </tr>
  352. <?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
  353. foreach ($_from AS $this->_var['goods']):
  354. ?>
  355. <tr>
  356. <td bgcolor="#ffffff">
  357. <?php if ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['extension_code'] == 'package_buy'): ?>
  358. <a href="javascript:void(0)" onclick="setSuitShow(<?php echo $this->_var['goods']['goods_id']; ?>)" class="f6"><?php echo $this->_var['goods']['goods_name']; ?><span style="color:#FF0000;">?<?php echo $this->_var['lang']['remark_package']; ?>?</span></a>
  359. <div id="suit_<?php echo $this->_var['goods']['goods_id']; ?>" style="display:none">
  360. <?php $_from = $this->_var['goods']['package_goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'package_goods_list');if (count($_from)):
  361. foreach ($_from AS $this->_var['package_goods_list']):
  362. ?>
  363. <a href="goods.php?id=<?php echo $this->_var['package_goods_list']['goods_id']; ?>" target="_blank" class="f6"><?php echo $this->_var['package_goods_list']['goods_name']; ?></a><br />
  364. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  365. </div>
  366. <?php else: ?>
  367. <a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank" class="f6"><?php echo $this->_var['goods']['goods_name']; ?></a>
  368. <?php if ($this->_var['goods']['parent_id'] > 0): ?>
  369. <span style="color:#FF0000">?<?php echo $this->_var['lang']['accessories']; ?>?</span>
  370. <?php elseif ($this->_var['goods']['is_gift']): ?>
  371. <span style="color:#FF0000">?<?php echo $this->_var['lang']['largess']; ?>?</span>
  372. <?php endif; ?>
  373. <?php endif; ?>
  374. </td>
  375. <td bgcolor="#ffffff"><?php echo nl2br($this->_var['goods']['goods_attr']); ?></td>
  376. <?php if ($this->_var['show_marketprice']): ?>
  377. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['goods']['formated_market_price']; ?></td>
  378. <?php endif; ?>
  379. <td bgcolor="#ffffff" align="right"><?php echo $this->_var['goods']['formated_goods_price']; ?></td>
  380. <td bgcolor="#ffffff" align="right"><?php echo $this->_var['goods']['goods_number']; ?></td>
  381. <td bgcolor="#ffffff" align="right"><?php echo $this->_var['goods']['formated_subtotal']; ?></td>
  382. </tr>
  383. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  384. <?php if (! $this->_var['gb_deposit']): ?>
  385. <tr>
  386. <td bgcolor="#ffffff" colspan="7">
  387. <?php if ($this->_var['discount'] > 0): ?><?php echo $this->_var['your_discount']; ?><br /><?php endif; ?>
  388. <?php echo $this->_var['shopping_money']; ?><?php if ($this->_var['show_marketprice']): ?>?<?php echo $this->_var['market_price_desc']; ?><?php endif; ?>
  389. </td>
  390. </tr>
  391. <?php endif; ?>
  392. </table>
  393. </div>
  394. <div class="General_Title clearfix">
  395. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['consignee_info']; ?></p><a href="flow.php?step=consignee"><font class="price"><?php echo $this->_var['lang']['modify']; ?></font></a></div>
  396. </div>
  397. <div class="clearfix groupList flowBox">
  398. <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  399. <tr>
  400. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['consignee_name']; ?>:</td>
  401. <td bgcolor="#ffffff"><?php echo htmlspecialchars($this->_var['consignee']['consignee']); ?></td>
  402. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['email_address']; ?>:</td>
  403. <td bgcolor="#ffffff"><?php echo htmlspecialchars($this->_var['consignee']['email']); ?></td>
  404. </tr>
  405. <?php if ($this->_var['total']['real_goods_count'] > 0): ?>
  406. <tr>
  407. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['detailed_address']; ?>:</td>
  408. <td bgcolor="#ffffff"><?php echo htmlspecialchars($this->_var['consignee']['address']); ?> </td>
  409. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['postalcode']; ?>:</td>
  410. <td bgcolor="#ffffff"><?php echo htmlspecialchars($this->_var['consignee']['zipcode']); ?></td>
  411. </tr>
  412. <?php endif; ?>
  413. <tr>
  414. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['phone']; ?>:</td>
  415. <td bgcolor="#ffffff"><?php echo $this->_var['consignee']['tel']; ?> </td>
  416. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['backup_phone']; ?>:</td>
  417. <td bgcolor="#ffffff"><?php echo htmlspecialchars($this->_var['consignee']['mobile']); ?></td>
  418. </tr>
  419. <?php if ($this->_var['total']['real_goods_count'] > 0): ?>
  420. <tr>
  421. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['sign_building']; ?>:</td>
  422. <td bgcolor="#ffffff"><?php echo htmlspecialchars($this->_var['consignee']['sign_building']); ?> </td>
  423. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['deliver_goods_time']; ?>:</td>
  424. <td bgcolor="#ffffff"><?php echo htmlspecialchars($this->_var['consignee']['best_time']); ?></td>
  425. </tr>
  426. <?php endif; ?>
  427. </table>
  428. </div>
  429. <?php if ($this->_var['total']['real_goods_count'] != 0): ?>
  430. <div class="General_Title clearfix">
  431. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['shipping_method']; ?></p>&nbsp;</div>
  432. </div>
  433. <div class="clearfix groupList flowBox">
  434. <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="shippingTable">
  435. <tr>
  436. <th bgcolor="#ffffff" width="5%">&nbsp;</th>
  437. <th bgcolor="#ffffff" width="25%"><?php echo $this->_var['lang']['name']; ?></th>
  438. <th bgcolor="#ffffff"><?php echo $this->_var['lang']['describe']; ?></th>
  439. <th bgcolor="#ffffff" width="15%"><?php echo $this->_var['lang']['fee']; ?></th>
  440. <th bgcolor="#ffffff" width="15%"><?php echo $this->_var['lang']['free_money']; ?></th>
  441. <th bgcolor="#ffffff" width="15%"><?php echo $this->_var['lang']['insure_fee']; ?></th>
  442. </tr>
  443. <?php $_from = $this->_var['shipping_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'shipping');if (count($_from)):
  444. foreach ($_from AS $this->_var['shipping']):
  445. ?>
  446. <tr>
  447. <td bgcolor="#ffffff" valign="top"><input name="shipping" type="radio" value="<?php echo $this->_var['shipping']['shipping_id']; ?>" <?php if ($this->_var['order']['shipping_id'] == $this->_var['shipping']['shipping_id']): ?>checked="true"<?php endif; ?> supportCod="<?php echo $this->_var['shipping']['support_cod']; ?>" insure="<?php echo $this->_var['shipping']['insure']; ?>" onclick="selectShipping(this)" />
  448. </td>
  449. <td bgcolor="#ffffff" valign="top"><strong><?php echo $this->_var['shipping']['shipping_name']; ?></strong></td>
  450. <td bgcolor="#ffffff" valign="top"><?php echo $this->_var['shipping']['shipping_desc']; ?></td>
  451. <td bgcolor="#ffffff" align="right" valign="top"><?php echo $this->_var['shipping']['format_shipping_fee']; ?></td>
  452. <td bgcolor="#ffffff" align="right" valign="top"><?php echo $this->_var['shipping']['free_money']; ?></td>
  453. <td bgcolor="#ffffff" align="right" valign="top"><?php if ($this->_var['shipping']['insure'] != 0): ?><?php echo $this->_var['shipping']['insure_formated']; ?><?php else: ?><?php echo $this->_var['lang']['not_support_insure']; ?><?php endif; ?></td>
  454. </tr>
  455. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  456. <tr>
  457. <td colspan="6" bgcolor="#ffffff" align="right"><label for="ECS_NEEDINSURE">
  458. <input name="need_insure" id="ECS_NEEDINSURE" type="checkbox" onclick="selectInsure(this.checked)" value="1" <?php if ($this->_var['order']['need_insure']): ?>checked="true"<?php endif; ?> <?php if ($this->_var['insure_disabled']): ?>disabled="true"<?php endif; ?> />
  459. <?php echo $this->_var['lang']['need_insure']; ?> </label></td>
  460. </tr>
  461. </table>
  462. </div>
  463. <?php else: ?>
  464. <input name = "shipping" type="radio" value = "-1" checked="checked" style="display:none"/>
  465. <?php endif; ?>
  466. <?php if ($this->_var['is_exchange_goods'] != 1 || $this->_var['total']['real_goods_count'] != 0): ?>
  467. <div class="General_Title clearfix">
  468. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['payment_method']; ?></p>&nbsp;</div>
  469. </div>
  470. <div class="clearfix groupList flowBox">
  471. <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="paymentTable">
  472. <tr>
  473. <th width="5%" bgcolor="#ffffff">&nbsp;</th>
  474. <th width="20%" bgcolor="#ffffff"><?php echo $this->_var['lang']['name']; ?></th>
  475. <th bgcolor="#ffffff"><?php echo $this->_var['lang']['describe']; ?></th>
  476. <th bgcolor="#ffffff" width="15%"><?php echo $this->_var['lang']['pay_fee']; ?></th>
  477. </tr>
  478. <?php $_from = $this->_var['payment_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'payment');if (count($_from)):
  479. foreach ($_from AS $this->_var['payment']):
  480. ?>
  481. <tr>
  482. <td valign="top" bgcolor="#ffffff"><input type="radio" name="payment" value="<?php echo $this->_var['payment']['pay_id']; ?>" <?php if ($this->_var['order']['pay_id'] == $this->_var['payment']['pay_id']): ?>checked<?php endif; ?> isCod="<?php echo $this->_var['payment']['is_cod']; ?>" onclick="selectPayment(this)" <?php if ($this->_var['cod_disabled'] && $this->_var['payment']['is_cod'] == "1"): ?>disabled="true"<?php endif; ?>/></td>
  483. <td valign="top" bgcolor="#ffffff"><strong><?php echo $this->_var['payment']['pay_name']; ?></strong></td>
  484. <td valign="top" bgcolor="#ffffff"><?php echo $this->_var['payment']['pay_desc']; ?></td>
  485. <td align="right" bgcolor="#ffffff" valign="top"><?php echo $this->_var['payment']['format_pay_fee']; ?></td>
  486. </tr>
  487. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  488. </table>
  489. </div>
  490. <?php else: ?>
  491. <input name = "payment" type="radio" value = "-1" checked="checked" style="display:none"/>
  492. <?php endif; ?>
  493. <?php if ($this->_var['pack_list']): ?>
  494. <div class="General_Title clearfix">
  495. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['goods_package']; ?></p>&nbsp;</div>
  496. </div>
  497. <div class="clearfix groupList flowBox">
  498. <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="packTable">
  499. <tr>
  500. <th width="5%" scope="col" bgcolor="#ffffff">&nbsp;</th>
  501. <th width="35%" scope="col" bgcolor="#ffffff"><?php echo $this->_var['lang']['name']; ?></th>
  502. <th width="22%" scope="col" bgcolor="#ffffff"><?php echo $this->_var['lang']['price']; ?></th>
  503. <th width="22%" scope="col" bgcolor="#ffffff"><?php echo $this->_var['lang']['free_money']; ?></th>
  504. <th scope="col" bgcolor="#ffffff"><?php echo $this->_var['lang']['img']; ?></th>
  505. </tr>
  506. <tr>
  507. <td valign="top" bgcolor="#ffffff"><input type="radio" name="pack" value="0" <?php if ($this->_var['order']['pack_id'] == 0): ?>checked="true"<?php endif; ?> onclick="selectPack(this)" /></td>
  508. <td valign="top" bgcolor="#ffffff"><strong><?php echo $this->_var['lang']['no_pack']; ?></strong></td>
  509. <td valign="top" bgcolor="#ffffff">&nbsp;</td>
  510. <td valign="top" bgcolor="#ffffff">&nbsp;</td>
  511. <td valign="top" bgcolor="#ffffff">&nbsp;</td>
  512. </tr>
  513. <?php $_from = $this->_var['pack_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'pack');if (count($_from)):
  514. foreach ($_from AS $this->_var['pack']):
  515. ?>
  516. <tr>
  517. <td valign="top" bgcolor="#ffffff"><input type="radio" name="pack" value="<?php echo $this->_var['pack']['pack_id']; ?>" <?php if ($this->_var['order']['pack_id'] == $this->_var['pack']['pack_id']): ?>checked="true"<?php endif; ?> onclick="selectPack(this)" />
  518. </td>
  519. <td valign="top" bgcolor="#ffffff"><strong><?php echo $this->_var['pack']['pack_name']; ?></strong></td>
  520. <td valign="top" bgcolor="#ffffff" align="right"><?php echo $this->_var['pack']['format_pack_fee']; ?></td>
  521. <td valign="top" bgcolor="#ffffff" align="right"><?php echo $this->_var['pack']['format_free_money']; ?></td>
  522. <td valign="top" bgcolor="#ffffff" align="center">
  523. <?php if ($this->_var['pack']['pack_img']): ?>
  524. <a href="data/packimg/<?php echo $this->_var['pack']['pack_img']; ?>" target="_blank" class="f6"><?php echo $this->_var['lang']['view']; ?></a>
  525. <?php else: ?>
  526. <?php echo $this->_var['lang']['no']; ?>
  527. <?php endif; ?>
  528. </td>
  529. </tr>
  530. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  531. </table>
  532. </div>
  533. <?php endif; ?>
  534. <?php if ($this->_var['card_list']): ?>
  535. <div class="General_Title clearfix">
  536. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['goods_card']; ?></p>&nbsp;</div>
  537. </div>
  538. <div class="clearfix groupList flowBox">
  539. <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="cardTable">
  540. <tr>
  541. <th bgcolor="#ffffff" width="5%" scope="col">&nbsp;</th>
  542. <th bgcolor="#ffffff" width="35%" scope="col"><?php echo $this->_var['lang']['name']; ?></th>
  543. <th bgcolor="#ffffff" width="22%" scope="col"><?php echo $this->_var['lang']['price']; ?></th>
  544. <th bgcolor="#ffffff" width="22%" scope="col"><?php echo $this->_var['lang']['free_money']; ?></th>
  545. <th bgcolor="#ffffff" scope="col"><?php echo $this->_var['lang']['img']; ?></th>
  546. </tr>
  547. <tr>
  548. <td bgcolor="#ffffff" valign="top"><input type="radio" name="card" value="0" <?php if ($this->_var['order']['card_id'] == 0): ?>checked="true"<?php endif; ?> onclick="selectCard(this)" /></td>
  549. <td bgcolor="#ffffff" valign="top"><strong><?php echo $this->_var['lang']['no_card']; ?></strong></td>
  550. <td bgcolor="#ffffff" valign="top">&nbsp;</td>
  551. <td bgcolor="#ffffff" valign="top">&nbsp;</td>
  552. <td bgcolor="#ffffff" valign="top">&nbsp;</td>
  553. </tr>
  554. <?php $_from = $this->_var['card_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'card');if (count($_from)):
  555. foreach ($_from AS $this->_var['card']):
  556. ?>
  557. <tr>
  558. <td valign="top" bgcolor="#ffffff"><input type="radio" name="card" value="<?php echo $this->_var['card']['card_id']; ?>" <?php if ($this->_var['order']['card_id'] == $this->_var['card']['card_id']): ?>checked="true"<?php endif; ?> onclick="selectCard(this)" />
  559. </td>
  560. <td valign="top" bgcolor="#ffffff"><strong><?php echo $this->_var['card']['card_name']; ?></strong></td>
  561. <td valign="top" align="right" bgcolor="#ffffff"><?php echo $this->_var['card']['format_card_fee']; ?></td>
  562. <td valign="top" align="right" bgcolor="#ffffff"><?php echo $this->_var['card']['format_free_money']; ?></td>
  563. <td valign="top" align="center" bgcolor="#ffffff">
  564. <?php if ($this->_var['card']['card_img']): ?>
  565. <a href="data/cardimg/<?php echo $this->_var['card']['card_img']; ?>" target="_blank" class="f6"><?php echo $this->_var['lang']['view']; ?></a>
  566. <?php else: ?>
  567. <?php echo $this->_var['lang']['no']; ?>
  568. <?php endif; ?>
  569. </td>
  570. </tr>
  571. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  572. <tr>
  573. <td bgcolor="#ffffff"></td>
  574. <td bgcolor="#ffffff" valign="top"><strong><?php echo $this->_var['lang']['bless_note']; ?>:</strong></td>
  575. <td bgcolor="#ffffff" colspan="3"><textarea name="card_message" cols="60" rows="3" style="width:auto; border:1px solid #ccc;"><?php echo htmlspecialchars($this->_var['order']['card_message']); ?></textarea></td>
  576. </tr>
  577. </table>
  578. </div>
  579. <?php endif; ?>
  580. <div class="General_Title clearfix">
  581. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['other_info']; ?></p>&nbsp;</div>
  582. </div>
  583. <div class="clearfix groupList flowBox">
  584. <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  585. <?php if ($this->_var['allow_use_surplus']): ?>
  586. <tr>
  587. <td width="20%" bgcolor="#ffffff"><strong><?php echo $this->_var['lang']['use_surplus']; ?>: </strong></td>
  588. <td bgcolor="#ffffff"><input name="surplus" type="text" class="border" id="ECS_SURPLUS" size="10" value="<?php echo empty($this->_var['order']['surplus']) ? '0' : $this->_var['order']['surplus']; ?>" onblur="changeSurplus(this.value)" <?php if ($this->_var['disable_surplus']): ?>disabled="disabled"<?php endif; ?> />
  589. <?php echo $this->_var['lang']['your_surplus']; ?><?php echo empty($this->_var['your_surplus']) ? '0' : $this->_var['your_surplus']; ?> <span id="ECS_SURPLUS_NOTICE" class="notice"></span></td>
  590. </tr>
  591. <?php endif; ?>
  592. <?php if ($this->_var['allow_use_integral']): ?>
  593. <tr>
  594. <td bgcolor="#ffffff"><strong><?php echo $this->_var['lang']['use_integral']; ?></strong></td>
  595. <td bgcolor="#ffffff"><input name="integral" type="text" class="border" id="ECS_INTEGRAL" onblur="changeIntegral(this.value)" value="<?php echo empty($this->_var['order']['integral']) ? '0' : $this->_var['order']['integral']; ?>" size="10" />
  596. <?php echo $this->_var['lang']['can_use_integral']; ?>:<?php echo empty($this->_var['your_integral']) ? '0' : $this->_var['your_integral']; ?> <?php echo $this->_var['points_name']; ?>?<?php echo $this->_var['lang']['noworder_can_integral']; ?><?php echo $this->_var['order_max_integral']; ?> <?php echo $this->_var['points_name']; ?>. <span id="ECS_INTEGRAL_NOTICE" class="notice"></span></td>
  597. </tr>
  598. <?php endif; ?>
  599. <?php if ($this->_var['allow_use_bonus']): ?>
  600. <tr>
  601. <td bgcolor="#ffffff"><strong><?php echo $this->_var['lang']['use_bonus']; ?>:</strong></td>
  602. <td bgcolor="#ffffff">
  603. <?php echo $this->_var['lang']['select_bonus']; ?>
  604. <select name="bonus" onchange="changeBonus(this.value)" id="ECS_BONUS" style="border:1px solid #ccc;">
  605. <option value="0" <?php if ($this->_var['order']['bonus_id'] == 0): ?>selected<?php endif; ?>><?php echo $this->_var['lang']['please_select']; ?></option>
  606. <?php $_from = $this->_var['bonus_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'bonus');if (count($_from)):
  607. foreach ($_from AS $this->_var['bonus']):
  608. ?>
  609. <option value="<?php echo $this->_var['bonus']['bonus_id']; ?>" <?php if ($this->_var['order']['bonus_id'] == $this->_var['bonus']['bonus_id']): ?>selected<?php endif; ?>><?php echo $this->_var['bonus']['type_name']; ?>[<?php echo $this->_var['bonus']['bonus_money_formated']; ?>]</option>
  610. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  611. </select>
  612. <?php echo $this->_var['lang']['input_bonus_no']; ?>
  613. <input name="bonus_sn" type="text" class="border" size="15" />
  614. <input name="validate_bonus" type="button" class="bnt_number4" value="<?php echo $this->_var['lang']['validate_bonus']; ?>" onclick="validateBonus(document.forms['theForm'].elements['bonus_sn'].value)" />
  615. </td>
  616. </tr>
  617. <?php endif; ?>
  618. <?php if ($this->_var['inv_content_list']): ?>
  619. <tr>
  620. <td bgcolor="#ffffff"><strong><?php echo $this->_var['lang']['invoice']; ?>:</strong>
  621. <input name="need_inv" type="checkbox" class="border" id="ECS_NEEDINV" onclick="changeNeedInv()" value="1" <?php if ($this->_var['order']['need_inv']): ?>checked="true"<?php endif; ?> />
  622. </td>
  623. <td bgcolor="#ffffff">
  624. <?php if ($this->_var['inv_type_list']): ?>
  625. <?php echo $this->_var['lang']['invoice_type']; ?>
  626. <select name="inv_type" id="ECS_INVTYPE" <?php if ($this->_var['order']['need_inv'] != 1): ?>disabled="true"<?php endif; ?> onchange="changeNeedInv()" class="border">
  627. <?php echo $this->html_options(array('options'=>$this->_var['inv_type_list'],'selected'=>$this->_var['order']['inv_type'])); ?></select>
  628. <?php endif; ?>
  629. <?php echo $this->_var['lang']['invoice_title']; ?>
  630. <input name="inv_payee" type="text" class="border" id="ECS_INVPAYEE" size="20" <?php if (! $this->_var['order']['need_inv']): ?>disabled="true"<?php endif; ?> value="<?php echo $this->_var['order']['inv_payee']; ?>" onblur="changeNeedInv()" />
  631. <?php echo $this->_var['lang']['invoice_content']; ?>
  632. <select name="inv_content" id="ECS_INVCONTENT" <?php if ($this->_var['order']['need_inv'] != 1): ?>disabled="true"<?php endif; ?> onchange="changeNeedInv()" class="border">
  633. <?php echo $this->html_options(array('values'=>$this->_var['inv_content_list'],'output'=>$this->_var['inv_content_list'],'selected'=>$this->_var['order']['inv_content'])); ?>
  634. </select></td>
  635. </tr>
  636. <?php endif; ?>
  637. <tr>
  638. <td valign="top" bgcolor="#ffffff"><strong><?php echo $this->_var['lang']['order_postscript']; ?>:</strong></td>
  639. <td bgcolor="#ffffff"><textarea name="postscript" cols="80" rows="3" id="postscript" class="border"><?php echo htmlspecialchars($this->_var['order']['postscript']); ?></textarea></td>
  640. </tr>
  641. <?php if ($this->_var['how_oos_list']): ?>
  642. <tr>
  643. <td bgcolor="#ffffff"><strong><?php echo $this->_var['lang']['booking_process']; ?>:</strong></td>
  644. <td bgcolor="#ffffff"><?php $_from = $this->_var['how_oos_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('how_oos_id', 'how_oos_name');if (count($_from)):
  645. foreach ($_from AS $this->_var['how_oos_id'] => $this->_var['how_oos_name']):
  646. ?>
  647. <label>
  648. <input name="how_oos" type="radio" value="<?php echo $this->_var['how_oos_id']; ?>" <?php if ($this->_var['order']['how_oos'] == $this->_var['how_oos_id']): ?>checked<?php endif; ?> onclick="changeOOS(this)" />
  649. <?php echo $this->_var['how_oos_name']; ?></label>
  650. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  651. </td>
  652. </tr>
  653. <?php endif; ?>
  654. </table>
  655. </div>
  656. <div class="General_Title clearfix">
  657. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['fee_total']; ?></p>&nbsp;</div>
  658. </div>
  659. <div class="clearfix groupList flowBox">
  660. <?php echo $this->fetch('library/order_total.lbi'); ?>
  661. <div align="center" style="margin:8px auto;">
  662. <input type="image" src="themes/clothing/images/bnt_subOrder.gif" />
  663. <input type="hidden" name="step" value="done" />
  664. </div>
  665. </div>
  666. </form>
  667. <?php endif; ?>
  668. <?php if ($this->_var['step'] == "done"): ?>
  669. <div class="Success">
  670. <h6><?php echo $this->_var['lang']['remember_order_number']; ?>: <font class="empty"><?php echo $this->_var['order']['order_sn']; ?></font></h6>
  671. <table width="99%" align="center" border="0" cellpadding="15" cellspacing="0" bgcolor="#fff" class="border">
  672. <tr>
  673. <td align="center" bgcolor="#FFFFFF">
  674. <?php if ($this->_var['order']['shipping_name']): ?><?php echo $this->_var['lang']['select_shipping']; ?>: <strong><?php echo $this->_var['order']['shipping_name']; ?></strong>?<?php endif; ?><?php echo $this->_var['lang']['select_payment']; ?>: <strong><?php echo $this->_var['order']['pay_name']; ?></strong>?<?php echo $this->_var['lang']['order_amount']; ?>: <strong><?php echo $this->_var['total']['amount_formated']; ?></strong>
  675. </td>
  676. </tr>
  677. <tr>
  678. <td align="center" bgcolor="#FFFFFF"><?php echo $this->_var['order']['pay_desc']; ?></td>
  679. </tr>
  680. <?php if ($this->_var['pay_online']): ?>
  681. <tr>
  682. <td align="center" bgcolor="#FFFFFF"><?php echo $this->_var['pay_online']; ?></td>
  683. </tr>
  684. <?php endif; ?>
  685. </table>
  686. <?php if ($this->_var['virtual_card']): ?>
  687. <div class="virtual_card border">
  688. <?php $_from = $this->_var['virtual_card']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'vgoods');if (count($_from)):
  689. foreach ($_from AS $this->_var['vgoods']):
  690. ?>
  691. <div class="empty"><?php echo $this->_var['vgoods']['goods_name']; ?></div>
  692. <?php $_from = $this->_var['vgoods']['info']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'card');if (count($_from)):
  693. foreach ($_from AS $this->_var['card']):
  694. ?>
  695. <ul>
  696. <?php if ($this->_var['card']['card_sn']): ?>
  697. <li>
  698. <strong><?php echo $this->_var['lang']['card_sn']; ?>:</strong><font class="empty"><?php echo $this->_var['card']['card_sn']; ?></font>
  699. </li><?php endif; ?>
  700. <?php if ($this->_var['card']['card_password']): ?>
  701. <li>
  702. <strong><?php echo $this->_var['lang']['card_password']; ?>:</strong><font class="empty"><?php echo $this->_var['card']['card_password']; ?></font>
  703. </li><?php endif; ?>
  704. <?php if ($this->_var['card']['end_date']): ?>
  705. <li>
  706. <strong><?php echo $this->_var['lang']['end_date']; ?>:</strong><?php echo $this->_var['card']['end_date']; ?>
  707. </li><?php endif; ?>
  708. </ul>
  709. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  710. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  711. </div>
  712. <?php endif; ?>
  713. <p style="text-align:center; margin:20px auto;"><?php echo $this->_var['order_submit_back']; ?></p>
  714. </div>
  715. <?php endif; ?>
  716. <?php if ($this->_var['step'] == "login"): ?>
  717. <?php echo $this->smarty_insert_scripts(array('files'=>'utils.js,user.js')); ?>
  718. <script type="text/javascript">
  719. <?php $_from = $this->_var['lang']['flow_login_register']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
  720. foreach ($_from AS $this->_var['key'] => $this->_var['item']):
  721. ?>
  722. var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
  723. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  724. function checkLoginForm(frm) {
  725. if (Utils.isEmpty(frm.elements['username'].value)) {
  726. alert(username_not_null);
  727. return false;
  728. }
  729. if (Utils.isEmpty(frm.elements['password'].value)) {
  730. alert(password_not_null);
  731. return false;
  732. }
  733. return true;
  734. }
  735. function checkSignupForm(frm) {
  736. if (Utils.isEmpty(frm.elements['username'].value)) {
  737. alert(username_not_null);
  738. return false;
  739. }
  740. if (Utils.trim(frm.elements['username'].value).match(/^\s*$|^c:\\con\\con$|[%,\'\*\"\s\t\<\>\&\\]/))
  741. {
  742. alert(username_invalid);
  743. return false;
  744. }
  745. if (Utils.isEmpty(frm.elements['email'].value)) {
  746. alert(email_not_null);
  747. return false;
  748. }
  749. if (!Utils.isEmail(frm.elements['email'].value)) {
  750. alert(email_invalid);
  751. return false;
  752. }
  753. if (Utils.isEmpty(frm.elements['password'].value)) {
  754. alert(password_not_null);
  755. return false;
  756. }
  757. if (frm.elements['password'].value.length < 6) {
  758. alert(password_lt_six);
  759. return false;
  760. }
  761. if (frm.elements['password'].value != frm.elements['confirm_password'].value) {
  762. alert(password_not_same);
  763. return false;
  764. }
  765. return true;
  766. }
  767. </script>
  768. <div class="flowBox">
  769. <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  770. <tr>
  771. <td width="50%" valign="top" bgcolor="#ffffff">

Large files files are truncated, but you can click here to view the full file