b79e7dec6b03ab4e847017f888c36766.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?php /*a:3:{s:59:"/data/web/pl.valimart.net/app/admin/view/member/member.html";i:1657785098;s:59:"/data/web/pl.valimart.net/app/admin/view/public/header.html";i:1657785098;s:64:"/data/web/pl.valimart.net/app/admin/view/public/admin_items.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. <div class="fixed-bar">
  33. <div class="item-title">
  34. <div class="subject">
  35. <h3><?php echo htmlentities(lang('ds_member_manage')); ?></h3>
  36. <h5></h5>
  37. </div>
  38. <?php if($admin_item): ?>
  39. <ul class="tab-base ds-row">
  40. <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
  41. <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
  42. <?php endforeach; endif; else: echo "" ;endif; ?>
  43. </ul>
  44. <?php endif; ?>
  45. </div>
  46. </div>
  47. <form method="get" name="formSearch" id="formSearch">
  48. <div class="ds-search-form">
  49. <dl>
  50. <dd>
  51. <select name="search_field_name" >
  52. <option <?php if($search_field_name == 'member_name'): ?>selected='selected'<?php endif; ?> value="member_name"><?php echo htmlentities(lang('ds_member_name')); ?></option>
  53. <option <?php if($search_field_name == 'member_email'): ?>selected='selected'<?php endif; ?> value="member_email"><?php echo htmlentities(lang('member_email')); ?></option>
  54. <option <?php if($search_field_name == 'member_mobile'): ?>selected='selected'<?php endif; ?> value="member_mobile"><?php echo htmlentities(lang('member_mobile')); ?></option>
  55. <option <?php if($search_field_name == 'member_truename'): ?>selected='selected'<?php endif; ?> value="member_truename"><?php echo htmlentities(lang('member_truename')); ?></option>
  56. </select>
  57. </dd>
  58. <dd>
  59. <input type="text" value="<?php echo htmlentities($search_field_value); ?>" name="search_field_value" class="txt">
  60. </dd>
  61. <dd>
  62. <select name="search_sort" >
  63. <option value=""><?php echo htmlentities(lang('ds_sort')); ?></option>
  64. <option <?php if($search_sort == 'member_logintime desc'): ?>selected='selected'<?php endif; ?> value="member_logintime desc"><?php echo htmlentities(lang('member_logintime')); ?></option>
  65. <option <?php if($search_sort == 'member_loginnum desc'): ?>selected='selected'<?php endif; ?> value="member_loginnum desc"><?php echo htmlentities(lang('member_loginnum')); ?></option>
  66. </select>
  67. </dd>
  68. <dd>
  69. <select name="search_state" >
  70. <option <?php if(app('request')->param('search_state')): ?>selected='selected'<?php endif; ?> value=""><?php echo htmlentities(lang('member_index_state')); ?></option>
  71. <option <?php if(app('request')->param('search_state') == "no_informallow"): ?>selected='selected'<?php endif; ?> value="no_informallow"><?php echo htmlentities(lang('member_index_inform_deny')); ?></option>
  72. <option <?php if(app('request')->param('search_state') == "no_isbuy"): ?>selected='selected'<?php endif; ?> value="no_isbuy"><?php echo htmlentities(lang('member_index_buy_deny')); ?></option>
  73. <option <?php if(app('request')->param('search_state') == "no_isallowtalk"): ?>selected='selected'<?php endif; ?> value="no_isallowtalk"><?php echo htmlentities(lang('member_index_talk_deny')); ?></option>
  74. <option <?php if(app('request')->param('search_state') == "no_memberstate"): ?>selected='selected'<?php endif; ?> value="no_memberstate"><?php echo htmlentities(lang('member_index_login_deny')); ?></option>
  75. </select>
  76. </dd>
  77. <dd>
  78. <select name="search_grade" >
  79. <option value='-1'><?php echo htmlentities(lang('member_grade')); ?></option>
  80. <?php if(!(empty($member_grade) || (($member_grade instanceof \think\Collection || $member_grade instanceof \think\Paginator ) && $member_grade->isEmpty()))): if(is_array($member_grade) || $member_grade instanceof \think\Collection || $member_grade instanceof \think\Paginator): if( count($member_grade)==0 ) : echo "" ;else: foreach($member_grade as $k=>$v): ?>
  81. <option <?php if(app('request')->get('search_grade') == $k): ?>selected='selected'<?php endif; ?> value="<?php echo htmlentities($k); ?>"><?php echo htmlentities($v['level_name']); ?></option>
  82. <?php endforeach; endif; else: echo "" ;endif; ?>
  83. <?php endif; ?>
  84. </select>
  85. </dd>
  86. </dl>
  87. <div class="btn_group">
  88. <input type="submit" class="btn" value="<?php echo htmlentities(lang('ds_search')); ?>">
  89. <?php if($filtered): ?>
  90. <a href="<?php echo url('Member/member'); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
  91. <?php endif; ?>
  92. </div>
  93. </div>
  94. </form>
  95. <table class="ds-default-table">
  96. <thead>
  97. <tr class="thead">
  98. <th>&nbsp;</th>
  99. <th colspan="2"><?php echo htmlentities(lang('ds_member_name')); ?></th>
  100. <th class="align-center"><span fieldname="logins" ds_type="order_by"><?php echo htmlentities(lang('member_loginnum')); ?></span></th>
  101. <th class="align-center"><span fieldname="last_login" ds_type="order_by"><?php echo htmlentities(lang('member_logintime')); ?></span></th>
  102. <th class="align-center"><?php echo htmlentities(lang('ds_member_points')); ?></th>
  103. <th class="align-center"><?php echo htmlentities(lang('ds_predeposit')); ?></th>
  104. <th class="align-center"><?php echo htmlentities(lang('member_exppoints')); ?></th>
  105. <th class="align-center"><?php echo htmlentities(lang('member_grade')); ?></th>
  106. <th class="align-center"><?php echo htmlentities(lang('member_index_login')); ?></th>
  107. <th class="align-center"><?php echo htmlentities(lang('ds_handle')); ?></th>
  108. </tr>
  109. </thead>
  110. <tbody>
  111. <?php if(!(empty($member_list) || (($member_list instanceof \think\Collection || $member_list instanceof \think\Paginator ) && $member_list->isEmpty()))): if(is_array($member_list) || $member_list instanceof \think\Collection || $member_list instanceof \think\Paginator): if( count($member_list)==0 ) : echo "" ;else: foreach($member_list as $k=>$v): ?>
  112. <tr class="hover member">
  113. <td class="w24"><input type="checkbox" name='del_id[]' value="<?php echo htmlentities($v['member_id']); ?>" class="checkitem"></td>
  114. <td class="w48 picture">
  115. <div class="size-44x44">
  116. <span class="thumb"><i></i>
  117. <img src="<?php echo get_member_avatar($v['member_avatar']); ?>?<?php echo microtime(); ?>" width="44" height="44"/>
  118. </span>
  119. </div>
  120. </td>
  121. <td><p class="name"><strong><?php echo htmlentities($v['member_name']); ?></strong>(<?php echo htmlentities(lang('member_truename')); ?>: <?php echo htmlentities($v['member_truename']); ?>)</p>
  122. <p class="smallfont"><?php echo htmlentities(lang('member_index_reg_time')); ?>:&nbsp;<?php echo htmlentities($v['member_addtime']); ?></p>
  123. <div class="im"><span class="email" >
  124. <?php if($v['member_email'] != ''): ?>
  125. <a href="mailto:<?php echo htmlentities($v['member_email']); ?>" class=" yes" title="<?php echo htmlentities(lang('member_email')); ?>:<?php echo htmlentities($v['member_email']); ?>"><?php echo htmlentities($v['member_email']); ?></a></span>
  126. <?php else: ?>
  127. <a href="JavaScript:void(0);" class="" title="<?php echo htmlentities(lang('member_index_null')); ?>" ><?php echo htmlentities($v['member_email']); ?></a></span>
  128. <?php endif; if($v['member_ww'] != ''): ?>
  129. <a target="_blank" href="http://www.taobao.com/webww/ww.php?ver=3&touid=<?php echo htmlentities($v['member_ww']); ?>&siteid=cntaobao&status=1&charset=utf-8"><img border="0" src="http://amos.alicdn.com/realonline.aw?v=2&uid=<?php echo htmlentities($v['member_ww']); ?>&site=cntaobao&s=1&charset=utf-8" alt="点击这里给我发消息" /></a>
  130. <?php endif; if($v['member_qq'] != ''): ?>
  131. <a target="_blank" href="<?php echo htmlentities(HTTP_TYPE); ?>wpa.qq.com/msgrd?v=3&uin=<?php echo htmlentities($v['member_qq']); ?>&site=qq&menu=yes" class="" title="QQ: <?php echo htmlentities($v['member_qq']); ?>"><img border="0" src="<?php echo htmlentities(HTTP_TYPE); ?>wpa.qq.com/pa?p=2:<?php echo htmlentities($v['member_qq']); ?>:52"/></a>
  132. <?php endif; if($v['member_mobile'] != ''): ?>
  133. <div style="font-size:13px; padding-left:10px">&nbsp;&nbsp;<?php echo encrypt_show($v['member_mobile'],4,4); ?></div>
  134. <?php endif; ?>
  135. </div></td>
  136. <td class="align-center"><?php echo htmlentities($v['member_loginnum']); ?></td>
  137. <td class="w150 align-center"><p><?php echo htmlentities($v['member_logintime']); ?></p>
  138. <p><?php echo htmlentities($v['member_login_ip']); ?></p></td>
  139. <td class="align-center"><?php echo htmlentities($v['member_points']); ?></td>
  140. <td class="align-center"><p><?php echo htmlentities(lang('member_index_available')); ?>:&nbsp;<strong class="red"><?php echo htmlentities($v['available_predeposit']); ?></strong>&nbsp;<?php echo htmlentities(lang('ds_yuan')); ?></p>
  141. <p><?php echo htmlentities(lang('member_index_frozen')); ?>:&nbsp;<strong class="red"><?php echo htmlentities($v['freeze_predeposit']); ?></strong>&nbsp;<?php echo htmlentities(lang('ds_yuan')); ?></p>
  142. </td>
  143. <td class="align-center"><?php echo htmlentities($v['member_exppoints']); ?></td>
  144. <td class="align-center"><?php echo htmlentities($v['member_grade']); ?></td>
  145. <td class="align-center"><?php if($v['member_state'] == 1): ?><?php echo htmlentities(lang('member_edit_allow')); else: ?><?php echo htmlentities(lang('member_edit_deny')); ?><?php endif; ?></td>
  146. <td class="align-center">
  147. <a href="javascript:dsLayerOpen('<?php echo url('Member/edit',['member_id'=>$v['member_id']]); ?>','<?php echo htmlentities(lang('ds_edit')); ?>-<?php echo htmlentities($v['member_name']); ?>')" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('ds_edit')); ?></a>
  148. <a href="javascript:dsLayerOpen('<?php echo url('Notice/notice',['member_name'=>$v['member_name']]); ?>','<?php echo htmlentities(lang('member_index_to_message')); ?>-<?php echo htmlentities($v['member_name']); ?>')" class="dsui-btn-add"><i class="iconfont"></i><?php echo htmlentities(lang('member_index_to_message')); ?></a>
  149. <?php if($v['member_state'] == 0): ?>
  150. <a href="javascript:dsLayerConfirm('<?php echo url('Member/memberstate',['member_id'=>$v['member_id'],'member_state'=>1]); ?>','<?php echo htmlentities(lang('ds_ensure_enable')); ?>')" class="dsui-btn-add"><i class="iconfont"></i><?php echo htmlentities(lang('member_edit_allowlogin')); ?></a>
  151. <?php else: ?>
  152. <a href="javascript:dsLayerConfirm('<?php echo url('Member/memberstate',['member_id'=>$v['member_id'],'member_state'=>0]); ?>','<?php echo htmlentities(lang('ds_ensure_disable')); ?>')" class="dsui-btn-del"><i class="iconfont"></i><?php echo htmlentities(lang('member_edit_denylogin')); ?></a>
  153. <?php endif; ?>
  154. <a href="javascript:dsLayerOpen('<?php echo url('Predeposit/pd_add',['member_id'=>$v['member_id']]); ?>','<?php echo htmlentities(lang('change_predeposit')); ?>-<?php echo htmlentities($v['member_name']); ?>')" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('change_predeposit')); ?></a>
  155. </td>
  156. </tr>
  157. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  158. <tr class="no_data">
  159. <td colspan="11"><?php echo htmlentities(lang('ds_no_record')); ?></td>
  160. </tr>
  161. <?php endif; ?>
  162. </tbody>
  163. <tfoot class="tfoot">
  164. <?php if(!(empty($member_list) || (($member_list instanceof \think\Collection || $member_list instanceof \think\Paginator ) && $member_list->isEmpty()))): ?>
  165. <tr>
  166. <td class="w24"><input type="checkbox" class="checkall" id="checkallBottom"></td>
  167. <td colspan="16">
  168. <label for="checkallBottom"><?php echo htmlentities(lang('ds_select_all')); ?></label>
  169. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span><?php echo htmlentities(lang('member_edit_denylogin')); ?></span></a>
  170. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_recovery_batch()"><span><?php echo htmlentities(lang('member_edit_allowlogin')); ?></span></a>
  171. </td>
  172. </tr>
  173. <?php endif; ?>
  174. </tfoot>
  175. </table>
  176. <?php echo $show_page; ?>
  177. </div>
  178. <script type="text/javascript">
  179. function submit_delete(ids_str){
  180. _uri = ADMINSITEURL+"/Member/memberstate.html?member_id=" + ids_str;
  181. dsLayerConfirm(_uri,'<?php echo htmlentities(lang('ds_ensure_disable')); ?>');
  182. }
  183. function submit_recovery_batch() {
  184. var ids_str=batch_items();
  185. _uri = ADMINSITEURL+"/Member/memberstate.html?member_state=1&member_id=" + ids_str;
  186. dsLayerConfirm(_uri,'<?php echo htmlentities(lang('ds_ensure_enable')); ?>');
  187. }
  188. function batch_items(){
  189. /* 获取选中的项 */
  190. var items = '';
  191. $('.checkitem:checked').each(function () {
  192. items += this.value + ',';
  193. });
  194. if (items != '') {
  195. items = items.substr(0, (items.length - 1));
  196. }
  197. return items;
  198. }
  199. </script>