{include file='ebcms@common/header' /}

### TAG管理

ID | 操作 | 样式 | 推荐 | 内容条数 | 标签
--- | --- | --- | --- | --- | ---
{php} $where = []; if(in_array(input('recommend'),['0','1'])){ $where['recommend'] = input('recommend'); } if(input('q')){ $where['tag'] = ['like','%'.input('q').'%']; } $order = []; if(input('order') && input('sort')){ $order[input('order')] = (input('sort')=='desc')?'desc':'asc'; }else{ $order['id'] = 'desc'; } $data = \app\content\model\Tag::where($where) -> order($order) -> paginate(10, false, [ 'query' => input('get.') ]); {/php} {foreach name='data' item='vo'}
{$vo.id} | {if condition="check_auth('delete')"} {/if} {if condition="check_auth('edit')"} {/if} | {if condition="check_auth('style')"} {/if} | {if condition="check_auth('recommend')"} {eq name='vo.recommend' value='1'} {else} {/eq} {/if} | {$vo.count} | {$vo.tag}
{/foreach}
选择 |

{$data -> render()}
{include file='ebcms@common/footer' /}