member.html 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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_inviter_set}</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. </dl>
  27. <div class="btn_group">
  28. <input type="submit" class="btn" value="{$Think.lang.ds_search}">
  29. {if $filtered}
  30. <a href="{:url('Inviter/member')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  31. {/if}
  32. </div>
  33. </div>
  34. </form>
  35. <table class="ds-default-table">
  36. <thead>
  37. <tr class="thead">
  38. <th>&nbsp;</th>
  39. <th colspan="2">{$Think.lang.ds_member_name}</th>
  40. <th class="align-center">{$Think.lang.inviter_class}</th>
  41. <th class="align-center">{$Think.lang.inviter_total_amount}</th>
  42. <th class="align-center">{$Think.lang.inviter_goods_quantity}</th>
  43. <th class="align-center">{$Think.lang.inviter_goods_amount}</th>
  44. <th class="align-center">{$Think.lang.inviter_parent_name}</th>
  45. <th class="align-center">{$Think.lang.inviter_quantity}</th>
  46. <th class="align-center">{$Think.lang.inviter_state}</th>
  47. <th class="align-center">{$Think.lang.inviter_applytime}</th>
  48. <th class="align-center">{$Think.lang.ds_handle}</th>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. {notempty name="member_list"}
  53. {foreach name="member_list" item="v" key="k" }
  54. <tr class="hover member">
  55. <td class="w24"><input type="checkbox" name='del_id[]' value="{$v.member_id}" class="checkitem"></td>
  56. <td class="w48 picture">
  57. <div class="size-44x44">
  58. <span class="thumb"><i></i>
  59. <img src="{:get_member_avatar($v.member_avatar)}?{:microtime()}" width="44" height="44"/>
  60. </span>
  61. </div>
  62. </td>
  63. <td><p class="name"><strong>{$v.member_name}</strong>({$Think.lang.member_truename}: {$v.member_truename})</p>
  64. <p class="smallfont">{$Think.lang.member_index_reg_time}:&nbsp;{$v.member_addtime|date='Y-m-d'}</p>
  65. <div class="im"><span class="email" >
  66. {if $v.member_email != ''}
  67. <a href="mailto:{$v.member_email}" class=" yes" title="{$Think.lang.member_email}:{$v.member_email}">{$v.member_email}</a></span>
  68. {else /}
  69. <a href="JavaScript:void(0);" class="" title="{$Think.lang.member_index_null}" >{$v.member_email}</a></span>
  70. {/if}
  71. {if $v.member_ww != ''}
  72. <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>
  73. {/if}
  74. {if $v.member_qq != ''}
  75. <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>
  76. {/if}
  77. {if $v.member_mobile != ''}
  78. <div style="font-size:13px; padding-left:10px">&nbsp;&nbsp;{:encrypt_show($v.member_mobile,4,4)}</div>
  79. {/if}
  80. </div></td>
  81. <td class="align-center">{$v.inviter_class}</td>
  82. <td class="align-center">{$Think.lang.currency}{$v.inviter_total_amount}</td>
  83. <td class="align-center">{$v.inviter_goods_quantity}</td>
  84. <td class="align-center">{$v.inviter_goods_amount}</td>
  85. <td class="align-center">{$v.inviter_parent_name}</td>
  86. <td class="align-center">
  87. <p>{$Think.lang.inviter_member_1}{$v.inviter_1_quantity}</p>
  88. <p>{$Think.lang.inviter_member_2}{$v.inviter_2_quantity}</p>
  89. <p>{$Think.lang.inviter_member_3}{$v.inviter_3_quantity}</p>
  90. </td>
  91. <td class="align-center">{if $v.inviter_state == 0}{$Think.lang.inviter_state_0}{elseif $v.inviter_state == 1}{$Think.lang.inviter_state_1}{else/}{$Think.lang.inviter_state_2}{/if}</td>
  92. <td class="align-center">{$v.inviter_applytime|date='Y-m-d'}</td>
  93. <td class="align-center">
  94. <a href="{:url('Inviter/memberinfo',['member_id'=>$v.member_id])}" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_view}</a>
  95. {if $v.inviter_state == 1}
  96. <a href="javascript:dsLayerConfirm('{:url('Inviter/memberstate',['member_id'=>$v.member_id,'member_state'=>2])}','{$Think.lang.ds_ensure_disable}')" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_disable}</a>
  97. {else/}
  98. <a href="javascript:dsLayerConfirm('{:url('Inviter/memberstate',['member_id'=>$v.member_id,'member_state'=>1])}','{$Think.lang.ds_ensure_enable}')" class="dsui-btn-add"><i class="iconfont"></i>{$Think.lang.ds_enable}</a>
  99. {/if}
  100. <a href="javascript:dsLayerOpen('{:url('Inviter/member_adjust',['member_id'=>$v.member_id])}','{$Think.lang.adjust_superior}-{$v.member_name}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.adjust_superior}</a>
  101. </td>
  102. </tr>
  103. {/foreach}
  104. {else /}
  105. <tr class="no_data">
  106. <td colspan="11">{$Think.lang.ds_no_record}</td>
  107. </tr>
  108. {/notempty}
  109. </tbody>
  110. <tfoot class="tfoot">
  111. {notempty name="member_list"}
  112. <tr>
  113. <td class="w24"><input type="checkbox" class="checkall" id="checkallBottom"></td>
  114. <td colspan="16">
  115. <label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  116. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_disable_batch()"><span>{$Think.lang.ds_disable}</span></a>
  117. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_enable_batch()"><span>{$Think.lang.ds_enable}</span></a>
  118. </td>
  119. </tr>
  120. {/notempty}
  121. </tfoot>
  122. </table>
  123. {$show_page|raw}
  124. </div>
  125. <script>
  126. function submit_disable_batch() {
  127. var ids_str=batch_items();
  128. _uri = ADMINSITEURL+"/Inviter/memberstate.html?member_state=2&member_id=" + ids_str;
  129. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_disable}');
  130. }
  131. function submit_enable_batch() {
  132. var ids_str=batch_items();
  133. _uri = ADMINSITEURL+"/Inviter/memberstate.html?member_state=1&member_id=" + ids_str;
  134. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_enable}');
  135. }
  136. function batch_items(){
  137. /* 获取选中的项 */
  138. var items = '';
  139. $('.checkitem:checked').each(function () {
  140. items += this.value + ',';
  141. });
  142. if (items != '') {
  143. items = items.substr(0, (items.length - 1));
  144. }
  145. return items;
  146. }
  147. </script>