mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改粉丝标签设置
This commit is contained in:
parent
52d9474a1d
commit
082bc6dfef
@ -48,6 +48,9 @@ class Fans extends BasicAdmin {
|
||||
$db->where($key, 'like', "%{$get[$key]}%");
|
||||
}
|
||||
}
|
||||
if (isset($get['tag']) && $get['tag'] !== '') {
|
||||
$db->where("concat(',',tagid_list,',') like :tag", ['tag' => "%,{$get['tag']},%"]);
|
||||
}
|
||||
return parent::_list($db);
|
||||
}
|
||||
|
||||
|
@ -43,6 +43,21 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-2">
|
||||
<div class="form-group">
|
||||
<select name="tag" class="input-sm form-control">
|
||||
<option value="">- 粉丝标签 -</option>
|
||||
<!--{foreach $tags as $key=>$tag}-->
|
||||
<!--{if $Think.get.tag eq $key}-->
|
||||
<option selected value="{$key}">{$tag}</option>
|
||||
<!--{else}-->
|
||||
<option value="{$key}">{$tag}</option>
|
||||
<!--{/if}-->
|
||||
<!--{/foreach}-->
|
||||
</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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user