PageRenderTime 58ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/temp/compiled/user_clips.dwt.php

https://bitbucket.org/luxi78/fengyu
PHP | 649 lines | 591 code | 51 blank | 7 comment | 77 complexity | 483372d059230432480c2ea64b5bb6bb 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'=>'transport.js,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'] == 'default'): ?>
  24. <div class="border user_padd clearfix">
  25. <font class="f1"><b class="f4_b"><?php echo $this->_var['info']['username']; ?></b> <?php echo $this->_var['lang']['welcome_to']; ?> <?php echo $this->_var['info']['shop_name']; ?>?</font><br />
  26. <?php echo $this->_var['lang']['last_time']; ?>: <?php echo $this->_var['info']['last_time']; ?><br />
  27. <?php echo $this->_var['rank_name']; ?> <?php echo $this->_var['next_rank_name']; ?><br />
  28. <?php if ($this->_var['info']['is_validate'] == 0): ?>
  29. <?php echo $this->_var['lang']['not_validated']; ?> <a href="javascript:sendHashMail()" style="color:#006bd0;"><?php echo $this->_var['lang']['resend_hash_mail']; ?></a><br />
  30. <?php endif; ?>
  31. <div class="user_notice">
  32. <img src="themes/clothing/images/note.gif" alt="note" />&nbsp;<?php echo $this->_var['user_notice']; ?>
  33. </div>
  34. <br /><br />
  35. <div style="width:350px; float:left;">
  36. <h5><?php echo $this->_var['lang']['your_account']; ?></h5>
  37. <?php echo $this->_var['lang']['your_surplus']; ?>:<a href="user.php?act=account_log" style="color:#006bd0;"><?php echo $this->_var['info']['surplus']; ?></a><br />
  38. <?php if ($this->_var['info']['credit_line'] > 0): ?>
  39. <?php echo $this->_var['lang']['credit_line']; ?>:<?php echo $this->_var['info']['formated_credit_line']; ?><br />
  40. <?php endif; ?>
  41. <?php echo $this->_var['lang']['your_bonus']; ?>:<a href="user.php?act=bonus" style="color:#006bd0;"><?php echo $this->_var['info']['bonus']; ?></a><br />
  42. <?php echo $this->_var['lang']['your_integral']; ?>:<?php echo $this->_var['info']['integral']; ?><br />
  43. </div>
  44. <div style="width:350px; float:right;">
  45. <h5><?php echo $this->_var['lang']['your_notice']; ?></h5>
  46. <?php $_from = $this->_var['prompt']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
  47. foreach ($_from AS $this->_var['item']):
  48. ?>
  49. <?php echo $this->_var['item']['text']; ?><br />
  50. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  51. <?php echo $this->_var['lang']['last_month_order']; ?><?php echo $this->_var['info']['order_count']; ?><?php echo $this->_var['lang']['order_unit']; ?><br />
  52. <?php if ($this->_var['info']['shipped_order']): ?>
  53. <?php echo $this->_var['lang']['please_received']; ?><br />
  54. <?php $_from = $this->_var['info']['shipped_order']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
  55. foreach ($_from AS $this->_var['item']):
  56. ?>
  57. <a href="user.php?act=order_detail&order_id=<?php echo $this->_var['item']['order_id']; ?>" style="color:#006bd0;"><?php echo $this->_var['item']['order_sn']; ?></a>
  58. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  59. <?php endif; ?>
  60. </div>
  61. </div>
  62. <?php endif; ?>
  63. <?php if ($this->_var['action'] == 'message_list'): ?>
  64. <div class="General_Title clearfix">
  65. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['label_message']; ?></p>&nbsp;</div>
  66. </div>
  67. <div class="clearfix groupList flowBox">
  68. <?php $_from = $this->_var['message_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'message');if (count($_from)):
  69. foreach ($_from AS $this->_var['key'] => $this->_var['message']):
  70. ?>
  71. <div style="float:left;">
  72. <b><?php echo $this->_var['message']['msg_type']; ?>:</b>&nbsp;&nbsp;<font class="f4"><?php echo $this->_var['message']['msg_title']; ?></font> (<?php echo $this->_var['message']['msg_time']; ?>)
  73. </div>
  74. <div style="float:right;">
  75. <a href="user.php?act=del_msg&amp;id=<?php echo $this->_var['key']; ?>&amp;order_id=<?php echo $this->_var['message']['order_id']; ?>" title="<?php echo $this->_var['lang']['drop']; ?>" onclick="if (!confirm('<?php echo $this->_var['lang']['confirm_remove_msg']; ?>')) return false;" class="f6"><?php echo $this->_var['lang']['drop']; ?></a>
  76. </div>
  77. <div style="clear:both; border-bottom:1px solid #f5f5f5; margin:8px 0;">
  78. <?php echo $this->_var['message']['msg_content']; ?>
  79. <?php if ($this->_var['message']['message_img']): ?>
  80. <div align="right">
  81. <a href="data/feedbackimg/<?php echo $this->_var['message']['message_img']; ?>" target="_bank" class="f6"><?php echo $this->_var['lang']['view_upload_file']; ?></a>
  82. </div>
  83. <?php endif; ?>
  84. <br />
  85. <?php if ($this->_var['message']['re_msg_content']): ?>
  86. <a href="mailto:<?php echo $this->_var['message']['re_user_email']; ?>"><font class="f1"><?php echo $this->_var['lang']['shopman_reply']; ?></font></a> (<?php echo $this->_var['message']['re_msg_time']; ?>)<br />
  87. <?php echo $this->_var['message']['re_msg_content']; ?>
  88. <?php endif; ?>
  89. </div>
  90. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  91. <?php if ($this->_var['message_list']): ?>
  92. <div class="f_r">
  93. <?php echo $this->fetch('library/pages.lbi'); ?>
  94. </div>
  95. <?php endif; ?>
  96. <form action="user.php" method="post" enctype="multipart/form-data" name="formMsg" onSubmit="return submitMsg()">
  97. <table width="100%" border="0" cellpadding="3">
  98. <?php if ($this->_var['order_info']): ?>
  99. <tr>
  100. <td align="right"><?php echo $this->_var['lang']['order_number']; ?></td>
  101. <td>
  102. <a href ="<?php echo $this->_var['order_info']['url']; ?>"><img src="themes/clothing/images/note.gif" /><?php echo $this->_var['order_info']['order_sn']; ?></a>
  103. <input name="msg_type" type="hidden" value="5" />
  104. <input name="order_id" type="hidden" value="<?php echo $this->_var['order_info']['order_id']; ?>" class="border" />
  105. </td>
  106. </tr>
  107. <?php else: ?>
  108. <tr>
  109. <td align="right"><?php echo $this->_var['lang']['message_type']; ?>?</td>
  110. <td><input name="msg_type" type="radio" value="0" checked="checked" />
  111. <?php echo $this->_var['lang']['type']['0']; ?>
  112. <input type="radio" name="msg_type" value="1" />
  113. <?php echo $this->_var['lang']['type']['1']; ?>
  114. <input type="radio" name="msg_type" value="2" />
  115. <?php echo $this->_var['lang']['type']['2']; ?>
  116. <input type="radio" name="msg_type" value="3" />
  117. <?php echo $this->_var['lang']['type']['3']; ?>
  118. <input type="radio" name="msg_type" value="4" />
  119. <?php echo $this->_var['lang']['type']['4']; ?> </td>
  120. </tr>
  121. <?php endif; ?>
  122. <tr>
  123. <td align="right"><?php echo $this->_var['lang']['message_title']; ?>?</td>
  124. <td><input name="msg_title" type="text" size="30" class="border" /></td>
  125. </tr>
  126. <tr>
  127. <td align="right" valign="top"><?php echo $this->_var['lang']['message_content']; ?>?</td>
  128. <td><textarea name="msg_content" cols="50" rows="4" wrap="virtual" class="border"></textarea></td>
  129. </tr>
  130. <tr>
  131. <td align="right"><?php echo $this->_var['lang']['upload_img']; ?>?</td>
  132. <td><input type="file" name="message_img" size="45" class="border" /></td>
  133. </tr>
  134. <tr>
  135. <td>&nbsp;</td>
  136. <td><input type="hidden" name="act" value="act_add_message" />
  137. <input type="submit" value="<?php echo $this->_var['lang']['submit']; ?>" class="bnt_number2" />
  138. </td>
  139. </tr>
  140. <tr>
  141. <td>&nbsp;</td>
  142. <td>
  143. <?php echo $this->_var['lang']['img_type_tips']; ?><br />
  144. <?php echo $this->_var['lang']['img_type_list']; ?>
  145. </td>
  146. </tr>
  147. </table>
  148. </form>
  149. </div>
  150. <?php endif; ?>
  151. <?php if ($this->_var['action'] == 'comment_list'): ?>
  152. <div class="General_Title clearfix">
  153. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['label_comment']; ?></p>&nbsp;</div>
  154. </div>
  155. <div class="clearfix groupList flowBox">
  156. <?php $_from = $this->_var['comment_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'comment');if (count($_from)):
  157. foreach ($_from AS $this->_var['comment']):
  158. ?>
  159. <div style="float:left;">
  160. <b><?php if ($this->_var['comment']['comment_type'] == '0'): ?><?php echo $this->_var['lang']['goods_comment']; ?><?php else: ?><?php echo $this->_var['lang']['article_comment']; ?><?php endif; ?>: </b><font class="f4"><?php echo $this->_var['comment']['cmt_name']; ?></font>&nbsp;&nbsp;(<?php echo $this->_var['comment']['formated_add_time']; ?>)
  161. </div>
  162. <div style="float:right;">
  163. <a href="user.php?act=del_cmt&amp;id=<?php echo $this->_var['comment']['comment_id']; ?>" title="<?php echo $this->_var['lang']['drop']; ?>" onclick="if (!confirm('<?php echo $this->_var['lang']['confirm_remove_msg']; ?>')) return false;" class="f6"><?php echo $this->_var['lang']['drop']; ?></a>
  164. </div>
  165. <div style="clear:both; border-bottom:1px solid #f5f5f5; margin:8px 0;">
  166. <?php echo $this->_var['comment']['content']; ?><br />
  167. <?php if ($this->_var['comment']['reply_content']): ?>
  168. <b><?php echo $this->_var['lang']['reply_comment']; ?>?</b><br />
  169. <?php echo $this->_var['comment']['reply_content']; ?>
  170. <?php endif; ?>
  171. </div>
  172. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  173. <?php if ($this->_var['comment_list']): ?>
  174. <?php echo $this->fetch('library/pages.lbi'); ?>
  175. <?php else: ?>
  176. <?php echo $this->_var['lang']['no_comments']; ?>
  177. <?php endif; ?>
  178. </div>
  179. <?php endif; ?>
  180. <?php if ($this->_var['action'] == 'tag_list'): ?>
  181. <div class="General_Title clearfix">
  182. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['label_tag']; ?></p>&nbsp;</div>
  183. </div>
  184. <div class="clearfix groupList flowBox">
  185. <?php if ($this->_var['tags']): ?>
  186. <?php $_from = $this->_var['tags']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'tag');if (count($_from)):
  187. foreach ($_from AS $this->_var['tag']):
  188. ?>
  189. <a href="search.php?keywords=<?php echo urlencode($this->_var['tag']['tag_words']); ?>"><?php echo htmlspecialchars($this->_var['tag']['tag_words']); ?></a> <a href="user.php?act=act_del_tag&amp;tag_words=<?php echo urlencode($this->_var['tag']['tag_words']); ?>" onclick="if (!confirm('<?php echo $this->_var['lang']['confirm_drop_tag']; ?>')) return false;" title="<?php echo $this->_var['lang']['drop']; ?>"><img src="themes/clothing/images/drop.gif" alt="<?php echo $this->_var['lang']['drop']; ?>" /></a>&nbsp;&nbsp;
  190. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  191. <?php else: ?>
  192. <div class="empty"><?php echo $this->_var['lang']['no_tag']; ?></div>
  193. <?php endif; ?>
  194. </div>
  195. <?php endif; ?>
  196. <?php if ($this->_var['action'] == 'collection_list'): ?>
  197. <?php echo $this->smarty_insert_scripts(array('files'=>'transport.js,utils.js')); ?>
  198. <div class="General_Title clearfix">
  199. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['label_collection']; ?></p>&nbsp;</div>
  200. </div>
  201. <div class="clearfix groupList flowBox">
  202. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  203. <tr align="center">
  204. <th width="35%" bgcolor="#ffffff"><?php echo $this->_var['lang']['goods_name']; ?></th>
  205. <th width="30%" bgcolor="#ffffff"><?php echo $this->_var['lang']['price']; ?></th>
  206. <th width="35%" bgcolor="#ffffff"><?php echo $this->_var['lang']['handle']; ?></th>
  207. </tr>
  208. <?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
  209. foreach ($_from AS $this->_var['goods']):
  210. ?>
  211. <tr>
  212. <td bgcolor="#ffffff"><a href="<?php echo $this->_var['goods']['url']; ?>" class="f6"><?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?></a></td>
  213. <td bgcolor="#ffffff"><?php if ($this->_var['goods']['promote_price'] != ""): ?>
  214. <?php echo $this->_var['lang']['promote_price']; ?><span class="goods-price"><?php echo $this->_var['goods']['promote_price']; ?></span>
  215. <?php else: ?>
  216. <?php echo $this->_var['lang']['shop_price']; ?><span class="goods-price"><?php echo $this->_var['goods']['shop_price']; ?></span>
  217. <?php endif; ?> </td>
  218. <td align="center" bgcolor="#ffffff">
  219. <?php if ($this->_var['goods']['is_attention']): ?>
  220. <a href="javascript:if (confirm('<?php echo $this->_var['lang']['del_attention']; ?>')) location.href='user.php?act=del_attention&rec_id=<?php echo $this->_var['goods']['rec_id']; ?>'" class="f6"><?php echo $this->_var['lang']['no_attention']; ?></a>
  221. <?php else: ?>
  222. <a href="javascript:if (confirm('<?php echo $this->_var['lang']['add_to_attention']; ?>')) location.href='user.php?act=add_to_attention&rec_id=<?php echo $this->_var['goods']['rec_id']; ?>'" class="f6"><?php echo $this->_var['lang']['attention']; ?></a>
  223. <?php endif; ?>
  224. <a href="javascript:addToCart(<?php echo $this->_var['goods']['goods_id']; ?>)" class="f6"><?php echo $this->_var['lang']['add_to_cart']; ?></a> <a href="javascript:if (confirm('<?php echo $this->_var['lang']['remove_collection_confirm']; ?>')) location.href='user.php?act=delete_collection&collection_id=<?php echo $this->_var['goods']['rec_id']; ?>'" class="f6"><?php echo $this->_var['lang']['drop']; ?></a>
  225. </td>
  226. </tr>
  227. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  228. </table>
  229. </div>
  230. <?php echo $this->fetch('library/pages.lbi'); ?>
  231. <div class="General_Title clearfix">
  232. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['label_affiliate']; ?></p>&nbsp;</div>
  233. </div>
  234. <div class="clearfix groupList flowBox">
  235. <form name="theForm" method="post" action="">
  236. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  237. <tr>
  238. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['label_need_image']; ?></td>
  239. <td bgcolor="#ffffff">
  240. <select name="need_image" id="need_image" class="border">
  241. <option value="true" selected><?php echo $this->_var['lang']['need']; ?></option>
  242. <option value="false"><?php echo $this->_var['lang']['need_not']; ?></option>
  243. </select>
  244. </td>
  245. </tr>
  246. <tr>
  247. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['label_goods_num']; ?></td>
  248. <td bgcolor="#ffffff">
  249. <input name="goods_num" type="text" id="goods_num" value="6" class="border" />
  250. </td>
  251. </tr>
  252. <tr>
  253. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['label_arrange']; ?></td>
  254. <td bgcolor="#ffffff"><select name="arrange" id="arrange" class="border">
  255. <option value="h" selected><?php echo $this->_var['lang']['horizontal']; ?></option>
  256. <option value="v"><?php echo $this->_var['lang']['verticle']; ?></option>
  257. </select></td>
  258. </tr>
  259. <tr>
  260. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['label_rows_num']; ?></td>
  261. <td bgcolor="#ffffff"><input name="rows_num" type="text" id="rows_num" value="1" class="inputBg" /></td>
  262. </tr>
  263. <tr>
  264. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['label_charset']; ?></td>
  265. <td bgcolor="#ffffff"><select name="charset" id="charset" class="border">
  266. <?php echo $this->html_options(array('options'=>$this->_var['lang_list'])); ?>
  267. </select></td>
  268. </tr>
  269. <tr>
  270. <td colspan="2" align="center" bgcolor="#ffffff">
  271. <input type="button" name="gen_code" value="<?php echo $this->_var['lang']['generate']; ?>" onclick="genCode()" class="bnt_number4" />
  272. </td>
  273. </tr>
  274. <tr>
  275. <td colspan="2" align="center" bgcolor="#ffffff"><textarea name="code" cols="80" rows="5" id="code" class="border"></textarea></td>
  276. </tr>
  277. </table>
  278. </form>
  279. <script language="JavaScript">
  280. var elements = document.forms['theForm'].elements;
  281. var url = '<?php echo $this->_var['url']; ?>';
  282. var u = '<?php echo $this->_var['user_id']; ?>';
  283. /**
  284. * ????
  285. */
  286. function genCode()
  287. {
  288. // ????
  289. if (isNaN(parseInt(elements['goods_num'].value)))
  290. {
  291. alert('<?php echo $this->_var['lang']['goods_num_must_be_int']; ?>');
  292. return;
  293. }
  294. if (elements['goods_num'].value < 1)
  295. {
  296. alert('<?php echo $this->_var['lang']['goods_num_must_over_0']; ?>');
  297. return;
  298. }
  299. // ????
  300. var code = '\<script src=\"' + url + 'goods_script.php?';
  301. code += 'need_image=' + elements['need_image'].value + '&';
  302. code += 'goods_num=' + elements['goods_num'].value + '&';
  303. code += 'arrange=' + elements['arrange'].value + '&';
  304. code += 'charset=' + elements['charset'].value + '&u=' + u;
  305. code += '\"\>\</script\>';
  306. elements['code'].value = code;
  307. elements['code'].select();
  308. if (Browser.isIE)
  309. {
  310. window.clipboardData.setData("Text",code);
  311. }
  312. }
  313. var compare_no_goods = "<?php echo $this->_var['lang']['compare_no_goods']; ?>";
  314. var btn_buy = "<?php echo $this->_var['lang']['btn_buy']; ?>";
  315. var is_cancel = "<?php echo $this->_var['lang']['is_cancel']; ?>";
  316. var select_spe = "<?php echo $this->_var['lang']['select_spe']; ?>";
  317. </script>
  318. </div>
  319. <?php endif; ?>
  320. <?php if ($this->_var['action'] == 'booking_list'): ?>
  321. <div class="General_Title clearfix">
  322. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['label_booking']; ?></p>&nbsp;</div>
  323. </div>
  324. <div class="clearfix groupList flowBox">
  325. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  326. <tr align="center">
  327. <td width="20%" bgcolor="#ffffff"><?php echo $this->_var['lang']['booking_goods_name']; ?></td>
  328. <td width="10%" bgcolor="#ffffff"><?php echo $this->_var['lang']['booking_amount']; ?></td>
  329. <td width="20%" bgcolor="#ffffff"><?php echo $this->_var['lang']['booking_time']; ?></td>
  330. <td width="35%" bgcolor="#ffffff"><?php echo $this->_var['lang']['process_desc']; ?></td>
  331. <td width="15%" bgcolor="#ffffff"><?php echo $this->_var['lang']['handle']; ?></td>
  332. </tr>
  333. <?php $_from = $this->_var['booking_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
  334. foreach ($_from AS $this->_var['item']):
  335. ?>
  336. <tr>
  337. <td align="left" bgcolor="#ffffff"><a href="<?php echo $this->_var['item']['url']; ?>" target="_blank" class="f6"><?php echo $this->_var['item']['goods_name']; ?></a></td>
  338. <td align="center" bgcolor="#ffffff"><?php echo $this->_var['item']['goods_number']; ?></td>
  339. <td align="center" bgcolor="#ffffff"><?php echo $this->_var['item']['booking_time']; ?></td>
  340. <td align="left" bgcolor="#ffffff"><?php echo $this->_var['item']['dispose_note']; ?></td>
  341. <td align="center" bgcolor="#ffffff"><a href="javascript:if (confirm('<?php echo $this->_var['lang']['confirm_remove_account']; ?>')) location.href='user.php?act=act_del_booking&id=<?php echo $this->_var['item']['rec_id']; ?>'" class="f6"><?php echo $this->_var['lang']['drop']; ?></a> </td>
  342. </tr>
  343. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  344. </table>
  345. </div>
  346. <?php endif; ?>
  347. <?php if ($this->_var['action'] == 'add_booking'): ?>
  348. <?php echo $this->smarty_insert_scripts(array('files'=>'utils.js')); ?>
  349. <script type="text/javascript">
  350. <?php $_from = $this->_var['lang']['booking_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
  351. foreach ($_from AS $this->_var['key'] => $this->_var['item']):
  352. ?>
  353. var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
  354. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  355. </script>
  356. <div class="General_Title clearfix">
  357. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['add']; ?><?php echo $this->_var['lang']['label_booking']; ?></p>&nbsp;</div>
  358. </div>
  359. <div class="clearfix groupList flowBox">
  360. <form action="user.php" method="post" name="formBooking" onsubmit="return addBooking();">
  361. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  362. <tr>
  363. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['booking_goods_name']; ?></td>
  364. <td bgcolor="#ffffff"><?php echo $this->_var['info']['goods_name']; ?></td>
  365. </tr>
  366. <tr>
  367. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['booking_amount']; ?>:</td>
  368. <td bgcolor="#ffffff"><input name="number" type="text" value="<?php echo $this->_var['info']['goods_number']; ?>" class="border" /></td>
  369. </tr>
  370. <tr>
  371. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['describe']; ?>:</td>
  372. <td bgcolor="#ffffff"><textarea name="desc" cols="50" rows="5" wrap="virtual" class="border"><?php echo htmlspecialchars($this->_var['info']['goods_desc']); ?></textarea>
  373. </td>
  374. </tr>
  375. <tr>
  376. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['contact_username']; ?>:</td>
  377. <td bgcolor="#ffffff"><input name="linkman" type="text" value="<?php echo htmlspecialchars($this->_var['info']['consignee']); ?>" size="25" class="border"/>
  378. </td>
  379. </tr>
  380. <tr>
  381. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['email_address']; ?>:</td>
  382. <td bgcolor="#ffffff"><input name="email" type="text" value="<?php echo htmlspecialchars($this->_var['info']['email']); ?>" size="25" class="border" /></td>
  383. </tr>
  384. <tr>
  385. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['contact_phone']; ?>:</td>
  386. <td bgcolor="#ffffff"><input name="tel" type="text" value="<?php echo htmlspecialchars($this->_var['info']['tel']); ?>" size="25" class="border" /></td>
  387. </tr>
  388. <tr>
  389. <td align="right" bgcolor="#ffffff">&nbsp;</td>
  390. <td bgcolor="#ffffff"><input name="act" type="hidden" value="act_add_booking" />
  391. <input name="id" type="hidden" value="<?php echo $this->_var['info']['id']; ?>" />
  392. <input name="rec_id" type="hidden" value="<?php echo $this->_var['info']['rec_id']; ?>" />
  393. <input type="submit" name="submit" class="bnt_number6" value="<?php echo $this->_var['lang']['submit_booking_goods']; ?>" />
  394. <input type="reset" name="reset" class="bnt_number4" value="<?php echo $this->_var['lang']['button_reset']; ?>" />
  395. </td>
  396. </tr>
  397. </table>
  398. </form>
  399. </div>
  400. <?php endif; ?>
  401. <?php if ($this->_var['affiliate']['on'] == 1): ?>
  402. <?php if ($this->_var['action'] == 'affiliate'): ?>
  403. <?php if (! $this->_var['goodsid'] || $this->_var['goodsid'] == 0): ?>
  404. <div class="General_Title clearfix">
  405. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['affiliate_detail']; ?></p>&nbsp;</div>
  406. </div>
  407. <div class="clearfix groupList flowBox">
  408. <?php echo $this->_var['affiliate_intro']; ?>
  409. <?php if ($this->_var['affiliate']['config']['separate_by'] == 0): ?>
  410. </div>
  411. <div class="General_Title clearfix">
  412. <div class="TitleBoxcon"><p><a name="myrecommend"><?php echo $this->_var['lang']['affiliate_member']; ?></a></p>&nbsp;</div>
  413. </div>
  414. <div class="clearfix groupList flowBox">
  415. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  416. <tr align="center">
  417. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['affiliate_lever']; ?></td>
  418. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['affiliate_num']; ?></td>
  419. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['level_point']; ?></td>
  420. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['level_money']; ?></td>
  421. </tr>
  422. <?php $_from = $this->_var['affdb']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('level', 'val');$this->_foreach['affdb'] = array('total' => count($_from), 'iteration' => 0);
  423. if ($this->_foreach['affdb']['total'] > 0):
  424. foreach ($_from AS $this->_var['level'] => $this->_var['val']):
  425. $this->_foreach['affdb']['iteration']++;
  426. ?>
  427. <tr align="center">
  428. <td bgcolor="#ffffff"><?php echo $this->_var['level']; ?></td>
  429. <td bgcolor="#ffffff"><?php echo $this->_var['val']['num']; ?></td>
  430. <td bgcolor="#ffffff"><?php echo $this->_var['val']['point']; ?></td>
  431. <td bgcolor="#ffffff"><?php echo $this->_var['val']['money']; ?></td>
  432. </tr>
  433. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  434. </table>
  435. <?php else: ?>
  436. <?php endif; ?>
  437. </div>
  438. <div class="General_Title clearfix">
  439. <div class="TitleBoxcon"><p>????</p>&nbsp;</div>
  440. </div>
  441. <div class="clearfix groupList flowBox">
  442. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  443. <tr align="center">
  444. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['order_number']; ?></td>
  445. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['affiliate_money']; ?></td>
  446. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['affiliate_point']; ?></td>
  447. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['affiliate_mode']; ?></td>
  448. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['affiliate_status']; ?></td>
  449. </tr>
  450. <?php $_from = $this->_var['logdb']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'val');$this->_foreach['logdb'] = array('total' => count($_from), 'iteration' => 0);
  451. if ($this->_foreach['logdb']['total'] > 0):
  452. foreach ($_from AS $this->_var['val']):
  453. $this->_foreach['logdb']['iteration']++;
  454. ?>
  455. <tr align="center">
  456. <td bgcolor="#ffffff"><?php echo $this->_var['val']['order_sn']; ?></td>
  457. <td bgcolor="#ffffff"><?php echo $this->_var['val']['money']; ?></td>
  458. <td bgcolor="#ffffff"><?php echo $this->_var['val']['point']; ?></td>
  459. <td bgcolor="#ffffff"><?php if ($this->_var['val']['separate_type'] == 1 || $this->_var['val']['separate_type'] === 0): ?><?php echo $this->_var['lang']['affiliate_type'][$this->_var['val']['separate_type']]; ?><?php else: ?><?php echo $this->_var['lang']['affiliate_type'][$this->_var['affiliate_type']]; ?><?php endif; ?></td>
  460. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['affiliate_stats'][$this->_var['val']['is_separate']]; ?></td>
  461. </tr>
  462. <tr>
  463. <td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['label_rows_num']; ?></td>
  464. <td bgcolor="#ffffff"><input name="rows_num" type="text" id="rows_num" value="1" class="inputBg" /></td>
  465. </tr>
  466. <?php endforeach; else: ?>
  467. <tr><td colspan="5" align="center" bgcolor="#ffffff"><?php echo $this->_var['lang']['no_records']; ?></td>
  468. </tr>
  469. <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
  470. <?php if ($this->_var['logdb']): ?>
  471. <tr>
  472. <td colspan="5" bgcolor="#ffffff">
  473. <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
  474. <div id="pager"> <?php echo $this->_var['lang']['pager_1']; ?><?php echo $this->_var['pager']['record_count']; ?><?php echo $this->_var['lang']['pager_2']; ?><?php echo $this->_var['lang']['pager_3']; ?><?php echo $this->_var['pager']['page_count']; ?><?php echo $this->_var['lang']['pager_4']; ?> <span> <a href="<?php echo $this->_var['pager']['page_first']; ?>"><?php echo $this->_var['lang']['page_first']; ?></a> <a href="<?php echo $this->_var['pager']['page_prev']; ?>"><?php echo $this->_var['lang']['page_prev']; ?></a> <a href="<?php echo $this->_var['pager']['page_next']; ?>"><?php echo $this->_var['lang']['page_next']; ?></a> <a href="<?php echo $this->_var['pager']['page_last']; ?>"><?php echo $this->_var['lang']['page_last']; ?></a> </span>
  475. <select name="page" id="page" onchange="selectPage(this)">
  476. <?php echo $this->html_options(array('options'=>$this->_var['pager']['array'],'selected'=>$this->_var['pager']['page'])); ?>
  477. </select>
  478. <input type="hidden" name="act" value="affiliate" />
  479. </div>
  480. </form>
  481. </td>
  482. </tr>
  483. <?php endif; ?>
  484. </table>
  485. <script type="text/javascript" language="JavaScript">
  486. <!--
  487. function selectPage(sel)
  488. {
  489. sel.form.submit();
  490. }
  491. //-->
  492. </script>
  493. </div>
  494. <div class="General_Title clearfix">
  495. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['affiliate_code']; ?></p>&nbsp;</div>
  496. </div>
  497. <div class="clearfix groupList flowBox">
  498. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  499. <tr>
  500. <td width="30%" bgcolor="#ffffff"><a href="<?php echo $this->_var['shopurl']; ?>?u=<?php echo $this->_var['userid']; ?>" target="_blank" class="f6"><?php echo $this->_var['shopname']; ?></a></td>
  501. <td bgcolor="#ffffff"><input size="40" onclick="this.select();" type="text" value="&lt;a href=&quot;<?php echo $this->_var['shopurl']; ?>?u=<?php echo $this->_var['userid']; ?>&quot; target=&quot;_blank&quot;&gt;<?php echo $this->_var['shopname']; ?>&lt;/a&gt;" style="border:1px solid #ccc;" /> <?php echo $this->_var['lang']['recommend_webcode']; ?></td>
  502. </tr>
  503. <tr>
  504. <td bgcolor="#ffffff"><a href="<?php echo $this->_var['shopurl']; ?>?u=<?php echo $this->_var['userid']; ?>" target="_blank" title="<?php echo $this->_var['shopname']; ?>" class="f6"><img src="<?php echo $this->_var['shopurl']; ?><?php echo $this->_var['logosrc']; ?>" /></a></td>
  505. <td bgcolor="#ffffff"><input size="40" onclick="this.select();" type="text" value="&lt;a href=&quot;<?php echo $this->_var['shopurl']; ?>?u=<?php echo $this->_var['userid']; ?>&quot; target=&quot;_blank&quot; title=&quot;<?php echo $this->_var['shopname']; ?>&quot;&gt;&lt;img src=&quot;<?php echo $this->_var['shopurl']; ?><?php echo $this->_var['logosrc']; ?>&quot; /&gt;&lt;/a&gt;" style="border:1px solid #ccc;" /> <?php echo $this->_var['lang']['recommend_webcode']; ?></td>
  506. </tr>
  507. <tr>
  508. <td bgcolor="#ffffff"><a href="<?php echo $this->_var['shopurl']; ?>?u=<?php echo $this->_var['userid']; ?>" target="_blank" class="f6"><?php echo $this->_var['shopname']; ?></a></td>
  509. <td bgcolor="#ffffff"><input size="40" onclick="this.select();" type="text" value="[url=<?php echo $this->_var['shopurl']; ?>?u=<?php echo $this->_var['userid']; ?>]<?php echo $this->_var['shopname']; ?>[/url]" style="border:1px solid #ccc;" /> <?php echo $this->_var['lang']['recommend_bbscode']; ?></td>
  510. </tr>
  511. <tr>
  512. <td bgcolor="#ffffff"><a href="<?php echo $this->_var['shopurl']; ?>?u=<?php echo $this->_var['userid']; ?>" target="_blank" title="<?php echo $this->_var['shopname']; ?>" class="f6"><img src="<?php echo $this->_var['shopurl']; ?><?php echo $this->_var['logosrc']; ?>" /></a></td>
  513. <td bgcolor="#ffffff"><input size="40" onclick="this.select();" type="text" value="[url=<?php echo $this->_var['shopurl']; ?>?u=<?php echo $this->_var['userid']; ?>][img]<?php echo $this->_var['shopurl']; ?><?php echo $this->_var['logosrc']; ?>[/img][/url]" style="border:1px solid #ccc;" /> <?php echo $this->_var['lang']['recommend_bbscode']; ?></td>
  514. </tr>
  515. </table>
  516. </div>
  517. <?php else: ?>
  518. <div class="General_Title clearfix">
  519. <div class="TitleBoxcon"><p><?php echo $this->_var['lang']['affiliate_code']; ?></p>&nbsp;</div>
  520. </div>
  521. <div class="clearfix groupList flowBox">
  522. <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  523. <tr align="center">
  524. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['affiliate_view']; ?></td>
  525. <td bgcolor="#ffffff"><?php echo $this->_var['lang']['affiliate_code']; ?></td>
  526. </tr>
  527. <?php $_from = $this->_var['types']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'val');$this->_foreach['types'] = array('total' => count($_from), 'iteration' => 0);
  528. if ($this->_foreach['types']['total'] > 0):
  529. foreach ($_from AS $this->_var['val']):
  530. $this->_foreach['types']['iteration']++;
  531. ?>
  532. <tr align="center">
  533. <td bgcolor="#ffffff" class="types"><script src="<?php echo $this->_var['shopurl']; ?>affiliate.php?charset=<?php echo $this->_var['ecs_charset']; ?>&gid=<?php echo $this->_var['goodsid']; ?>&u=<?php echo $this->_var['userid']; ?>&type=<?php echo $this->_var['val']; ?>"></script></td>
  534. <td bgcolor="#ffffff">javascript <?php echo $this->_var['lang']['affiliate_codetype']; ?><br>
  535. <textarea cols=30 rows=2 id="txt<?php echo $this->_foreach['types']['iteration']; ?>" style="border:1px solid #ccc;"><script src="<?php echo $this->_var['shopurl']; ?>affiliate.php?charset=<?php echo $this->_var['ecs_charset']; ?>&gid=<?php echo $this->_var['goodsid']; ?>&u=<?php echo $this->_var['userid']; ?>&type=<?php echo $this->_var['val']; ?>"></script></textarea>[<a href="#" title="Copy To Clipboard" onClick="Javascript:copyToClipboard(document.getElementById('txt<?php echo $this->_foreach['types']['iteration']; ?>').value);alert('<?php echo $this->_var['lang']['copy_to_clipboard']; ?>');" class="f6">^</a>]
  536. <br>iframe <?php echo $this->_var['lang']['affiliate_codetype']; ?><br><textarea cols=30 rows=2 id="txt<?php echo $this->_foreach['types']['iteration']; ?>_iframe" style="border:1px solid #ccc;"><iframe width="250" height="270" src="<?php echo $this->_var['shopurl']; ?>affiliate.php?charset=<?php echo $this->_var['ecs_charset']; ?>&gid=<?php echo $this->_var['goodsid']; ?>&u=<?php echo $this->_var['userid']; ?>&type=<?php echo $this->_var['val']; ?>&display_mode=iframe" frameborder="0" scrolling="no"></iframe></textarea>[<a href="#" title="Copy To Clipboard" onClick="Javascript:copyToClipboard(document.getElementById('txt<?php echo $this->_foreach['types']['iteration']; ?>_iframe').value);alert('<?php echo $this->_var['lang']['copy_to_clipboard']; ?>');" class="f6">^</a>]</td>
  537. </tr>
  538. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  539. </table>
  540. <script language="Javascript">
  541. copyToClipboard = function(txt)
  542. {
  543. if(window.clipboardData)
  544. {
  545. window.clipboardData.clearData();
  546. window.clipboardData.setData("Text", txt);
  547. }
  548. else if(navigator.userAgent.indexOf("Opera") != -1)
  549. {
  550. //?????:-(
  551. }
  552. else if (window.netscape)
  553. {
  554. try
  555. {
  556. netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
  557. }
  558. catch (e)
  559. {
  560. alert("<?php echo $this->_var['lang']['firefox_copy_alert']; ?>");
  561. return false;
  562. }
  563. var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
  564. if (!clip)
  565. return;
  566. var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
  567. if (!trans)
  568. return;
  569. trans.addDataFlavor('text/unicode');
  570. var str = new Object();
  571. var len = new Object();
  572. var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
  573. var copytext = txt;
  574. str.data = copytext;
  575. trans.setTransferData("text/unicode",str,copytext.length*2);
  576. var clipid = Components.interfaces.nsIClipboard;
  577. if (!clip)
  578. return false;
  579. clip.setData(trans,null,clipid.kGlobalClipboard);
  580. }
  581. }
  582. </script>
  583. </div>
  584. <?php endif; ?>
  585. <?php endif; ?>
  586. <?php endif; ?>
  587. </div>
  588. </div>
  589. <?php echo $this->fetch('library/page_footer.lbi'); ?>
  590. </body>
  591. <script type="text/javascript">
  592. <?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)):
  593. foreach ($_from AS $this->_var['key'] => $this->_var['item']):
  594. ?>
  595. var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
  596. <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  597. </script>
  598. </html>