[更新]修改粉丝黑名单操作

This commit is contained in:
Anyon 2017-05-05 16:45:01 +08:00
parent ed2e937256
commit 0f094c0376
4 changed files with 85 additions and 5 deletions

View File

@ -42,7 +42,8 @@ class Fans extends BasicAdmin {
$this->title = '微信粉丝管理';
$db = Db::name($this->table)->where('is_back', '0')->order('id desc');
$get = $this->request->get();
foreach (['nickname'] as $key) {
!empty($get['sex']) && $db->where('sex', $get['sex']);
foreach (['nickname', 'country', 'province', 'city'] as $key) {
if (isset($get[$key]) && $get[$key] !== '') {
$db->where($key, 'like', "%{$get[$key]}%");
}
@ -57,7 +58,8 @@ class Fans extends BasicAdmin {
$this->title = '微信粉丝黑名单管理';
$db = Db::name($this->table)->where('is_back', '1')->order('id desc');
$get = $this->request->get();
foreach (['nickname'] as $key) {
!empty($get['sex']) && $db->where('sex', $get['sex']);
foreach (['nickname', 'country', 'province', 'city'] as $key) {
if (isset($get[$key]) && $get[$key] !== '') {
$db->where($key, 'like', "%{$get[$key]}%");
}

View File

@ -18,17 +18,56 @@
<form class="animated form-search" action="__SELF__" onsubmit="return false" method="get">
<div class="row">
<div class="col-xs-3">
<div class="col-xs-2">
<div class="form-group">
<input type="text" name="nickname" value="{$Think.get.nickname|default=''}" placeholder="昵称" class="input-sm form-control">
</div>
</div>
<div class="col-xs-2">
<div class="form-group">
<select name="sex" class="input-sm form-control">
<option value="">- 性别 -</option>
<!--{if $Think.get.sex eq 1}-->
<option selected value="1">- -</option>
<!--{else}-->
<option value="1">- -</option>
<!--{/if}-->
<!--{if $Think.get.sex eq 2}-->
<option selected value="2">- -</option>
<!--{else}-->
<option value="2">- -</option>
<!--{/if}-->
</select>
</div>
</div>
<div class="col-xs-2">
<div class="form-group">
<input type="text" name="country" value="{$Think.get.country|default=''}" placeholder="国家" class="input-sm form-control">
</div>
</div>
<div class="col-xs-2">
<div class="form-group">
<input type="text" name="province" value="{$Think.get.province|default=''}" placeholder="省份" class="input-sm form-control">
</div>
</div>
<div class="col-xs-2">
<div class="form-group">
<input type="text" name="city" value="{$Think.get.city|default=''}" placeholder="城市" class="input-sm form-control">
</div>
</div>
<div class="col-xs-1">
<div class="form-group">
<button type="submit" class="btn btn-sm btn-white"><i class="fa fa-search"></i> 搜索</button>
</div>
</div>
</div>
</form>
<!-- 表单搜索 结束 -->

View File

@ -18,17 +18,55 @@
<form class="animated form-search" action="__SELF__" onsubmit="return false" method="get">
<div class="row">
<div class="col-xs-3">
<div class="col-xs-2">
<div class="form-group">
<input type="text" name="nickname" value="{$Think.get.nickname|default=''}" placeholder="昵称" class="input-sm form-control">
</div>
</div>
<div class="col-xs-2">
<div class="form-group">
<select name="sex" class="input-sm form-control">
<option value="">- 性别 -</option>
<!--{if $Think.get.sex eq 1}-->
<option selected value="1">- -</option>
<!--{else}-->
<option value="1">- -</option>
<!--{/if}-->
<!--{if $Think.get.sex eq 2}-->
<option selected value="2">- -</option>
<!--{else}-->
<option value="2">- -</option>
<!--{/if}-->
</select>
</div>
</div>
<div class="col-xs-2">
<div class="form-group">
<input type="text" name="country" value="{$Think.get.country|default=''}" placeholder="国家" class="input-sm form-control">
</div>
</div>
<div class="col-xs-2">
<div class="form-group">
<input type="text" name="province" value="{$Think.get.province|default=''}" placeholder="省份" class="input-sm form-control">
</div>
</div>
<div class="col-xs-2">
<div class="form-group">
<input type="text" name="city" value="{$Think.get.city|default=''}" placeholder="城市" class="input-sm form-control">
</div>
</div>
<div class="col-xs-1">
<div class="form-group">
<button type="submit" class="btn btn-sm btn-white"><i class="fa fa-search"></i> 搜索</button>
</div>
</div>
</div>
</form>
<!-- 表单搜索 结束 -->

View File

@ -10,8 +10,9 @@ html{overflow:auto;overflow-y:scroll !important}
body{min-width:1024px;font-size:12px;line-height:24px;font-family:'微软雅黑',"Microsoft YaHei","Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB",serif}
a{color:#06C;cursor:pointer}
a:hover{color:#039}
label{font-size:100%;font-weight:500}
input::-ms-clear{display:none}
button{border-radius:0!important}
label{font-size:100%;font-weight:500}
/** 后台框架 */
.framework-topbar{position:fixed;width:100%;height:50px;background:#09C;z-index:101}