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

### 评论管理

id | 操作 | 状态 | 内容 | 分组 | KEY | 评论人 | 被评论人 | 评论时间 | IP
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
{php} $where = []; if(input('q')){ $where['content|group|key'] = ['like','%'.trim(input('q')).'%']; } if(input('?status') && input('status')!=''){ $where['status'] = input('status'); } $data = \app\user\model\Comment::with('user,touser') -> where($where) -> order('id desc') -> 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('status')"} {switch name='vo.status'} {case value='99'} {/case} {case value='1'} {/case} {default/} {/switch} {/if} | {$vo.content} | {$vo.group} | {$vo.key} | {$vo.user.nickname} | {$vo.touser.nickname} | {$vo.create_time|date='Y-m-d H:i:s',###} | {$vo.ip}
{/foreach}
选择 |

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