mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改粉丝黑名单操作
This commit is contained in:
parent
ed2e937256
commit
0f094c0376
@ -42,7 +42,8 @@ class Fans extends BasicAdmin {
|
|||||||
$this->title = '微信粉丝管理';
|
$this->title = '微信粉丝管理';
|
||||||
$db = Db::name($this->table)->where('is_back', '0')->order('id desc');
|
$db = Db::name($this->table)->where('is_back', '0')->order('id desc');
|
||||||
$get = $this->request->get();
|
$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] !== '') {
|
if (isset($get[$key]) && $get[$key] !== '') {
|
||||||
$db->where($key, 'like', "%{$get[$key]}%");
|
$db->where($key, 'like', "%{$get[$key]}%");
|
||||||
}
|
}
|
||||||
@ -57,7 +58,8 @@ class Fans extends BasicAdmin {
|
|||||||
$this->title = '微信粉丝黑名单管理';
|
$this->title = '微信粉丝黑名单管理';
|
||||||
$db = Db::name($this->table)->where('is_back', '1')->order('id desc');
|
$db = Db::name($this->table)->where('is_back', '1')->order('id desc');
|
||||||
$get = $this->request->get();
|
$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] !== '') {
|
if (isset($get[$key]) && $get[$key] !== '') {
|
||||||
$db->where($key, 'like', "%{$get[$key]}%");
|
$db->where($key, 'like', "%{$get[$key]}%");
|
||||||
}
|
}
|
||||||
|
@ -18,17 +18,56 @@
|
|||||||
<form class="animated form-search" action="__SELF__" onsubmit="return false" method="get">
|
<form class="animated form-search" action="__SELF__" onsubmit="return false" method="get">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-3">
|
|
||||||
|
<div class="col-xs-2">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="text" name="nickname" value="{$Think.get.nickname|default=''}" placeholder="昵称" class="input-sm form-control">
|
<input type="text" name="nickname" value="{$Think.get.nickname|default=''}" placeholder="昵称" class="input-sm form-control">
|
||||||
</div>
|
</div>
|
||||||
</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="col-xs-1">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<button type="submit" class="btn btn-sm btn-white"><i class="fa fa-search"></i> 搜索</button>
|
<button type="submit" class="btn btn-sm btn-white"><i class="fa fa-search"></i> 搜索</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<!-- 表单搜索 结束 -->
|
<!-- 表单搜索 结束 -->
|
||||||
|
@ -18,17 +18,55 @@
|
|||||||
<form class="animated form-search" action="__SELF__" onsubmit="return false" method="get">
|
<form class="animated form-search" action="__SELF__" onsubmit="return false" method="get">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-3">
|
|
||||||
|
<div class="col-xs-2">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="text" name="nickname" value="{$Think.get.nickname|default=''}" placeholder="昵称" class="input-sm form-control">
|
<input type="text" name="nickname" value="{$Think.get.nickname|default=''}" placeholder="昵称" class="input-sm form-control">
|
||||||
</div>
|
</div>
|
||||||
</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="col-xs-1">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<button type="submit" class="btn btn-sm btn-white"><i class="fa fa-search"></i> 搜索</button>
|
<button type="submit" class="btn btn-sm btn-white"><i class="fa fa-search"></i> 搜索</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<!-- 表单搜索 结束 -->
|
<!-- 表单搜索 结束 -->
|
||||||
|
@ -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}
|
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{color:#06C;cursor:pointer}
|
||||||
a:hover{color:#039}
|
a:hover{color:#039}
|
||||||
label{font-size:100%;font-weight:500}
|
|
||||||
input::-ms-clear{display:none}
|
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}
|
.framework-topbar{position:fixed;width:100%;height:50px;background:#09C;z-index:101}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user