{include file='common/header' /}
<div class="row">
    <div class="col-md-3">
        {include file='common/left' /}
    </div>
    <div class="col-md-9">
        <div class="panel panel-default">
            <div class="panel-body">
                <h1>账户流水</h1>
                <hr>
                {php}
                    $where = [
                        'user_id'   =>  \think\Session::get('user_id')
                    ];
                    $pagenum = 20;
                    $page = input('get.page',1,'intval')-1;
                    $data = \app\user\model\Currencylog::where($where) -> order('id desc') -> paginate($pagenum);
                {/php}
                <table class="table table-bordered">
                    <tr>
                        <th>序号</th>
                        <th>数额</th>
                        <th>备注</th>
                        <th>时间</th>
                    </tr>
                    {foreach name='data' item='vo'}
                    <tr>
                        <td>{$key + $pagenum*$page + 1}</td>
                        <td>{$vo.num} {$vo.currency_name}</td>
                        <td>{$vo.remark}</td>
                        <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
                    </tr>
                    {/foreach}
                </table>
                {$data -> render()}
            </div>
        </div>
    </div>
</div>
{include file='common/footer' /}