[更新]修改粉丝标签设置

This commit is contained in:
Anyon 2017-05-16 16:53:31 +08:00
parent 52d9474a1d
commit 082bc6dfef
2 changed files with 18 additions and 0 deletions

View File

@ -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);
}

View File

@ -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">