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

### 流水日志

{php} $currency = \ebcms\Config::get('user.base.currency'); {/php}

id | 用户 | 数额 | 币种 | 备注 | 时间 | IP | 操作人
--- | --- | --- | --- | --- | --- | --- | ---
{php} $where = []; if($q = input('q')){ if(0 === stripos($q,'id:')){ $where['id'] = mb_substr($q,3); }else if(0 === stripos($q,'uid:')){ $where['user_id'] = mb_substr($q,4); }else if(0 === stripos($q,'mid:')){ $where['manager_id'] = mb_substr($q,4); }else{ $where['remark|ip'] = ['like','%'.$q.'%']; } } if(input('currency')){ $where['currency'] = input('currency'); } if(input('currency_type')){ $where['num'] = [input('currency_type')=='inc'?'EGT':'LT',0]; } $order = []; if(input('sort')){ $order['num'] = (input('sort')=='desc')?'desc':'asc'; } $order['id'] = 'desc'; $data = \app\user\model\Currencylog::with('user,manager') -> where($where) -> order($order) -> paginate(10,false,['query'=>input('get.')]); $currency = \ebcms\Config::get('user.base.currency'); {/php} {foreach name='data' item='vo'}
{$vo.id} | {$vo.user.nickname} | {$vo.num} | {$currency[$vo['currency']]|default='未知'} ({$vo.currency}) | {$vo.remark} | {$vo.create_time|date='Y-m-d H:i:s',###} | {$vo.ip} | {$vo.manager.nickname}
{/foreach}
选择 |

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