fc05a8b9cf47674512b74ffe0e7b27e6.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <?php /*a:2:{s:59:"/data/web/mall.valimart.net/app/admin/view/member/edit.html";i:1657785096;s:61:"/data/web/mall.valimart.net/app/admin/view/public/header.html";i:1657785098;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?><?php echo htmlentities(lang('system_backend')); ?></title>
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
  10. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
  11. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
  12. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
  13. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  14. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
  15. <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
  16. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
  17. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
  18. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  19. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
  20. <script type="text/javascript">
  21. var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
  22. var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
  23. var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
  24. var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
  25. var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
  26. </script>
  27. </head>
  28. <body>
  29. <div id="append_parent"></div>
  30. <div id="ajaxwaitid"></div>
  31. <div class="page">
  32. <form id="user_form" enctype="multipart/form-data" method="post">
  33. <input type="hidden" name="member_id" value="<?php echo htmlentities($member_array['member_id']); ?>" />
  34. <input type="hidden" name="old_member_avatar" value="<?php echo htmlentities($member_array['member_avatar']); ?>" />
  35. <input type="hidden" name="member_name" value="<?php echo htmlentities($member_array['member_name']); ?>" />
  36. <table class="ds-default-table">
  37. <tbody>
  38. <tr class="noborder">
  39. <td class="required w120"><label><?php echo htmlentities(lang('ds_member_name')); ?>:</label></td>
  40. <td class="vatop rowform"><?php echo htmlentities($member_array['member_name']); ?></td>
  41. <td class="vatop tips"></td>
  42. </tr>
  43. <tr class="noborder">
  44. <td class="required"><label for="member_password"><?php echo htmlentities(lang('ds_member_password')); ?>:</label></td>
  45. <td class="vatop rowform"><input type="text" id="member_password" name="member_password" class="txt"></td>
  46. <td class="vatop tips"><?php echo htmlentities(lang('member_edit_password_keep')); ?></td>
  47. </tr>
  48. <tr class="noborder">
  49. <td class="required"><label for="member_paypwd"><?php echo htmlentities(lang('member_edit_paypwd')); ?>:</label></td>
  50. <td class="vatop rowform"><input type="text" id="member_paypwd" name="member_paypwd" class="txt"></td>
  51. <td class="vatop tips"><?php echo htmlentities(lang('member_edit_password_keep')); ?></td>
  52. </tr>
  53. <tr class="noborder">
  54. <td class="required"><label for="member_email"><?php echo htmlentities(lang('member_email')); ?>:</label></td>
  55. <td class="vatop rowform"><input type="text" value="<?php echo htmlentities($member_array['member_email']); ?>" id="member_email" name="member_email" class="txt"></td>
  56. <td class="vatop tips"><?php echo htmlentities(lang('member_email')); ?></td>
  57. </tr>
  58. <tr class="noborder">
  59. <td class="required"><label for="member_truename"><?php echo htmlentities(lang('member_truename')); ?>:</label></td>
  60. <td class="vatop rowform"><input type="text" value="<?php echo htmlentities($member_array['member_truename']); ?>" id="member_truename" name="member_truename" class="txt"></td>
  61. <td class="vatop tips"></td>
  62. </tr>
  63. <tr class="noborder">
  64. <td class="required"><label><?php echo htmlentities(lang('member_edit_sex')); ?>:</label></td>
  65. <td class="vatop rowform">
  66. <label class="radio-label">
  67. <i class="radio-common <?php if($member_array['member_sex'] == 0): ?>selected<?php endif; ?>">
  68. <input type="radio" value="0" name="member_sex" <?php if($member_array['member_sex'] == 0): ?>checked="checked"<?php endif; ?>>
  69. </i>
  70. <span><?php echo htmlentities(lang('member_edit_secret')); ?></span>
  71. </label>
  72. <label class="radio-label">
  73. <i class="radio-common <?php if($member_array['member_sex'] == 1): ?>selected<?php endif; ?>">
  74. <input type="radio" value="1" name="member_sex" <?php if($member_array['member_sex'] == 1): ?>checked="checked"<?php endif; ?>>
  75. </i>
  76. <span><?php echo htmlentities(lang('member_edit_male')); ?></span>
  77. </label>
  78. <label class="radio-label">
  79. <i class="radio-common <?php if($member_array['member_sex'] == 2): ?>selected<?php endif; ?>">
  80. <input type="radio" value="2" name="member_sex" <?php if($member_array['member_sex'] == 2): ?>checked="checked"<?php endif; ?>>
  81. </i>
  82. <span><?php echo htmlentities(lang('member_edit_female')); ?></span>
  83. </label>
  84. </td>
  85. <td class="vatop tips"></td>
  86. </tr>
  87. <tr class="noborder">
  88. <td class="required"><label class="member_areainfo"><?php echo htmlentities(lang('member_areainfo')); ?>:</label></td>
  89. <td class="vatop rowform" colspan="2">
  90. <span class="w400">
  91. <input type="hidden" value="<?php echo htmlentities((isset($member_array['member_provinceid']) && ($member_array['member_provinceid'] !== '')?$member_array['member_provinceid']:'')); ?>" name="province_id" id="_area_1">
  92. <input type="hidden" value="<?php echo htmlentities((isset($member_array['member_cityid']) && ($member_array['member_cityid'] !== '')?$member_array['member_cityid']:'')); ?>" name="city_id" id="_area_2">
  93. <input type="hidden" value="<?php echo htmlentities((isset($member_array['member_areaid']) && ($member_array['member_areaid'] !== '')?$member_array['member_areaid']:'')); ?>" name="area_id" id="_area_3">
  94. <input type="hidden" name="region" id="region" value="<?php echo htmlentities($member_array['member_areainfo']); ?>"/>
  95. </span>
  96. </td>
  97. </tr>
  98. <tr class="noborder">
  99. <td class="required"><label class="member_mobile"><?php echo htmlentities(lang('member_mobile')); ?>:</label></td>
  100. <td class="vatop rowform"><input type="text" value="<?php echo encrypt_show($member_array['member_mobile'],4,4); ?>" onfocus="clearMobile(this)" id="member_mobile" name="member_mobile" class="txt"></td>
  101. <td class="vatop tips"></td>
  102. </tr>
  103. <tr class="noborder">
  104. <td class="required"><label class="member_qq">QQ:</label></td>
  105. <td class="vatop rowform"><input type="text" value="<?php echo htmlentities($member_array['member_qq']); ?>" id="member_qq" name="member_qq" class="txt"></td>
  106. <td class="vatop tips"></td>
  107. </tr>
  108. <tr class="noborder">
  109. <td class="required"><label class="member_ww"><?php echo htmlentities(lang('member_ww')); ?>:</label></td>
  110. <td class="vatop rowform"><input type="text" value="<?php echo htmlentities($member_array['member_ww']); ?>" id="member_ww" name="member_ww" class="txt"></td>
  111. <td class="vatop tips"></td>
  112. </tr>
  113. <tr class="noborder">
  114. <td class="required"><label><?php echo htmlentities(lang('member_auth')); ?>:</label></td>
  115. <td class="vatop rowform">
  116. <label class="radio-label">
  117. <i class="radio-common <?php if($member_array['member_auth_state'] != 3): ?>selected<?php endif; ?>">
  118. <input type="radio" value="<?php if($member_array['member_auth_state'] == 3): ?>0<?php else: ?><?php echo htmlentities($member_array['member_auth_state']); ?><?php endif; ?>" name="member_auth_state" <?php if($member_array['member_auth_state'] != 3): ?>checked="checked"<?php endif; ?>>
  119. </i>
  120. <span><?php echo htmlentities(lang('member_auth_state0')); ?></span>
  121. </label>
  122. <label class="radio-label">
  123. <i class="radio-common <?php if($member_array['member_auth_state'] == 3): ?>selected<?php endif; ?>">
  124. <input type="radio" value="3" name="member_auth_state" <?php if($member_array['member_auth_state'] == 3): ?>checked="checked"<?php endif; ?>>
  125. </i>
  126. <span><?php echo htmlentities(lang('member_auth_state3')); ?></span>
  127. </label>
  128. </td>
  129. <td class="vatop tips"></td>
  130. </tr>
  131. <tr class="noborder">
  132. <td class="required"><label><?php echo htmlentities(lang('member_index_inform')); ?>:</label></td>
  133. <td class="vatop rowform onoff">
  134. <label for="inform_allow1" class="cb-enable <?php if($member_array['inform_allow'] == '1'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('member_edit_allow')); ?></span></label>
  135. <label for="inform_allow2" class="cb-disable <?php if($member_array['inform_allow'] == '2'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('member_edit_deny')); ?></span></label>
  136. <input id="inform_allow1" name="inform_allow" <?php if($member_array['inform_allow'] == '1'): ?>checked="checked"<?php endif; ?> value="1" type="radio">
  137. <input id="inform_allow2" name="inform_allow" <?php if($member_array['inform_allow'] == '2'): ?>checked="checked"<?php endif; ?> value="2" type="radio">
  138. </td>
  139. <td class="vatop tips"></td>
  140. </tr>
  141. <tr class="noborder">
  142. <td class="required"><label><?php echo htmlentities(lang('member_edit_allowbuy')); ?>:</label></td>
  143. <td class="vatop rowform onoff">
  144. <label for="isbuy_1" class="cb-enable <?php if($member_array['is_buylimit'] == '1'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('member_edit_allow')); ?></span></label>
  145. <label for="isbuy_2" class="cb-disable <?php if($member_array['is_buylimit'] == '0'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('member_edit_deny')); ?></span></label>
  146. <input id="isbuy_1" name="isbuy" <?php if($member_array['is_buylimit'] == '1'): ?>checked="checked"<?php endif; ?> value="1" type="radio">
  147. <input id="isbuy_2" name="isbuy" <?php if($member_array['is_buylimit'] == '0'): ?>checked="checked"<?php endif; ?> value="0" type="radio">
  148. </td>
  149. <td class="vatop tips"><?php echo htmlentities(lang('member_edit_allowbuy_tip')); ?></td>
  150. </tr>
  151. <tr class="noborder">
  152. <td class="required"><label><?php echo htmlentities(lang('member_edit_allowtalk')); ?>:</label></td>
  153. <td class="vatop rowform onoff">
  154. <label for="allowtalk_1" class="cb-enable <?php if($member_array['is_allowtalk'] == '1'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('member_edit_allow')); ?></span></label>
  155. <label for="allowtalk_2" class="cb-disable <?php if($member_array['is_allowtalk'] == '0'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('member_edit_deny')); ?></span></label>
  156. <input id="allowtalk_1" name="allowtalk" <?php if($member_array['is_allowtalk'] == '1'): ?>checked="checked"<?php endif; ?> value="1" type="radio">
  157. <input id="allowtalk_2" name="allowtalk" <?php if($member_array['is_allowtalk'] == '0'): ?>checked="checked"<?php endif; ?> value="0" type="radio">
  158. </td>
  159. <td class="vatop tips"><?php echo htmlentities(lang('member_edit_allowtalk_tip')); ?></td>
  160. </tr>
  161. <tr class="noborder">
  162. <td class="required"><label><?php echo htmlentities(lang('member_edit_allowlogin')); ?>:</label></td>
  163. <td class="vatop rowform onoff">
  164. <label for="memberstate_1" class="cb-enable <?php if($member_array['member_state'] == '1'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('member_edit_allow')); ?></span></label>
  165. <label for="memberstate_2" class="cb-disable <?php if($member_array['member_state'] == '0'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('member_edit_deny')); ?></span></label>
  166. <input id="memberstate_1" name="member_state" <?php if($member_array['member_state'] == '1'): ?>checked="checked"<?php endif; ?> value="1" type="radio">
  167. <input id="memberstate_2" name="member_state" <?php if($member_array['member_state'] == '0'): ?>checked="checked"<?php endif; ?> value="0" type="radio">
  168. </td>
  169. <td class="vatop tips"></td>
  170. </tr>
  171. <tr class="noborder">
  172. <td class="required"><label><?php echo htmlentities(lang('member_mobilebind')); ?>:</label></td>
  173. <td class="vatop rowform onoff">
  174. <label for="membermobilebind_1" class="cb-enable <?php if($member_array['member_mobilebind'] == '1'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('ds_verified')); ?></span></label>
  175. <label for="membermobilebind_2" class="cb-disable <?php if($member_array['member_mobilebind'] == '0'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('ds_unverified')); ?></span></label>
  176. <input id="membermobilebind_1" name="member_mobilebind" <?php if($member_array['member_mobilebind'] == '1'): ?>checked="checked"<?php endif; ?> value="1" type="radio">
  177. <input id="membermobilebind_2" name="member_mobilebind" <?php if($member_array['member_mobilebind'] == '0'): ?>checked="checked"<?php endif; ?> value="0" type="radio">
  178. </td>
  179. <td class="vatop tips"></td>
  180. </tr>
  181. <tr class="noborder">
  182. <td class="required"><label><?php echo htmlentities(lang('member_emailbind')); ?>:</label></td>
  183. <td class="vatop rowform onoff">
  184. <label for="memberemailbind_1" class="cb-enable <?php if($member_array['member_emailbind'] == '1'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('ds_verified')); ?></span></label>
  185. <label for="memberemailbind_2" class="cb-disable <?php if($member_array['member_emailbind'] == '0'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('ds_unverified')); ?></span></label>
  186. <input id="memberemailbind_1" name="member_emailbind" <?php if($member_array['member_emailbind'] == '1'): ?>checked="checked"<?php endif; ?> value="1" type="radio">
  187. <input id="memberemailbind_2" name="member_emailbind" <?php if($member_array['member_emailbind'] == '0'): ?>checked="checked"<?php endif; ?> value="0" type="radio"></td>
  188. <td class="vatop tips"></td>
  189. </tr>
  190. <tr class="noborder">
  191. <td class="required"><label><?php echo htmlentities(lang('ds_member_points')); ?>:</label></td>
  192. <td class="vatop rowform"><?php echo htmlentities(lang('ds_member_points')); ?>&nbsp;<strong class="red"><?php echo htmlentities($member_array['member_points']); ?></strong>&nbsp;<?php echo htmlentities(lang('ds_member_points')); ?></td>
  193. <td class="vatop tips"></td>
  194. </tr>
  195. <tr class="noborder">
  196. <td class="required"><label><?php echo htmlentities(lang('member_exppoints')); ?>:</label></td>
  197. <td class="vatop rowform"><?php echo htmlentities(lang('member_exppoints')); ?>&nbsp;<strong class="red"><?php echo htmlentities($member_array['member_exppoints']); ?></strong>&nbsp;<?php echo htmlentities(lang('ds_member_points')); ?></td>
  198. <td class="vatop tips"></td>
  199. </tr>
  200. <tr class="noborder">
  201. <td class="required"><label><?php echo htmlentities(lang('member_index_available')); ?><?php echo htmlentities(lang('ds_predeposit')); ?>:</label></td>
  202. <td class="vatop rowform"><?php echo htmlentities(lang('member_index_available')); ?>&nbsp;<strong class="red"><?php echo htmlentities($member_array['available_predeposit']); ?></strong>&nbsp;<?php echo htmlentities(lang('ds_yuan')); ?></td>
  203. <td class="vatop tips"></td>
  204. </tr>
  205. <tr class="noborder">
  206. <td class="required"><label><?php echo htmlentities(lang('member_index_frozen')); ?><?php echo htmlentities(lang('ds_predeposit')); ?>:</label></td>
  207. <td class="vatop rowform"><?php echo htmlentities(lang('member_index_frozen')); ?>&nbsp;<strong class="red"><?php echo htmlentities($member_array['freeze_predeposit']); ?></strong>&nbsp;<?php echo htmlentities(lang('ds_yuan')); ?></td>
  208. <td class="vatop tips"></td>
  209. </tr>
  210. </tbody>
  211. <tfoot>
  212. <tr class="tfoot">
  213. <td colspan="15"><input class="btn" type="submit" value="<?php echo htmlentities(lang('ds_submit')); ?>"/></td>
  214. </tr>
  215. </tfoot>
  216. </table>
  217. </form>
  218. <script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/mlselection.js" charset="utf-8"></script>
  219. <script type="text/javascript">
  220. $(function() {
  221. $("#region").ds_region();
  222. $('#user_form').validate({
  223. errorPlacement: function(error, element) {
  224. error.appendTo(element.parent().parent().find('td:last'));
  225. },
  226. rules: {
  227. member_password: {
  228. maxlength: 20,
  229. minlength: 6
  230. },
  231. member_email: {
  232. email: true,
  233. remote: {
  234. url: ADMINSITEURL+'/Member/ajax.html?branch=check_email',
  235. type: 'get',
  236. data: {
  237. user_name: function() {
  238. return $('#member_email').val();
  239. },
  240. member_id : '<?php echo htmlentities($member_array['member_id']); ?>'
  241. }
  242. }
  243. }
  244. },
  245. messages: {
  246. member_password: {
  247. maxlength: '<?php echo htmlentities(lang('member_edit_password_tip')); ?>',
  248. minlength: '<?php echo htmlentities(lang('member_edit_password_tip')); ?>'
  249. },
  250. member_email: {
  251. email: '<?php echo htmlentities(lang('member_edit_valid_email')); ?>',
  252. remote: '<?php echo htmlentities(lang('member_edit_email_exists')); ?>'
  253. }
  254. }
  255. });
  256. });
  257. function clearMobile(obj){
  258. if($(obj).val()=='<?php echo encrypt_show($member_array['member_mobile'],4,4); ?>'){
  259. $(obj).val('')
  260. }
  261. }
  262. </script>
  263. </div>