123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- {include file="public/header" /}
- <div class="page">
- <div class="fixed-bar">
- <div class="item-title">
- <div class="subject">
- <h3>{$Think.lang.ds_member_manage}</h3>
- <h5></h5>
- </div>
- {include file="public/admin_items" /}
- </div>
- </div>
- <form method="get" name="formSearch" id="formSearch">
- <div class="ds-search-form">
- <dl>
- <dd>
- <select name="search_field_name" >
- <option {if $search_field_name == 'member_name'}selected='selected'{/if} value="member_name">{$Think.lang.ds_member_name}</option>
- <option {if $search_field_name == 'member_email'}selected='selected'{/if} value="member_email">{$Think.lang.member_email}</option>
- <option {if $search_field_name == 'member_mobile'}selected='selected'{/if} value="member_mobile">{$Think.lang.member_mobile}</option>
- <option {if $search_field_name == 'member_truename'}selected='selected'{/if} value="member_truename">{$Think.lang.member_truename}</option>
- </select>
- </dd>
- <dd>
- <input type="text" value="{$search_field_value}" name="search_field_value" class="txt">
- </dd>
- <dd>
- <select name="search_sort" >
- <option value="">{$Think.lang.ds_sort}</option>
- <option {if $search_sort == 'member_logintime desc'}selected='selected'{/if} value="member_logintime desc">{$Think.lang.member_logintime}</option>
- <option {if $search_sort == 'member_loginnum desc'}selected='selected'{/if} value="member_loginnum desc">{$Think.lang.member_loginnum}</option>
- </select>
- </dd>
- <dd>
- <select name="search_state" >
- <option {if condition='$Request.param.search_state'}selected='selected'{/if} value="">{$Think.lang.member_index_state}</option>
- <option {if condition='$Request.param.search_state eq "no_informallow"'}selected='selected'{/if} value="no_informallow">{$Think.lang.member_index_inform_deny}</option>
- <option {if condition='$Request.param.search_state eq "no_isbuy"'}selected='selected'{/if} value="no_isbuy">{$Think.lang.member_index_buy_deny}</option>
- <option {if condition='$Request.param.search_state eq "no_isallowtalk"'}selected='selected'{/if} value="no_isallowtalk">{$Think.lang.member_index_talk_deny}</option>
- <option {if condition='$Request.param.search_state eq "no_memberstate"'}selected='selected'{/if} value="no_memberstate">{$Think.lang.member_index_login_deny}</option>
- </select>
- </dd>
- <dd>
- <select name="search_grade" >
- <option value='-1'>{$Think.lang.member_grade}</option>
- {notempty name="member_grade"}
- {foreach name="member_grade" item="v" key="k" }
- <option {if $Request.get.search_grade == $k}selected='selected'{/if} value="{$k}">{$v.level_name}</option>
- {/foreach}
- {/notempty}
- </select>
- </dd>
- </dl>
- <div class="btn_group">
- <input type="submit" class="btn" value="{$Think.lang.ds_search}">
- {if $filtered}
- <a href="{:url('Member/member')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
- {/if}
- </div>
- </div>
- </form>
- <table class="ds-default-table">
- <thead>
- <tr class="thead">
- <th> </th>
- <th colspan="2">{$Think.lang.ds_member_name}</th>
- <th class="align-center"><span fieldname="logins" ds_type="order_by">{$Think.lang.member_loginnum}</span></th>
- <th class="align-center"><span fieldname="last_login" ds_type="order_by">{$Think.lang.member_logintime}</span></th>
- <th class="align-center">{$Think.lang.ds_member_points}</th>
- <th class="align-center">{$Think.lang.ds_predeposit}</th>
- <th class="align-center">{$Think.lang.member_exppoints}</th>
- <th class="align-center">{$Think.lang.member_grade}</th>
- <th class="align-center">{$Think.lang.member_index_login}</th>
- <th class="align-center">{$Think.lang.ds_handle}</th>
- </tr>
- </thead>
- <tbody>
- {notempty name="member_list"}
- {foreach name="member_list" item="v" key="k" }
- <tr class="hover member">
- <td class="w24"><input type="checkbox" name='del_id[]' value="{$v.member_id}" class="checkitem"></td>
- <td class="w48 picture">
- <div class="size-44x44">
- <span class="thumb"><i></i>
- <img src="{:get_member_avatar($v.member_avatar)}?{:microtime()}" width="44" height="44"/>
- </span>
- </div>
- </td>
- <td><p class="name"><strong>{$v.member_name}</strong>({$Think.lang.member_truename}: {$v.member_truename})</p>
- <p class="smallfont">{$Think.lang.member_index_reg_time}: {$v.member_addtime}</p>
- <div class="im"><span class="email" >
- {if $v.member_email != ''}
- <a href="mailto:{$v.member_email}" class=" yes" title="{$Think.lang.member_email}:{$v.member_email}">{$v.member_email}</a></span>
- {else /}
- <a href="JavaScript:void(0);" class="" title="{$Think.lang.member_index_null}" >{$v.member_email}</a></span>
- {/if}
- {if $v.member_ww != ''}
- <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>
- {/if}
- {if $v.member_qq != ''}
- <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>
- {/if}
- {if $v.member_mobile != ''}
- <div style="font-size:13px; padding-left:10px"> {:encrypt_show($v.member_mobile,4,4)}</div>
- {/if}
- </div></td>
- <td class="align-center">{$v.member_loginnum}</td>
- <td class="w150 align-center"><p>{$v.member_logintime}</p>
- <p>{$v.member_login_ip}</p></td>
- <td class="align-center">{$v.member_points}</td>
- <td class="align-center"><p>{$Think.lang.member_index_available}: <strong class="red">{$v.available_predeposit}</strong> {$Think.lang.ds_yuan}</p>
- <p>{$Think.lang.member_index_frozen}: <strong class="red">{$v.freeze_predeposit}</strong> {$Think.lang.ds_yuan}</p>
- </td>
- <td class="align-center">{$v.member_exppoints}</td>
- <td class="align-center">{$v.member_grade}</td>
- <td class="align-center">{if $v.member_state == 1}{$Think.lang.member_edit_allow}{else/}{$Think.lang.member_edit_deny}{/if}</td>
- <td class="align-center">
- <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>
- <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>
- {if $v.member_state == 0}
- <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>
- {else/}
- <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>
- {/if}
- <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>
- </td>
- </tr>
- {/foreach}
- {else /}
- <tr class="no_data">
- <td colspan="11">{$Think.lang.ds_no_record}</td>
- </tr>
- {/notempty}
- </tbody>
- <tfoot class="tfoot">
- {notempty name="member_list"}
- <tr>
- <td class="w24"><input type="checkbox" class="checkall" id="checkallBottom"></td>
- <td colspan="16">
- <label for="checkallBottom">{$Think.lang.ds_select_all}</label>
- <a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.member_edit_denylogin}</span></a>
- <a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_recovery_batch()"><span>{$Think.lang.member_edit_allowlogin}</span></a>
- </td>
- </tr>
- {/notempty}
- </tfoot>
- </table>
- {$show_page|raw}
- </div>
- <script type="text/javascript">
- function submit_delete(ids_str){
- _uri = ADMINSITEURL+"/Member/memberstate.html?member_id=" + ids_str;
- dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_disable}');
- }
- function submit_recovery_batch() {
- var ids_str=batch_items();
- _uri = ADMINSITEURL+"/Member/memberstate.html?member_state=1&member_id=" + ids_str;
- dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_enable}');
- }
- function batch_items(){
- /* 获取选中的项 */
- var items = '';
- $('.checkitem:checked').each(function () {
- items += this.value + ',';
- });
- if (items != '') {
- items = items.substr(0, (items.length - 1));
- }
- return items;
- }
- </script>
|