index.html 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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.member_auth}</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_state" >
  28. <option value="">{$Think.lang.member_index_state}</option>
  29. <option {if condition='$Request.param.search_state eq "check"'}selected='selected'{/if} value="check">{$Think.lang.member_auth_state[1]}</option>
  30. <option {if condition='$Request.param.search_state eq "pass"'}selected='selected'{/if} value="pass">{$Think.lang.member_auth_state[3]}</option>
  31. <option {if condition='$Request.param.search_state eq "fail"'}selected='selected'{/if} value="fail">{$Think.lang.member_auth_state[2]}</option>
  32. </select>
  33. </dd>
  34. </dl>
  35. <div class="btn_group">
  36. <input type="submit" class="btn" value="{$Think.lang.ds_search}">
  37. {if $filtered}
  38. <a href="{:url('MemberAuth/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  39. {/if}
  40. </div>
  41. </div>
  42. </form>
  43. <table class="ds-default-table">
  44. <thead>
  45. <tr class="thead">
  46. <th>&nbsp;</th>
  47. <th colspan="2">{$Think.lang.ds_member_name}</th>
  48. <th class="align-center">{$Think.lang.member_truename}</th>
  49. <th class="align-center">{$Think.lang.member_idcard}</th>
  50. <th class="align-center">{$Think.lang.member_idcard_image1}</th>
  51. <th class="align-center">{$Think.lang.member_idcard_image2}</th>
  52. <th class="align-center">{$Think.lang.member_idcard_image3}</th>
  53. <th class="align-center">{$Think.lang.ds_status}</th>
  54. <th class="align-center">{$Think.lang.ds_handle}</th>
  55. </tr>
  56. </thead>
  57. <tbody>
  58. {notempty name="member_list"}
  59. {foreach name="member_list" item="v" key="k" }
  60. <tr class="hover member">
  61. <td class="w24"><input type="checkbox" name='del_id[]' value="{$v.member_id}" class="checkitem"></td>
  62. <td class="w48 picture">
  63. <div class="size-44x44">
  64. <span class="thumb"><i></i>
  65. <img src="{:get_member_avatar($v.member_avatar)}?{:microtime()}" width="44" height="44"/>
  66. </span>
  67. </div>
  68. </td>
  69. <td><p class="name"><strong>{$v.member_name}</strong></p>
  70. <p class="smallfont">{$Think.lang.member_index_reg_time}:&nbsp;{$v.member_addtime}</p>
  71. <div class="im"><span class="email" >
  72. {if $v.member_email != ''}
  73. <a href="mailto:{$v.member_email}" class=" yes" title="{$Think.lang.member_email}:{$v.member_email}">{$v.member_email}</a></span>
  74. {else /}
  75. <a href="JavaScript:void(0);" class="" title="{$Think.lang.member_index_null}" >{$v.member_email}</a></span>
  76. {/if}
  77. {if $v.member_ww != ''}
  78. <a target="_blank" href="http://web.im.alisoft.com/msg.aw?v=2&uid={$v.member_ww}&site=cnalichn&s=11" class="" title="WangWang: {$v.member_ww}"><img border="0" src="http://web.im.alisoft.com/online.aw?v=2&uid={$v.member_ww}&site=cntaobao&s=2&charset=utf-8" /></a>
  79. {/if}
  80. {if $v.member_qq != ''}
  81. <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>
  82. {/if}
  83. {if $v.member_mobile != ''}
  84. <div style="font-size:13px; padding-left:10px">&nbsp;&nbsp;{:encrypt_show($v.member_mobile,4,4)}</div>
  85. {/if}
  86. </div></td>
  87. <td class="align-center">{$v.member_truename}</td>
  88. <td class="align-center">{$v.member_idcard}</td>
  89. <td class="align-center">
  90. <img src="{:get_member_idcard_image($v.member_idcard_image1)}" height="100" onclick="openPhoto('{:get_member_idcard_image($v.member_idcard_image1)}')">
  91. </td>
  92. <td class="align-center">
  93. <img src="{:get_member_idcard_image($v.member_idcard_image2)}" height="100" onclick="openPhoto('{:get_member_idcard_image($v.member_idcard_image2)}')">
  94. </td>
  95. <td class="align-center">
  96. <img src="{:get_member_idcard_image($v.member_idcard_image3)}" height="100" onclick="openPhoto('{:get_member_idcard_image($v.member_idcard_image3)}')">
  97. </td>
  98. <td class="align-center">{$Think.lang.member_auth_state[$v.member_auth_state]}</td>
  99. <td class="align-center">
  100. {if $v.member_auth_state == 1}
  101. <a href="javascript:dsLayerConfirm('{:url('MemberAuth/verify',['member_id'=>$v.member_id,'state'=>1])}','{$Think.lang.ds_ensure_operation}')" class="dsui-btn-add"><i class="iconfont"></i>{$Think.lang.ds_pass}</a>
  102. <a href="javascript:submit_verify({$v.member_id},2)" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_refuse}</a>
  103. {/if}
  104. </td>
  105. </tr>
  106. {/foreach}
  107. {else /}
  108. <tr class="no_data">
  109. <td colspan="11">{$Think.lang.ds_no_record}</td>
  110. </tr>
  111. {/notempty}
  112. </tbody>
  113. <tfoot class="tfoot">
  114. {notempty name="member_list"}
  115. <tr>
  116. <td class="w24"><input type="checkbox" class="checkall" id="checkallBottom"></td>
  117. <td colspan="16">
  118. <label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  119. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_verify(0,1)"><span>{$Think.lang.ds_pass}</span></a>
  120. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-red btn-small" onclick="submit_verify(0,2)"><span>{$Think.lang.ds_refuse}</span></a>
  121. </td>
  122. </tr>
  123. {/notempty}
  124. </tfoot>
  125. </table>
  126. {$show_page|raw}
  127. </div>
  128. <script type="text/javascript">
  129. function openPhoto(src){
  130. layer.photos({
  131. photos: {
  132. "title": "", //相册标题
  133. "id": 1, //相册id
  134. "start": 0, //初始显示的图片序号,默认0
  135. "data": [ //相册包含的图片,数组格式
  136. {
  137. "pid": 1, //图片id
  138. "src": src, //原图地址
  139. "thumb": src //缩略图地址
  140. }
  141. ]
  142. }
  143. ,anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机
  144. })
  145. }
  146. function submit_verify(member_id,state) {
  147. if(member_id==0){
  148. /* 获取选中的项 */
  149. var items = '';
  150. $('.checkitem:checked').each(function () {
  151. items += this.value + ',';
  152. });
  153. if (items != '') {
  154. items = items.substr(0, (items.length - 1));
  155. member_id=items;
  156. }else{
  157. layer.alert('{$Think.lang.checkbox_empty}', {icon: 2})
  158. return
  159. }
  160. }
  161. if(state==2){
  162. layer.prompt({title: '{$Think.lang.refuse_reason}', formType: 2}, function(text, index){
  163. layer.close(index);
  164. ajax_verify(member_id,state,text);
  165. })
  166. }else{
  167. ajax_verify(member_id,state)
  168. }
  169. }
  170. function ajax_verify(member_id,state,message=''){
  171. $.ajax({
  172. type: 'POST',
  173. url: "{:url('MemberAuth/verify')}",
  174. cache: false,
  175. data: {member_id:member_id,state:state,message:message},
  176. dataType: 'json',
  177. success: function (res) {
  178. if (res.code!=10000) {
  179. layer.alert(res.message);
  180. }
  181. else {
  182. location.reload();
  183. }
  184. }
  185. });
  186. }
  187. </script>