PageRenderTime 64ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/temp/compiled/user_transaction.dwt.php

https://bitbucket.org/luxi78/fengyu
PHP | 1157 lines | 1111 code | 44 blank | 2 comment | 187 complexity | 06fc9aa804c10f4bedb27f21db979548 MD5 | raw file
Possible License(s): LGPL-2.1
  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,user.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 clearfix">
  19. <div id="areaLeft">
  20. <?php echo $this->fetch('library/user_menu.lbi'); ?>
  21. </div>
  22. <div id="areaRight">
  23. <?php if ($this->_var['action'] == 'profile'): ?>
  24. <?php echo $this->smarty_insert_scripts(array('files'=>'utils.js')); ?>
  25. <script type="text/javascript">
  26. <?php $_from = $this->_var['lang']['profile_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
  27. foreach ($_from AS $this->_var['key'] => $this->_var['item']):
  28. ?>
  29. var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
  30. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  31. </script>
  32. <div class="General_Title clearfix">
  33. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['profile']; ?></p>&nbsp;</div>
  34. </div>
  35. <div class="clearfix groupList flowBox">
  36. <form name="formEdit" action="user.php" method="post" onSubmit="return userEdit()">
  37. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  38. <tr>
  39. <td width="28%" align="right" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['birthday']; ?>? </td>
  40. <td width="72%" align="left" bgcolor="#FFFFFF"> <?php echo $this->html_select_date(array('field_order'=>'YMD','prefix'=>'birthday','start_year'=>'-60','end_year'=>'+1','display_days'=>'true','month_format'=>'%m','day_value_format'=>'%02d','time'=>$this->_var['profile']['birthday'])); ?> </td>
  41. </tr>
  42. <tr>
  43. <td width="28%" align="right" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['sex']; ?>? </td>
  44. <td width="72%" align="left" bgcolor="#FFFFFF"><input type="radio" name="sex" value="0" <?php if ($this->_var['profile']['sex'] == 0): ?>checked="checked"<?php endif; ?> />
  45. <?php echo $this->_var['lang']['secrecy']; ?>&nbsp;&nbsp;
  46. <input type="radio" name="sex" value="1" <?php if ($this->_var['profile']['sex'] == 1): ?>checked="checked"<?php endif; ?> />
  47. <?php echo $this->_var['lang']['male']; ?>&nbsp;&nbsp;
  48. <input type="radio" name="sex" value="2" <?php if ($this->_var['profile']['sex'] == 2): ?>checked="checked"<?php endif; ?> />
  49. <?php echo $this->_var['lang']['female']; ?>&nbsp;&nbsp; </td>
  50. </tr>
  51. <tr>
  52. <td width="28%" align="right" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['email']; ?>? </td>
  53. <td width="72%" align="left" bgcolor="#FFFFFF"><input name="email" type="text" value="<?php echo $this->_var['profile']['email']; ?>" size="25" class="border" /></td>
  54. </tr>
  55. <tr>
  56. <td width="28%" align="right" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['other_msn']; ?>?</td>
  57. <td width="72%" align="left" bgcolor="#FFFFFF"><input name="other[msn]" type="text" value="<?php echo $this->_var['profile']['msn']; ?>" class="border" />
  58. </td>
  59. </tr>
  60. <tr>
  61. <td width="28%" align="right" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['other_qq']; ?>?</td>
  62. <td width="72%" align="left" bgcolor="#FFFFFF"><input name="other[qq]" type="text" value="<?php echo $this->_var['profile']['qq']; ?>" class="border" />
  63. </td>
  64. </tr>
  65. <tr>
  66. <td width="28%" align="right" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['other_office_phone']; ?>?</td>
  67. <td width="72%" align="left" bgcolor="#FFFFFF"><input name="other[office_phone]" type="text" value="<?php echo $this->_var['profile']['office_phone']; ?>" class="border" />
  68. </td>
  69. </tr>
  70. <tr>
  71. <td width="28%" align="right" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['other_home_phone']; ?>?</td>
  72. <td width="72%" align="left" bgcolor="#FFFFFF"><input name="other[home_phone]" type="text" value="<?php echo $this->_var['profile']['home_phone']; ?>" class="border" />
  73. </td>
  74. </tr>
  75. <tr>
  76. <td width="28%" align="right" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['other_mobile_phone']; ?>?</td>
  77. <td width="72%" align="left" bgcolor="#FFFFFF"><input name="other[mobile_phone]" type="text" value="<?php echo $this->_var['profile']['mobile_phone']; ?>" class="border" />
  78. </td>
  79. </tr>
  80. <?php $_from = $this->_var['extend_info_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'field');if (count($_from)):
  81. foreach ($_from AS $this->_var['field']):
  82. ?>
  83. <tr>
  84. <td width="28%" align="right" bgcolor="#FFFFFF"><?php echo $this->_var['field']['reg_field_name']; ?>?</td>
  85. <td width="72%" align="left" bgcolor="#FFFFFF">
  86. <input name="extend_field<?php echo $this->_var['field']['id']; ?>" type="text" class="border" value="<?php echo $this->_var['field']['content']; ?>"/>
  87. </td>
  88. </tr>
  89. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  90. <tr>
  91. <td colspan="2" align="center" bgcolor="#FFFFFF"><input name="act" type="hidden" value="act_edit_profile" />
  92. <input name="submit" type="submit" class="bnt_number4" value="<?php echo $this->_var['lang']['confirm_edit']; ?>" />
  93. </td>
  94. </tr>
  95. </table>
  96. </form>
  97. <form name="formPassword" action="user.php" method="post" onSubmit="return editPassword()" >
  98. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  99. <tr>
  100. <td width="28%" align="right" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['old_password']; ?>?</td>
  101. <td width="76%" align="left" bgcolor="#FFFFFF"><input name="old_password" type="password" size="25" class="border" /></td>
  102. </tr>
  103. <tr>
  104. <td width="28%" align="right" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['new_password']; ?>?</td>
  105. <td align="left" bgcolor="#FFFFFF"><input name="new_password" type="password" size="25" class="border" /></td>
  106. </tr>
  107. <tr>
  108. <td width="28%" align="right" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['confirm_password']; ?>?</td>
  109. <td align="left" bgcolor="#FFFFFF"><input name="comfirm_password" type="password" size="25" class="border" /></td>
  110. </tr>
  111. <tr>
  112. <td colspan="2" align="center" bgcolor="#FFFFFF"><input name="act" type="hidden" value="act_edit_password" />
  113. <input name="submit" type="submit" class="bnt_number4" value="<?php echo $this->_var['lang']['confirm_edit']; ?>" />
  114. </td>
  115. </tr>
  116. </table>
  117. </form>
  118. </div>
  119. <?php endif; ?>
  120. <?php if ($this->_var['action'] == 'bonus'): ?>
  121. <script type="text/javascript">
  122. <?php $_from = $this->_var['lang']['profile_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
  123. foreach ($_from AS $this->_var['key'] => $this->_var['item']):
  124. ?>
  125. var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
  126. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  127. </script>
  128. <div class="General_Title clearfix">
  129. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['label_bonus']; ?></p>&nbsp;</div>
  130. </div>
  131. <div class="clearfix groupList flowBox">
  132. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  133. <tr>
  134. <th align="center" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['bonus_sn']; ?></th>
  135. <th align="center" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['bonus_name']; ?></th>
  136. <th align="center" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['bonus_amount']; ?></th>
  137. <th align="center" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['min_goods_amount']; ?></th>
  138. <th align="center" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['bonus_end_date']; ?></th>
  139. <th align="center" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['bonus_status']; ?></th>
  140. </tr>
  141. <?php if ($this->_var['bonus']): ?>
  142. <?php $_from = $this->_var['bonus']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
  143. foreach ($_from AS $this->_var['item']):
  144. ?>
  145. <tr>
  146. <td align="center" bgcolor="#FFFFFF"><?php echo empty($this->_var['item']['bonus_sn']) ? 'N/A' : $this->_var['item']['bonus_sn']; ?></td>
  147. <td align="center" bgcolor="#FFFFFF"><?php echo $this->_var['item']['type_name']; ?></td>
  148. <td align="center" bgcolor="#FFFFFF"><?php echo $this->_var['item']['type_money']; ?></td>
  149. <td align="center" bgcolor="#FFFFFF"><?php echo $this->_var['item']['min_goods_amount']; ?></td>
  150. <td align="center" bgcolor="#FFFFFF"><?php echo $this->_var['item']['use_enddate']; ?></td>
  151. <td align="center" bgcolor="#FFFFFF"><?php echo $this->_var['item']['status']; ?></td>
  152. </tr>
  153. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  154. <?php else: ?>
  155. <tr>
  156. <td colspan="6" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['user_bonus_empty']; ?></td>
  157. </tr>
  158. <?php endif; ?>
  159. </table>
  160. </div>
  161. <?php echo $this->fetch('library/pages.lbi'); ?>
  162. <div class="General_Title clearfix">
  163. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['add_bonus']; ?></p>&nbsp;</div>
  164. </div>
  165. <div class="clearfix groupList flowBox">
  166. <form name="addBouns" action="user.php" method="post" onSubmit="return addBonus()">
  167. <div style="padding: 15px;">
  168. <?php echo $this->_var['lang']['bonus_number']; ?>
  169. <input name="bonus_sn" type="text" size="30" class="border" />
  170. <input type="hidden" name="act" value="act_add_bonus"/>
  171. <input type="submit" value="<?php echo $this->_var['lang']['add_bonus']; ?>" class="bnt_number4" />
  172. </div>
  173. </form>
  174. </div>
  175. <?php endif; ?>
  176. <?php if ($this->_var['action'] == 'order_list'): ?>
  177. <div class="General_Title clearfix">
  178. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['label_order']; ?></p>&nbsp;</div>
  179. </div>
  180. <div class="clearfix groupList flowBox">
  181. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  182. <tr align="center">
  183. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['order_number']; ?></td>
  184. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['order_addtime']; ?></td>
  185. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['order_money']; ?></td>
  186. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['order_status']; ?></td>
  187. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['handle']; ?></td>
  188. </tr>
  189. <?php $_from = $this->_var['orders']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
  190. foreach ($_from AS $this->_var['item']):
  191. ?>
  192. <tr>
  193. <td align="center" bgcolor="#ffffff"><a href="user.php?act=order_detail&order_id=<?php echo $this->_var['item']['order_id']; ?>" class="f6"><?php echo $this->_var['item']['order_sn']; ?></a></td>
  194. <td align="center" bgcolor="#ffffff"><?php echo $this->_var['item']['order_time']; ?></td>
  195. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['item']['total_fee']; ?></td>
  196. <td align="center" bgcolor="#ffffff"><?php echo $this->_var['item']['order_status']; ?></td>
  197. <td align="center" bgcolor="#ffffff"><font class="f6"><?php echo $this->_var['item']['handler']; ?></font></td>
  198. </tr>
  199. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  200. </table>
  201. </div>
  202. <?php echo $this->fetch('library/pages.lbi'); ?>
  203. <div class="General_Title clearfix">
  204. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['merge_order']; ?></p>&nbsp;</div>
  205. </div>
  206. <div class="clearfix groupList flowBox">
  207. <script type="text/javascript">
  208. <?php $_from = $this->_var['lang']['merge_order_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
  209. foreach ($_from AS $this->_var['key'] => $this->_var['item']):
  210. ?>
  211. var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
  212. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  213. </script>
  214. <form action="user.php" method="post" name="formOrder" onsubmit="return mergeOrder()">
  215. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  216. <tr>
  217. <td width="22%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['first_order']; ?>:</td>
  218. <td width="12%" align="left" bgcolor="#ffffff"><select name="to_order" class="border">
  219. <option value="0"><?php echo $this->_var['lang']['select']; ?></option>
  220. <?php echo $this->html_options(array('options'=>$this->_var['merge'])); ?>
  221. </select></td>
  222. <td width="19%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['second_order']; ?>:</td>
  223. <td width="11%" align="left" bgcolor="#ffffff"><select name="from_order" class="border">
  224. <option value="0"><?php echo $this->_var['lang']['select']; ?></option>
  225. <?php echo $this->html_options(array('options'=>$this->_var['merge'])); ?>
  226. </select></td>
  227. <td width="36%" bgcolor="#ffffff">&nbsp;<input name="act" value="merge_order" type="hidden" />
  228. <input type="submit" name="Submit" class="bnt_number4" value="<?php echo $this->_var['lang']['merge_order']; ?>" /></td>
  229. </tr>
  230. <tr>
  231. <td bgcolor="#ffffff">&nbsp;</td>
  232. <td colspan="4" align="left" bgcolor="#ffffff"><?php echo $this->_var['lang']['merge_order_notice']; ?></td>
  233. </tr>
  234. </table>
  235. </form>
  236. </div>
  237. <?php endif; ?>
  238. <?php if ($this->_var['action'] == 'track_packages'): ?>
  239. <div class="General_Title clearfix">
  240. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['label_track_packages']; ?></p>&nbsp;</div>
  241. </div>
  242. <div class="clearfix groupList flowBox">
  243. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="order_table">
  244. <tr align="center">
  245. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['order_number']; ?></td>
  246. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['handle']; ?></td>
  247. </tr>
  248. <?php $_from = $this->_var['orders']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
  249. foreach ($_from AS $this->_var['item']):
  250. ?>
  251. <tr>
  252. <td align="center" bgcolor="#ffffff"><a href="user.php?act=order_detail&order_id=<?php echo $this->_var['item']['order_id']; ?>"><?php echo $this->_var['item']['order_sn']; ?></a></td>
  253. <td align="center" bgcolor="#ffffff"><?php echo $this->_var['item']['query_link']; ?></td>
  254. </tr>
  255. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  256. </table>
  257. <script>
  258. var query_status = '<?php echo $this->_var['lang']['query_status']; ?>';
  259. var ot = document.getElementById('order_table');
  260. for (var i = 1; i < ot.rows.length; i++)
  261. {
  262. var row = ot.rows[i];
  263. var cel = row.cells[1];
  264. cel.getElementsByTagName('a').item(0).innerHTML = query_status;
  265. }
  266. </script>
  267. </div>
  268. <?php echo $this->fetch('library/pages.lbi'); ?>
  269. <?php endif; ?>
  270. <?php if ($this->_var['action'] == order_detail): ?>
  271. <div class="General_Title clearfix">
  272. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['order_status']; ?></p>&nbsp;</div>
  273. </div>
  274. <div class="clearfix groupList flowBox">
  275. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  276. <tr>
  277. <td width="15%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['detail_order_sn']; ?>?</td>
  278. <td align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['order_sn']; ?>
  279. <?php if ($this->_var['order']['extension_code'] == "group_buy"): ?>
  280. <a href="./group_buy.php?act=view&id=<?php echo $this->_var['order']['extension_id']; ?>" class="f6"><strong><?php echo $this->_var['lang']['order_is_group_buy']; ?></strong></a>
  281. <?php elseif ($this->_var['order']['extension_code'] == "exchange_goods"): ?>
  282. <a href="./exchange.php?act=view&id=<?php echo $this->_var['order']['extension_id']; ?>" class="f6"><strong><?php echo $this->_var['lang']['order_is_exchange']; ?></strong></a>
  283. <?php endif; ?>
  284. <a href="user.php?act=message_list&order_id=<?php echo $this->_var['order']['order_id']; ?>" class="f6">[<?php echo $this->_var['lang']['business_message']; ?>]</a>
  285. </td>
  286. </tr>
  287. <tr>
  288. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['detail_order_status']; ?>?</td>
  289. <td align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['order_status']; ?>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $this->_var['order']['confirm_time']; ?></td>
  290. </tr>
  291. <tr>
  292. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['detail_pay_status']; ?>?</td>
  293. <td align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['pay_status']; ?>&nbsp;&nbsp;&nbsp;&nbsp;<?php if ($this->_var['order']['order_amount'] > 0): ?><?php echo $this->_var['order']['pay_online']; ?><?php endif; ?><?php echo $this->_var['order']['pay_time']; ?></td>
  294. </tr>
  295. <tr>
  296. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['detail_shipping_status']; ?>?</td>
  297. <td align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['shipping_status']; ?>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $this->_var['order']['shipping_time']; ?></td>
  298. </tr>
  299. <?php if ($this->_var['order']['invoice_no']): ?>
  300. <tr>
  301. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['consignment']; ?>?</td>
  302. <td align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['invoice_no']; ?></td>
  303. </tr>
  304. <?php endif; ?>
  305. <?php if ($this->_var['order']['to_buyer']): ?>
  306. <tr>
  307. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['detail_to_buyer']; ?>?</td>
  308. <td align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['to_buyer']; ?></td>
  309. </tr>
  310. <?php endif; ?>
  311. <?php if ($this->_var['virtual_card']): ?>
  312. <tr>
  313. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['virtual_card_info']; ?>?</td>
  314. <td colspan="3" align="left" bgcolor="#ffffff">
  315. <?php $_from = $this->_var['virtual_card']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'vgoods');if (count($_from)):
  316. foreach ($_from AS $this->_var['vgoods']):
  317. ?>
  318. <?php $_from = $this->_var['vgoods']['info']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'card');if (count($_from)):
  319. foreach ($_from AS $this->_var['card']):
  320. ?>
  321. <?php if ($this->_var['card']['card_sn']): ?><?php echo $this->_var['lang']['card_sn']; ?>:<span style="color:red;"><?php echo $this->_var['card']['card_sn']; ?></span><?php endif; ?>
  322. <?php if ($this->_var['card']['card_password']): ?><?php echo $this->_var['lang']['card_password']; ?>:<span style="color:red;"><?php echo $this->_var['card']['card_password']; ?></span><?php endif; ?>
  323. <?php if ($this->_var['card']['end_date']): ?><?php echo $this->_var['lang']['end_date']; ?>:<?php echo $this->_var['card']['end_date']; ?><?php endif; ?><br />
  324. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  325. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  326. </td>
  327. </tr>
  328. <?php endif; ?>
  329. </table>
  330. </div>
  331. <div class="General_Title clearfix">
  332. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['goods_list']; ?></p>
  333. <?php if ($this->_var['allow_to_cart']): ?>
  334. <a href="javascript:;" onclick="returnToCart(<?php echo $this->_var['order']['order_id']; ?>)"><font class="empty"><?php echo $this->_var['lang']['return_to_cart']; ?></font></a>
  335. <?php endif; ?>
  336. </div>
  337. </div>
  338. <div class="clearfix groupList flowBox">
  339. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  340. <tr>
  341. <th width="23%" align="center" bgcolor="#ffffff"><?php echo $this->_var['lang']['goods_name']; ?></th>
  342. <th width="29%" align="center" bgcolor="#ffffff"><?php echo $this->_var['lang']['goods_attr']; ?></th>
  343. <!--<th><?php echo $this->_var['lang']['market_price']; ?></th>-->
  344. <th width="26%" align="center" bgcolor="#ffffff"><?php echo $this->_var['lang']['goods_price']; ?><?php if ($this->_var['order']['extension_code'] == "group_buy"): ?><?php echo $this->_var['lang']['gb_deposit']; ?><?php endif; ?></th>
  345. <th width="9%" align="center" bgcolor="#ffffff"><?php echo $this->_var['lang']['number']; ?></th>
  346. <th width="20%" align="center" bgcolor="#ffffff"><?php echo $this->_var['lang']['subtotal']; ?></th>
  347. </tr>
  348. <?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
  349. foreach ($_from AS $this->_var['goods']):
  350. ?>
  351. <tr>
  352. <td bgcolor="#ffffff">
  353. <?php if ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['extension_code'] != 'package_buy'): ?>
  354. <a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank" class="f6"><?php echo $this->_var['goods']['goods_name']; ?></a>
  355. <?php if ($this->_var['goods']['parent_id'] > 0): ?>
  356. <span style="color:#FF0000">?<?php echo $this->_var['lang']['accessories']; ?>?</span>
  357. <?php elseif ($this->_var['goods']['is_gift']): ?>
  358. <span style="color:#FF0000">?<?php echo $this->_var['lang']['largess']; ?>?</span>
  359. <?php endif; ?>
  360. <?php elseif ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['extension_code'] == 'package_buy'): ?>
  361. <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;">????</span></a>
  362. <div id="suit_<?php echo $this->_var['goods']['goods_id']; ?>" style="display:none">
  363. <?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)):
  364. foreach ($_from AS $this->_var['package_goods_list']):
  365. ?>
  366. <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 />
  367. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  368. </div>
  369. <?php endif; ?>
  370. </td>
  371. <td align="left" bgcolor="#ffffff"><?php echo nl2br($this->_var['goods']['goods_attr']); ?></td>
  372. <!--<td align="right"><?php echo $this->_var['goods']['market_price']; ?></td>-->
  373. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['goods']['goods_price']; ?></td>
  374. <td align="center" bgcolor="#ffffff"><?php echo $this->_var['goods']['goods_number']; ?></td>
  375. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['goods']['subtotal']; ?></td>
  376. </tr>
  377. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  378. <tr>
  379. <td colspan="8" bgcolor="#ffffff" align="right">
  380. <?php echo $this->_var['lang']['shopping_money']; ?><?php if ($this->_var['order']['extension_code'] == "group_buy"): ?><?php echo $this->_var['lang']['gb_deposit']; ?><?php endif; ?>: <?php echo $this->_var['order']['formated_goods_amount']; ?>
  381. </td>
  382. </tr>
  383. </table>
  384. </div>
  385. <div class="General_Title clearfix">
  386. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['fee_total']; ?></p>&nbsp;</div>
  387. </div>
  388. <div class="clearfix groupList flowBox">
  389. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  390. <tr>
  391. <td align="right" bgcolor="#ffffff">
  392. <?php echo $this->_var['lang']['goods_all_price']; ?><?php if ($this->_var['order']['extension_code'] == "group_buy"): ?><?php echo $this->_var['lang']['gb_deposit']; ?><?php endif; ?>: <?php echo $this->_var['order']['formated_goods_amount']; ?>
  393. <?php if ($this->_var['order']['discount'] > 0): ?>
  394. - <?php echo $this->_var['lang']['discount']; ?>: <?php echo $this->_var['order']['formated_discount']; ?>
  395. <?php endif; ?>
  396. <?php if ($this->_var['order']['tax'] > 0): ?>
  397. + <?php echo $this->_var['lang']['tax']; ?>: <?php echo $this->_var['order']['formated_tax']; ?>
  398. <?php endif; ?>
  399. <?php if ($this->_var['order']['shipping_fee'] > 0): ?>
  400. + <?php echo $this->_var['lang']['shipping_fee']; ?>: <?php echo $this->_var['order']['formated_shipping_fee']; ?>
  401. <?php endif; ?>
  402. <?php if ($this->_var['order']['insure_fee'] > 0): ?>
  403. + <?php echo $this->_var['lang']['insure_fee']; ?>: <?php echo $this->_var['order']['formated_insure_fee']; ?>
  404. <?php endif; ?>
  405. <?php if ($this->_var['order']['pay_fee'] > 0): ?>
  406. + <?php echo $this->_var['lang']['pay_fee']; ?>: <?php echo $this->_var['order']['formated_pay_fee']; ?>
  407. <?php endif; ?>
  408. <?php if ($this->_var['order']['pack_fee'] > 0): ?>
  409. + <?php echo $this->_var['lang']['pack_fee']; ?>: <?php echo $this->_var['order']['formated_pack_fee']; ?>
  410. <?php endif; ?>
  411. <?php if ($this->_var['order']['card_fee'] > 0): ?>
  412. + <?php echo $this->_var['lang']['card_fee']; ?>: <?php echo $this->_var['order']['formated_card_fee']; ?>
  413. <?php endif; ?> </td>
  414. </tr>
  415. <tr>
  416. <td align="right" bgcolor="#ffffff">
  417. <?php if ($this->_var['order']['money_paid'] > 0): ?>
  418. - <?php echo $this->_var['lang']['order_money_paid']; ?>: <?php echo $this->_var['order']['formated_money_paid']; ?>
  419. <?php endif; ?>
  420. <?php if ($this->_var['order']['surplus'] > 0): ?>
  421. - <?php echo $this->_var['lang']['use_surplus']; ?>: <?php echo $this->_var['order']['formated_surplus']; ?>
  422. <?php endif; ?>
  423. <?php if ($this->_var['order']['integral_money'] > 0): ?>
  424. - <?php echo $this->_var['lang']['use_integral']; ?>: <?php echo $this->_var['order']['formated_integral_money']; ?>
  425. <?php endif; ?>
  426. <?php if ($this->_var['order']['bonus'] > 0): ?>
  427. - <?php echo $this->_var['lang']['use_bonus']; ?>: <?php echo $this->_var['order']['formated_bonus']; ?>
  428. <?php endif; ?> </td>
  429. </tr>
  430. <tr>
  431. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['order_amount']; ?>: <?php echo $this->_var['order']['formated_order_amount']; ?>
  432. <?php if ($this->_var['order']['extension_code'] == "group_buy"): ?><br />
  433. <?php echo $this->_var['lang']['notice_gb_order_amount']; ?><?php endif; ?></td>
  434. </tr>
  435. <?php if ($this->_var['allow_edit_surplus']): ?>
  436. <tr>
  437. <td align="right" bgcolor="#ffffff">
  438. <form action="user.php" method="post" name="formFee" id="formFee"><?php echo $this->_var['lang']['use_more_surplus']; ?>:
  439. <input name="surplus" type="text" size="8" value="0" class="border"/><?php echo $this->_var['max_surplus']; ?>
  440. <input type="submit" name="Submit" value="<?php echo $this->_var['lang']['button_submit']; ?>" class="bnt_number2" />
  441. <input type="hidden" name="act" value="act_edit_surplus" />
  442. <input type="hidden" name="order_id" value="<?php echo $_GET['order_id']; ?>" />
  443. </form></td>
  444. </tr>
  445. <?php endif; ?>
  446. </table>
  447. </div>
  448. <div class="General_Title clearfix">
  449. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['consignee_info']; ?></p>&nbsp;</div>
  450. </div>
  451. <div class="clearfix groupList flowBox">
  452. <?php if ($this->_var['order']['allow_update_address'] > 0): ?>
  453. <form action="user.php" method="post" name="formAddress" id="formAddress">
  454. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  455. <tr>
  456. <td width="15%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['consignee_name']; ?>? </td>
  457. <td width="35%" align="left" bgcolor="#ffffff"><input name="consignee" type="text" class="border" value="<?php echo htmlspecialchars($this->_var['order']['consignee']); ?>" size="25">
  458. </td>
  459. <td width="15%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['email_address']; ?>? </td>
  460. <td width="35%" align="left" bgcolor="#ffffff"><input name="email" type="text" class="border" value="<?php echo htmlspecialchars($this->_var['order']['email']); ?>" size="25" />
  461. </td>
  462. </tr>
  463. <?php if ($this->_var['order']['exist_real_goods']): ?>
  464. <tr>
  465. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['detailed_address']; ?>? </td>
  466. <td align="left" bgcolor="#ffffff"><input name="address" type="text" class="border" value="<?php echo htmlspecialchars($this->_var['order']['address']); ?> " size="25" /></td>
  467. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['postalcode']; ?>?</td>
  468. <td align="left" bgcolor="#ffffff"><input name="zipcode" type="text" class="border" value="<?php echo htmlspecialchars($this->_var['order']['zipcode']); ?>" size="25" /></td>
  469. </tr>
  470. <?php endif; ?>
  471. <tr>
  472. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['phone']; ?>?</td>
  473. <td align="left" bgcolor="#ffffff"><input name="tel" type="text" class="border" value="<?php echo htmlspecialchars($this->_var['order']['tel']); ?>" size="25" /></td>
  474. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['backup_phone']; ?>?</td>
  475. <td align="left" bgcolor="#ffffff"><input name="mobile" type="text" class="border" value="<?php echo htmlspecialchars($this->_var['order']['mobile']); ?>" size="25" /></td>
  476. </tr>
  477. <?php if ($this->_var['order']['exist_real_goods']): ?>
  478. <tr>
  479. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['sign_building']; ?>?</td>
  480. <td align="left" bgcolor="#ffffff"><input name="sign_building" class="border" type="text" value="<?php echo htmlspecialchars($this->_var['order']['sign_building']); ?>" size="25" />
  481. </td>
  482. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['deliver_goods_time']; ?>?</td>
  483. <td align="left" bgcolor="#ffffff"><input name="best_time" type="text" class="border" value="<?php echo htmlspecialchars($this->_var['order']['best_time']); ?>" size="25" />
  484. </td>
  485. </tr>
  486. <?php endif; ?>
  487. <tr>
  488. <td colspan="4" align="center" bgcolor="#ffffff"><input type="hidden" name="act" value="save_order_address" />
  489. <input type="hidden" name="order_id" value="<?php echo $this->_var['order']['order_id']; ?>" />
  490. <input type="submit" value="<?php echo $this->_var['lang']['update_address']; ?>" class="bnt_number10" />
  491. </td>
  492. </tr>
  493. </table>
  494. </form>
  495. <?php else: ?>
  496. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  497. <tr>
  498. <td width="15%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['consignee_name']; ?>?</td>
  499. <td width="35%" align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['consignee']; ?></td>
  500. <td width="15%" align="right" bgcolor="#ffffff" ><?php echo $this->_var['lang']['email_address']; ?>?</td>
  501. <td width="35%" align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['email']; ?></td>
  502. </tr>
  503. <?php if ($this->_var['order']['exist_real_goods']): ?>
  504. <tr>
  505. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['detailed_address']; ?>?</td>
  506. <td colspan="3" align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['address']; ?>
  507. <?php if ($this->_var['order']['zipcode']): ?>
  508. [<?php echo $this->_var['lang']['postalcode']; ?>: <?php echo $this->_var['order']['zipcode']; ?>]
  509. <?php endif; ?></td>
  510. </tr>
  511. <?php endif; ?>
  512. <tr>
  513. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['phone']; ?>?</td>
  514. <td align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['tel']; ?> </td>
  515. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['backup_phone']; ?>?</td>
  516. <td align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['mobile']; ?></td>
  517. </tr>
  518. <?php if ($this->_var['order']['exist_real_goods']): ?>
  519. <tr>
  520. <td align="right" bgcolor="#ffffff" ><?php echo $this->_var['lang']['sign_building']; ?>?</td>
  521. <td align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['sign_building']; ?> </td>
  522. <td align="right" bgcolor="#ffffff" ><?php echo $this->_var['lang']['deliver_goods_time']; ?>?</td>
  523. <td align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['best_time']; ?></td>
  524. </tr>
  525. <?php endif; ?>
  526. </table>
  527. <?php endif; ?>
  528. </div>
  529. <div class="General_Title clearfix">
  530. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['payment']; ?></p>&nbsp;</div>
  531. </div>
  532. <div class="clearfix groupList flowBox">
  533. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  534. <tr>
  535. <td bgcolor="#ffffff">
  536. <?php echo $this->_var['lang']['select_payment']; ?>: <?php echo $this->_var['order']['pay_name']; ?>?<?php echo $this->_var['lang']['order_amount']; ?>: <strong><?php echo $this->_var['order']['formated_order_amount']; ?></strong><br />
  537. <?php echo $this->_var['order']['pay_desc']; ?>
  538. </td>
  539. </tr>
  540. <tr>
  541. <td bgcolor="#ffffff" align="right">
  542. <?php if ($this->_var['payment_list']): ?>
  543. <form name="payment" method="post" action="user.php">
  544. <?php echo $this->_var['lang']['change_payment']; ?>:
  545. <select name="pay_id">
  546. <?php $_from = $this->_var['payment_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'payment');if (count($_from)):
  547. foreach ($_from AS $this->_var['payment']):
  548. ?>
  549. <option value="<?php echo $this->_var['payment']['pay_id']; ?>">
  550. <?php echo $this->_var['payment']['pay_name']; ?>(<?php echo $this->_var['lang']['pay_fee']; ?>:<?php echo $this->_var['payment']['format_pay_fee']; ?>)
  551. </option>
  552. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  553. </select>
  554. <input type="hidden" name="act" value="act_edit_payment" />
  555. <input type="hidden" name="order_id" value="<?php echo $this->_var['order']['order_id']; ?>" />
  556. <input type="submit" name="Submit" value="<?php echo $this->_var['lang']['button_submit']; ?>" class="bnt_number2" />
  557. </form>
  558. <?php endif; ?>
  559. </td>
  560. </tr>
  561. </table>
  562. </div>
  563. <div class="General_Title clearfix">
  564. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['other_info']; ?></p>&nbsp;</div>
  565. </div>
  566. <div class="clearfix groupList flowBox">
  567. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  568. <?php if ($this->_var['order']['shipping_id'] > 0): ?>
  569. <tr>
  570. <td width="15%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['shipping']; ?>?</td>
  571. <td colspan="3" width="85%" align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['shipping_name']; ?></td>
  572. </tr>
  573. <?php endif; ?>
  574. <tr>
  575. <td width="15%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['payment']; ?>?</td>
  576. <td colspan="3" align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['pay_name']; ?></td>
  577. </tr>
  578. <?php if ($this->_var['order']['insure_fee'] > 0): ?>
  579. <?php endif; ?>
  580. <?php if ($this->_var['order']['pack_name']): ?>
  581. <tr>
  582. <td width="15%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['use_pack']; ?>?</td>
  583. <td colspan="3" align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['pack_name']; ?></td>
  584. </tr>
  585. <?php endif; ?>
  586. <?php if ($this->_var['order']['card_name']): ?>
  587. <tr>
  588. <td width="15%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['use_card']; ?>?</td>
  589. <td colspan="3" align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['card_name']; ?></td>
  590. </tr>
  591. <?php endif; ?>
  592. <?php if ($this->_var['order']['card_message']): ?>
  593. <tr>
  594. <td width="15%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['bless_note']; ?>?</td>
  595. <td colspan="3" align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['card_message']; ?></td>
  596. </tr>
  597. <?php endif; ?>
  598. <?php if ($this->_var['order']['surplus'] > 0): ?>
  599. <?php endif; ?>
  600. <?php if ($this->_var['order']['integral'] > 0): ?>
  601. <tr>
  602. <td width="15%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['use_integral']; ?>?</td>
  603. <td colspan="3" align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['integral']; ?></td>
  604. </tr>
  605. <?php endif; ?>
  606. <?php if ($this->_var['order']['bonus'] > 0): ?>
  607. <?php endif; ?>
  608. <?php if ($this->_var['order']['inv_payee'] && $this->_var['order']['inv_content']): ?>
  609. <tr>
  610. <td width="15%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['invoice_title']; ?>?</td>
  611. <td width="36%" align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['inv_payee']; ?></td>
  612. <td width="19%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['invoice_content']; ?>?</td>
  613. <td width="25%" align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['inv_content']; ?></td>
  614. </tr>
  615. <?php endif; ?>
  616. <?php if ($this->_var['order']['postscript']): ?>
  617. <tr>
  618. <td width="15%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['order_postscript']; ?>?</td>
  619. <td colspan="3" align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['postscript']; ?></td>
  620. </tr>
  621. <?php endif; ?>
  622. <tr>
  623. <td width="15%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['booking_process']; ?>?</td>
  624. <td colspan="3" align="left" bgcolor="#ffffff"><?php echo $this->_var['order']['how_oos_name']; ?></td>
  625. </tr>
  626. </table>
  627. </div>
  628. <?php endif; ?>
  629. <?php if ($this->_var['action'] == "account_raply" || $this->_var['action'] == "account_log" || $this->_var['action'] == "account_deposit" || $this->_var['action'] == "account_detail"): ?>
  630. <script type="text/javascript">
  631. <?php $_from = $this->_var['lang']['account_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
  632. foreach ($_from AS $this->_var['key'] => $this->_var['item']):
  633. ?>
  634. var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
  635. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  636. </script>
  637. <div class="General_Title clearfix">
  638. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['user_balance']; ?></p>&nbsp;</div>
  639. </div>
  640. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  641. <tr>
  642. <td align="right" bgcolor="#ffffff">
  643. <a href="user.php?act=account_deposit" <?php if ($this->_var['action'] == 'account_deposit'): ?>class="f4_b"<?php endif; ?>><?php echo $this->_var['lang']['surplus_type_0']; ?></a> | <a href="user.php?act=account_raply" <?php if ($this->_var['action'] == 'account_raply'): ?>class="f4_b"<?php endif; ?>><?php echo $this->_var['lang']['surplus_type_1']; ?></a> | <a href="user.php?act=account_detail" <?php if ($this->_var['action'] == 'account_detail'): ?>class="f4_b"<?php endif; ?>><?php echo $this->_var['lang']['add_surplus_log']; ?></a> | <a href="user.php?act=account_log" <?php if ($this->_var['action'] == 'account_log'): ?>class="f4_b"<?php endif; ?>><?php echo $this->_var['lang']['view_application']; ?></a>
  644. </td>
  645. </tr>
  646. </table>
  647. <?php endif; ?>
  648. <?php if ($this->_var['action'] == "account_raply"): ?>
  649. <form name="formSurplus" method="post" action="user.php" onSubmit="return submitSurplus()">
  650. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  651. <tr>
  652. <td width="15%" bgcolor="#ffffff"><?php echo $this->_var['lang']['repay_money']; ?>:</td>
  653. <td bgcolor="#ffffff" align="left"><input type="text" name="amount" value="<?php echo htmlspecialchars($this->_var['order']['amount']); ?>" class="border" size="30" />
  654. </td>
  655. </tr>
  656. <tr>
  657. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['process_notic']; ?>:</td>
  658. <td bgcolor="#ffffff" align="left"><textarea name="user_note" cols="55" rows="6" class="border"><?php echo htmlspecialchars($this->_var['order']['user_note']); ?></textarea></td>
  659. </tr>
  660. <tr>
  661. <td bgcolor="#ffffff" colspan="2" align="center">
  662. <input type="hidden" name="surplus_type" value="1" />
  663. <input type="hidden" name="act" value="act_account" />
  664. <input type="submit" name="submit" class="bnt_number4" value="<?php echo $this->_var['lang']['submit_request']; ?>" />
  665. <input type="reset" name="reset" class="bnt_number4" value="<?php echo $this->_var['lang']['button_reset']; ?>" />
  666. </td>
  667. </tr>
  668. </table>
  669. </form>
  670. <?php endif; ?>
  671. <?php if ($this->_var['action'] == "account_deposit"): ?>
  672. <form name="formSurplus" method="post" action="user.php" onSubmit="return submitSurplus()">
  673. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  674. <tr>
  675. <td width="15%" bgcolor="#ffffff"><?php echo $this->_var['lang']['deposit_money']; ?>:</td>
  676. <td align="left" bgcolor="#ffffff"><input type="text" name="amount" class="border" value="<?php echo htmlspecialchars($this->_var['order']['amount']); ?>" size="30" /></td>
  677. </tr>
  678. <tr>
  679. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['process_notic']; ?>:</td>
  680. <td align="left" bgcolor="#ffffff"><textarea name="user_note" cols="55" rows="6" class="border"><?php echo htmlspecialchars($this->_var['order']['user_note']); ?></textarea></td>
  681. </tr>
  682. </table>
  683. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  684. <tr align="center">
  685. <td bgcolor="#ffffff" colspan="3" align="left"><?php echo $this->_var['lang']['payment']; ?>:</td>
  686. </tr>
  687. <tr align="center">
  688. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['pay_name']; ?></td>
  689. <td bgcolor="#ffffff" width="60%"><?php echo $this->_var['lang']['pay_desc']; ?></td>
  690. <td bgcolor="#ffffff" width="17%"><?php echo $this->_var['lang']['pay_fee']; ?></td>
  691. </tr>
  692. <?php $_from = $this->_var['payment']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'list');if (count($_from)):
  693. foreach ($_from AS $this->_var['list']):
  694. ?>
  695. <tr>
  696. <td bgcolor="#ffffff" align="left">
  697. <input type="radio" name="payment_id" value="<?php echo $this->_var['list']['pay_id']; ?>" /><?php echo $this->_var['list']['pay_name']; ?></td>
  698. <td bgcolor="#ffffff" align="left"><?php echo $this->_var['list']['pay_desc']; ?></td>
  699. <td bgcolor="#ffffff" align="center"><?php echo $this->_var['list']['pay_fee']; ?></td>
  700. </tr>
  701. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  702. <tr>
  703. <td bgcolor="#ffffff" colspan="3" align="center">
  704. <input type="hidden" name="surplus_type" value="0" />
  705. <input type="hidden" name="rec_id" value="<?php echo $this->_var['order']['id']; ?>" />
  706. <input type="hidden" name="act" value="act_account" />
  707. <input type="submit" name="submit" class="bnt_number4" value="<?php echo $this->_var['lang']['submit_request']; ?>" />
  708. <input type="reset" name="reset" class="bnt_number4" value="<?php echo $this->_var['lang']['button_reset']; ?>" />
  709. </td>
  710. </tr>
  711. </table>
  712. </form>
  713. <?php endif; ?>
  714. <?php if ($this->_var['action'] == "act_account"): ?>
  715. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  716. <tr>
  717. <td width="25%" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['surplus_amount']; ?></td>
  718. <td width="80%" bgcolor="#ffffff"><?php echo $this->_var['amount']; ?></td>
  719. </tr>
  720. <tr>
  721. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['payment_name']; ?></td>
  722. <td bgcolor="#ffffff"><?php echo $this->_var['payment']['pay_name']; ?></td>
  723. </tr>
  724. <tr>
  725. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['payment_fee']; ?></td>
  726. <td bgcolor="#ffffff"><?php echo $this->_var['pay_fee']; ?></td>
  727. </tr>
  728. <tr>
  729. <td align="right" valign="middle" bgcolor="#ffffff"><?php echo $this->_var['lang']['payment_desc']; ?></td>
  730. <td bgcolor="#ffffff"><?php echo $this->_var['payment']['pay_desc']; ?></td>
  731. </tr>
  732. <tr>
  733. <td colspan="2" bgcolor="#ffffff"><?php echo $this->_var['payment']['pay_button']; ?></td>
  734. </tr>
  735. </table>
  736. <?php endif; ?>
  737. <?php if ($this->_var['action'] == "account_detail"): ?>
  738. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  739. <tr align="center">
  740. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['process_time']; ?></td>
  741. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['surplus_pro_type']; ?></td>
  742. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['money']; ?></td>
  743. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['change_desc']; ?></td>
  744. </tr>
  745. <?php $_from = $this->_var['account_log']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
  746. foreach ($_from AS $this->_var['item']):
  747. ?>
  748. <tr>
  749. <td align="center" bgcolor="#ffffff"><?php echo $this->_var['item']['change_time']; ?></td>
  750. <td align="center" bgcolor="#ffffff"><?php echo $this->_var['item']['type']; ?></td>
  751. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['item']['amount']; ?></td>
  752. <td bgcolor="#ffffff" title="<?php echo $this->_var['item']['change_desc']; ?>">&nbsp;&nbsp;<?php echo $this->_var['item']['short_change_desc']; ?></td>
  753. </tr>
  754. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  755. <tr>
  756. <td colspan="4" align="center" bgcolor="#ffffff"><div align="right"><?php echo $this->_var['lang']['current_surplus']; ?><?php echo $this->_var['surplus_amount']; ?></div></td>
  757. </tr>
  758. </table>
  759. <?php echo $this->fetch('library/pages.lbi'); ?>
  760. <?php endif; ?>
  761. <?php if ($this->_var['action'] == "account_log"): ?>
  762. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  763. <tr align="center">
  764. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['process_time']; ?></td>
  765. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['surplus_pro_type']; ?></td>
  766. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['money']; ?></td>
  767. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['process_notic']; ?></td>
  768. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['admin_notic']; ?></td>
  769. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['is_paid']; ?></td>
  770. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['handle']; ?></td>
  771. </tr>
  772. <?php $_from = $this->_var['account_log']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
  773. foreach ($_from AS $this->_var['item']):
  774. ?>
  775. <tr>
  776. <td align="center" bgcolor="#ffffff"><?php echo $this->_var['item']['add_time']; ?></td>
  777. <td align="left" bgcolor="#ffffff"><?php echo $this->_var['item']['type']; ?></td>
  778. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['item']['amount']; ?></td>
  779. <td align="left" bgcolor="#ffffff"><?php echo $this->_var['item']['short_user_note']; ?></td>
  780. <td align="left" bgcolor="#ffffff"><?php echo $this->_var['item']['short_admin_note']; ?></td>
  781. <td align="center" bgcolor="#ffffff"><?php echo $this->_var['item']['pay_status']; ?></td>
  782. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['item']['handle']; ?>
  783. <?php if (( $this->_var['item']['is_paid'] == 0 && $this->_var['item']['process_type'] == 1 ) || $this->_var['item']['handle']): ?>
  784. <a href="user.php?act=cancel&id=<?php echo $this->_var['item']['id']; ?>" onclick="if (!confirm('<?php echo $this->_var['lang']['confirm_remove_account']; ?>')) return false;"><?php echo $this->_var['lang']['is_cancel']; ?></a>
  785. <?php endif; ?>
  786. </td>
  787. </tr>
  788. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  789. <tr>
  790. <td colspan="7" align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['current_surplus']; ?><?php echo $this->_var['surplus_amount']; ?></td>
  791. </tr>
  792. </table>
  793. <?php echo $this->fetch('library/pages.lbi'); ?>
  794. <?php endif; ?>
  795. <?php if ($this->_var['action'] == 'address_list'): ?>
  796. <div class="General_Title clearfix">
  797. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['consignee_info']; ?></p>&nbsp;</div>
  798. </div>
  799. <div class="clearfix groupList flowBox">
  800. <?php echo $this->smarty_insert_scripts(array('files'=>'utils.js,transport.js,region.js,shopping_flow.js')); ?>
  801. <script type="text/javascript">
  802. region.isAdmin = false;
  803. <?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)):
  804. foreach ($_from AS $this->_var['key'] => $this->_var['item']):
  805. ?>
  806. var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
  807. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  808. onload = function() {
  809. if (!document.all)
  810. {
  811. document.forms['theForm'].reset();
  812. }
  813. }
  814. </script>
  815. <?php $_from = $this->_var['consignee_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('sn', 'consignee');if (count($_from)):
  816. foreach ($_from AS $this->_var['sn'] => $this->_var['consignee']):
  817. ?>
  818. <form action="user.php" method="post" name="theForm" onsubmit="return checkConsignee(this)">
  819. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  820. <tr>
  821. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['country_province']; ?>?</td>
  822. <td colspan="3" align="left" bgcolor="#ffffff"><select name="country" id="selCountries_<?php echo $this->_var['sn']; ?>" onchange="region.changed(this, 1, 'selProvinces_<?php echo $this->_var['sn']; ?>')">
  823. <option value="0"><?php echo $this->_var['lang']['please_select']; ?><?php echo $this->_var['name_of_region']['0']; ?></option>
  824. <?php $_from = $this->_var['country_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'country');if (count($_from)):
  825. foreach ($_from AS $this->_var['country']):
  826. ?>
  827. <option value="<?php echo $this->_var['country']['region_id']; ?>" <?php if ($this->_var['consignee']['country'] == $this->_var['country']['region_id']): ?>selected<?php endif; ?>><?php echo $this->_var['country']['region_name']; ?></option>
  828. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  829. </select>
  830. <select name="province" id="selProvinces_<?php echo $this->_var['sn']; ?>" onchange="region.changed(this, 2, 'selCities_<?php echo $this->_var['sn']; ?>')">
  831. <option value="0"><?php echo $this->_var['lang']['please_select']; ?><?php echo $this->_var['name_of_region']['1']; ?></option>
  832. <?php $_from = $this->_var['province_list'][$this->_var['sn']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'province');if (count($_from)):
  833. foreach ($_from AS $this->_var['province']):
  834. ?>
  835. <option value="<?php echo $this->_var['province']['region_id']; ?>" <?php if ($this->_var['consignee']['province'] == $this->_var['province']['region_id']): ?>selected<?php endif; ?>><?php echo $this->_var['province']['region_name']; ?></option>
  836. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  837. </select>
  838. <select name="city" id="selCities_<?php echo $this->_var['sn']; ?>" onchange="region.changed(this, 3, 'selDistricts_<?php echo $this->_var['sn']; ?>')">
  839. <option value="0"><?php echo $this->_var['lang']['please_select']; ?><?php echo $this->_var['name_of_region']['2']; ?></option>
  840. <?php $_from = $this->_var['city_list'][$this->_var['sn']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'city');if (count($_from)):
  841. foreach ($_from AS $this->_var['city']):
  842. ?>
  843. <option value="<?php echo $this->_var['city']['region_id']; ?>" <?php if ($this->_var['consignee']['city'] == $this->_var['city']['region_id']): ?>selected<?php endif; ?>><?php echo $this->_var['city']['region_name']; ?></option>
  844. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  845. </select>
  846. <select name="district" id="selDistricts_<?php echo $this->_var['sn']; ?>" <?php if (! $this->_var['district_list'][$this->_var['sn']]): ?>style="display:none"<?php endif; ?>>
  847. <option value="0"><?php echo $this->_var['lang']['please_select']; ?><?php echo $this->_var['name_of_region']['3']; ?></option>
  848. <?php $_from = $this->_var['district_list'][$this->_var['sn']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'district');if (count($_from)):
  849. foreach ($_from AS $this->_var['district']):
  850. ?>
  851. <option value="<?php echo $this->_var['district']['region_id']; ?>" <?php if ($this->_var['consignee']['district'] == $this->_var['district']['region_id']): ?>selected<?php endif; ?>><?php echo $this->_var['district']['region_name']; ?></option>
  852. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  853. </select>
  854. <?php echo $this->_var['lang']['require_field']; ?> </td>
  855. </tr>
  856. <tr>
  857. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['consignee_name']; ?>?</td>
  858. <td align="left" bgcolor="#ffffff"><input name="consignee" type="text" class="border" id="consignee_<?php echo $this->_var['sn']; ?>" value="<?php echo htmlspecialchars($this->_var['consignee']['consignee']); ?>" />
  859. <?php echo $this->_var['lang']['require_field']; ?> </td>
  860. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['email_address']; ?>?</td>
  861. <td align="left" bgcolor="#ffffff"><input name="email" type="text" class="border" id="email_<?php echo $this->_var['sn']; ?>" value="<?php echo htmlspecialchars($this->_var['consignee']['email']); ?>" />
  862. <?php echo $this->_var['lang']['require_field']; ?></td>
  863. </tr>
  864. <tr>
  865. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['detailed_address']; ?>?</td>
  866. <td align="left" bgcolor="#ffffff"><input name="address" type="text" class="border" id="address_<?php echo $this->_var['sn']; ?>" value="<?php echo htmlspecialchars($this->_var['consignee']['address']); ?>" />
  867. <?php echo $this->_var['lang']['require_field']; ?></td>
  868. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['postalcode']; ?>?</td>
  869. <td align="left" bgcolor="#ffffff"><input name="zipcode" type="text" class="border" id="zipcode_<?php echo $this->_var['sn']; ?>" value="<?php echo htmlspecialchars($this->_var['consignee']['zipcode']); ?>" /></td>
  870. </tr>
  871. <tr>
  872. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['phone']; ?>?</td>
  873. <td align="left" bgcolor="#ffffff"><input name="tel" type="text" class="border" id="tel_<?php echo $this->_var['sn']; ?>" value="<?php echo htmlspecialchars($this->_var['consignee']['tel']); ?>" />
  874. <?php echo $this->_var['lang']['require_field']; ?></td>
  875. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['backup_phone']; ?>?</td>
  876. <td align="left" bgcolor="#ffffff"><input name="mobile" type="text" class="border" id="mobile_<?php echo $this->_var['sn']; ?>" value="<?php echo htmlspecialchars($this->_var['consignee']['mobile']); ?>" /></td>
  877. </tr>
  878. <tr>
  879. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['sign_building']; ?>?</td>
  880. <td align="left" bgcolor="#ffffff"><input name="sign_building" type="text" class="border" id="sign_building_<?php echo $this->_var['sn']; ?>" value="<?php echo htmlspecialchars($this->_var['consignee']['sign_building']); ?>" /></td>
  881. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['deliver_goods_time']; ?>?</td>
  882. <td align="left" bgcolor="#ffffff"><input name="best_time" type="text" class="border" id="best_time_<?php echo $this->_var['sn']; ?>" value="<?php echo htmlspecialchars($this->_var['consignee']['best_time']); ?>" /></td>
  883. </tr>
  884. <tr>
  885. <td align="right" bgcolor="#ffffff">&nbsp;</td>
  886. <td colspan="3" align="center" bgcolor="#ffffff">
  887. <?php if ($this->_var['consignee']['consignee'] && $this->_var['consignee']['email']): ?>
  888. <input type="submit" name="submit" class="bnt_number4" value="<?php echo $this->_var['lang']['confirm_edit']; ?>" />
  889. <input name="button" type="button" class="bnt_number2" onclick="if (confirm('<?php echo $this->_var['lang']['confirm_drop_address']; ?>'))location.href='user.php?act=drop_consignee&id=<?php echo $this->_var['consignee']['address_id']; ?>'" value="<?php echo $this->_var['lang']['drop']; ?>" />
  890. <?php else: ?>
  891. <input type="submit" name="submit" class="bnt_number6" value="<?php echo $this->_var['lang']['add_address']; ?>"/>
  892. <?php endif; ?>
  893. <input type="hidden" name="act" value="act_edit_address" />
  894. <input name="address_id" type="hidden" value="<?php echo $this->_var['consignee']['address_id']; ?>" />
  895. </td>
  896. </tr>
  897. </table>
  898. </form>
  899. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  900. </div>
  901. <?php endif; ?>
  902. <?php if ($this->_var['action'] == 'transform_points'): ?>
  903. <div class="General_Title clearfix">
  904. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['transform_points']; ?></p>&nbsp;</div>
  905. </div>
  906. <div class="clearfix groupList flowBox">
  907. <?php if ($this->_var['exchange_type'] == 'ucenter'): ?>
  908. <form action="user.php" method="post" name="transForm" onsubmit="return calcredit();">
  909. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  910. <tr>
  911. <th width="120" bgcolor="#FFFFFF" align="right" valign="top"><?php echo $this->_var['lang']['cur_points']; ?>:</th>
  912. <td bgcolor="#FFFFFF">
  913. <label for="pay_points"><?php echo $this->_var['lang']['exchange_points']['1']; ?>:</label><input type="text" size="15" id="pay_points" name="pay_points" value="<?php echo $this->_var['shop_points']['pay_points']; ?>" style="border:0;border-bottom:1px solid #DADADA;" readonly="readonly" /><br />
  914. <label for="rank_points"><?php echo $this->_var['lang']['exchange_points']['0']; ?>:</label><input type="text" size="15" id="rank_points" name="rank_points" value="<?php echo $this->_var['shop_points']['rank_points']; ?>" style="border:0;border-bottom:1px solid #DADADA;" readonly="readonly" />
  915. </td>
  916. </tr>
  917. <tr><td bgcolor="#FFFFFF">&nbsp;</td>
  918. <td bgcolor="#FFFFFF">&nbsp;</td>
  919. </tr>
  920. <tr>
  921. <th align="right" bgcolor="#FFFFFF"><label for="amount"><?php echo $this->_var['lang']['exchange_amount']; ?>:</label></th>
  922. <td bgcolor="#FFFFFF"><input size="15" name="amount" id="amount" value="0" onkeyup="calcredit();" type="text" class="border" />
  923. <select name="fromcredits" id="fromcredits" onchange="calcredit();">
  924. <?php echo $this->html_options(array('options'=>$this->_var['lang']['exchange_points'],'selected'=>$this->_var['selected_org'])); ?>
  925. </select>
  926. </td>
  927. </tr>
  928. <tr>
  929. <th align="right" bgcolor="#FFFFFF"><label for="desamount"><?php echo $this->_var['lang']['exchange_desamount']; ?>:</label></th>
  930. <td bgcolor="#FFFFFF"><input type="text" name="desamount" id="desamount" disabled="disabled" value="0" size="15" class="border" />
  931. <select name="tocredits" id="tocredits" onchange="calcredit();">
  932. <?php echo $this->html_options(array('options'=>$this->_var['to_credits_options'],'selected'=>$this->_var['selected_dst'])); ?>
  933. </select>
  934. </td>
  935. </tr>
  936. <tr>
  937. <th align="right" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['exchange_ratio']; ?>:</th>
  938. <td bgcolor="#FFFFFF">1 <span id="orgcreditunit"><?php echo $this->_var['orgcreditunit']; ?></span> <span id="orgcredittitle"><?php echo $this->_var['orgcredittitle']; ?></span> <?php echo $this->_var['lang']['exchange_action']; ?> <span id="descreditamount"><?php echo $this->_var['descreditamount']; ?></span> <span id="descreditunit"><?php echo $this->_var['descreditunit']; ?></span> <span id="descredittitle"><?php echo $this->_var['descredittitle']; ?></span></td>
  939. </tr>
  940. <tr><td bgcolor="#FFFFFF">&nbsp;</td>
  941. <td bgcolor="#FFFFFF"><input type="hidden" name="act" value="act_transform_ucenter_points" /><input type="submit" class="bnt_number2" name="transfrom" value="<?php echo $this->_var['lang']['transform']; ?>" /></td></tr>
  942. </table>
  943. </form>
  944. <script type="text/javascript">
  945. <?php $_from = $this->_var['lang']['exchange_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'lang_js');if (count($_from)):
  946. foreach ($_from AS $this->_var['key'] => $this->_var['lang_js']):
  947. ?>
  948. var <?php echo $this->_var['key']; ?> = '<?php echo $this->_var['lang_js']; ?>';
  949. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  950. var out_exchange_allow = new Array();
  951. <?php $_from = $this->_var['out_exchange_allow']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'ratio');if (count($_from)):
  952. foreach ($_from AS $this->_var['key'] => $this->_var['ratio']):
  953. ?>
  954. out_exchange_allow['<?php echo $this->_var['key']; ?>'] = '<?php echo $this->_var['ratio']; ?>';
  955. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  956. function calcredit()
  957. {
  958. var frm = document.forms['transForm'];
  959. var src_credit = frm.fromcredits.value;
  960. var dest_credit = frm.tocredits.value;
  961. var in_credit = frm.amount.value;
  962. var org_title = frm.fromcredits[frm.fromcredits.selectedIndex].innerHTML;
  963. var dst_title = frm.tocredits[frm.tocredits.selectedIndex].innerHTML;
  964. var radio = 0;
  965. var shop_points = ['rank_points', 'pay_points'];
  966. if (parseFloat(in_credit) > parseFloat(document.getElementById(shop_points[src_credit]).value))
  967. {
  968. alert(balance.replace('{%s}', org_title));
  969. frm.amount.value = frm.desamount.value = 0;
  970. return false;
  971. }
  972. if (typeof(out_exchange_allow[dest_credit+'|'+src_credit]) == 'string')
  973. {
  974. radio = (1 / parseFloat(out_exchange_allow[dest_credit+'|'+src_credit])).toFixed(2);
  975. }
  976. document.getElementById('orgcredittitle').innerHTML = org_title;
  977. document.getElementById('descreditamount').innerHTML = radio;
  978. document.getElementById('descredittitle').innerHTML = dst_title;
  979. if (in_credit > 0)
  980. {
  981. if (typeof(out_exchange_allow[dest_credit+'|'+src_credit]) == 'string')
  982. {
  983. frm.desamount.value = Math.floor(parseFloat(in_credit) / parseFloat(out_exchange_allow[dest_credit+'|'+src_credit]));
  984. frm.transfrom.disabled = false;
  985. return true;
  986. }
  987. else
  988. {
  989. frm.desamount.value = deny;
  990. frm.transfrom.disabled = true;
  991. return false;
  992. }
  993. }
  994. else
  995. {
  996. return false;
  997. }
  998. }
  999. </script>
  1000. <?php else: ?>
  1001. <b><?php echo $this->_var['lang']['cur_points']; ?>:</b>
  1002. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  1003. <tr>
  1004. <td width="30%" valign="top" bgcolor="#FFFFFF"><table border="0">
  1005. <?php $_from = $this->_var['bbs_points']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'points');if (count($_from)):
  1006. foreach ($_from AS $this->_var['points']):
  1007. ?>
  1008. <tr>
  1009. <th><?php echo $this->_var['points']['title']; ?>:</th>
  1010. <td width="120" style="border-bottom:1px solid #DADADA;"><?php echo $this->_var['points']['value']; ?></td>
  1011. </tr>
  1012. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  1013. </table></td>
  1014. <td width="50%" valign="top" bgcolor="#FFFFFF"><table>
  1015. <tr>
  1016. <th><?php echo $this->_var['lang']['pay_points']; ?>:</th>
  1017. <td width="120" style="border-bottom:1px solid #DADADA;"><?php echo $this->_var['shop_points']['pay_points']; ?></td>
  1018. </tr>
  1019. <tr>
  1020. <th><?php echo $this->_var['lang']['rank_points']; ?>:</th>
  1021. <td width="120" style="border-bottom:1px solid #DADADA;"><?php echo $this->_var['shop_points']['rank_points']; ?></td>
  1022. </tr>
  1023. </table></td>
  1024. </tr>
  1025. </table>
  1026. <br />
  1027. <b><?php echo $this->_var['lang']['rule_list']; ?>:</b>
  1028. <ul>
  1029. <?php $_from = $this->_var['rule_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rule');if (count($_from)):
  1030. foreach ($_from AS $this->_var['rule']):
  1031. ?>
  1032. <li>"<?php echo $this->_var['rule']['from']; ?>" <?php echo $this->_var['lang']['transform']; ?> "<?php echo $this->_var['rule']['to']; ?>" <?php echo $this->_var['lang']['rate_is']; ?> <?php echo $this->_var['rule']['rate']; ?>
  1033. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  1034. </ul>
  1035. <form action="user.php" method="post" name="theForm">
  1036. <table width="100%" border="1" align="center" cellpadding="5" cellspacing="0" style="border-collapse:collapse;border:1px solid #DADADA;">
  1037. <tr style="background:#F1F1F1;">
  1038. <th><?php echo $this->_var['lang']['rule']; ?></th>
  1039. <th><?php echo $this->_var['lang']['transform_num']; ?></th>
  1040. <th><?php echo $this->_var['lang']['transform_result']; ?></th>
  1041. </tr>
  1042. <tr>
  1043. <td>
  1044. <select name="rule_index" onchange="changeRule()">
  1045. <?php $_from = $this->_var['rule_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'rule');if (count($_from)):
  1046. foreach ($_from AS $this->_var['key'] => $this->_var['rule']):
  1047. ?>
  1048. <option value="<?php echo $this->_var['key']; ?>"><?php echo $this->_var['rule']['from']; ?>-><?php echo $this->_var['rule']['to']; ?></option>
  1049. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  1050. </select>
  1051. </td>
  1052. <td>
  1053. <input type="text" name="num" value="0" onkeyup="calPoints()"/>
  1054. </td>
  1055. <td><span id="ECS_RESULT">0</span></td>
  1056. </tr>
  1057. <tr>
  1058. <td colspan="3" align="center"><input type="hidden" name="act" value="act_transform_points" /><input type="submit" class="bnt_number4" value="<?php echo $this->_var['lang']['transform']; ?>" /></td>
  1059. </tr>
  1060. </table>
  1061. </form>
  1062. <script type="text/javascript">
  1063. //<![CDATA[
  1064. var rule_list = new Object();
  1065. var invalid_input = '<?php echo $this->_var['lang']['invalid_input']; ?>';
  1066. <?php $_from = $this->_var['rule_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'rule');if (count($_from)):
  1067. foreach ($_from AS $this->_var['key'] => $this->_var['rule']):
  1068. ?>
  1069. rule_list['<?php echo $this->_var['key']; ?>'] = '<?php echo $this->_var['rule']['rate']; ?>';
  1070. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  1071. function calPoints()
  1072. {
  1073. var frm = document.forms['theForm'];
  1074. var rule_index = frm.elements['rule_index'].value;
  1075. var num = parseInt(frm.elements['num'].value);
  1076. var rate = rule_list[rule_index];
  1077. if (isNaN(num) || num < 0 || num != frm.elements['num'].value)
  1078. {
  1079. document.getElementById('ECS_RESULT').innerHTML = invalid_input;
  1080. rerutn;
  1081. }
  1082. var arr = rate.split(':');
  1083. var from = parseInt(arr[0]);
  1084. var to = parseInt(arr[1]);
  1085. if (from <=0 || to <=0)
  1086. {
  1087. from = 1;
  1088. to = 0;
  1089. }
  1090. document.getElementById('ECS_RESULT').innerHTML = parseInt(num * to / from);
  1091. }
  1092. function changeRule()
  1093. {
  1094. document.forms['theForm'].elements['num'].value = 0;
  1095. document.getElementById('ECS_RESULT').innerHTML = 0;
  1096. }
  1097. //]]>
  1098. </script>
  1099. <?php endif; ?>
  1100. </div>
  1101. <?php endif; ?>
  1102. </div>
  1103. </div>
  1104. <?php echo $this->fetch('library/page_footer.lbi'); ?>
  1105. </body>
  1106. <script type="text/javascript">
  1107. <?php $_from = $this->_var['lang']['clips_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
  1108. foreach ($_from AS $this->_var['key'] => $this->_var['item']):
  1109. ?>
  1110. var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
  1111. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  1112. </script>
  1113. </html>