member.html 10 KB

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