index.html 4.3 KB
<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>{:lang('USER_INDEXADMIN_INDEX')}</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index',['uid'=>$uid])}">
        关键字:
        <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{$keyword|default=''}"
               placeholder="用户id/手机号">
        注册时间:
        <input type="text" class="form-control js-bootstrap-datetime" name="start_time"
               value="{$start_time|default=''}"
               style="width: 140px;" autocomplete="off">-
        <input type="text" class="form-control js-bootstrap-datetime" name="end_time"
               value="{$end_time|default=''}"
               style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
        积分余额:
        <input type="number" class="form-control" name="min"
               value="{$min|default=''}"
               style="width: 140px;">-
        <input type="number" class="form-control" name="max"
               value="{$max|default=''}"
               style="width: 140px;"> &nbsp; &nbsp;
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('user/adminIndex/index',['uid'=>$uid])}">清空</a>
    </form>
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>ID</th>
                <th>{:lang('NICENAME')}</th>
                <th>手机</th>
                <th>下单量</th>
                <th style="width:160px">{:lang('REGISTRATION_TIME')}</th>
                <th>积分余额</th>
                <th>会员专区金额统计</th>
                <th>{:lang('STATUS')}</th>
                <th style="width: 450px;">{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <php>
                $user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));
            </php>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo['user_nickname']?$vo['user_nickname']:lang('NOT_FILLED')}</td>
                    <td>{$vo.mobile}</td>
                    <td>{$vo.order_count}</td>
                    <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
                    <td>{$vo.balance}</td>
                    <td>{$vo.total}</td>
                    <td>{$user_statuses[$vo['user_status']]}</td>
                    <td>
                        <neq name="vo.id" value="1">
                            <empty name="vo.user_status">
                                <a href="{:url('adminIndex/cancelban',array('id'=>$vo['id']))}"
                                   class="js-ajax-dialog-btn"
                                   data-msg="{:lang('ACTIVATE_USER_CONFIRM_MESSAGE')}">{:lang('ACTIVATE_USER')}</a>
                                <else/>
                                <a href="{:url('adminIndex/ban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn"
                                   data-msg="{:lang('BLOCK_USER_CONFIRM_MESSAGE')}">{:lang('BLOCK_USER')}</a> |
                            </empty>
                            <a href="{:url('balance',array('id'=>$vo['id']))}">查看积分详情</a> |
                            <a href="{:url('admin/zj_order/index',array('uid'=>$vo.id))}">查看用户订单</a> |
                            <if condition="$vo.parent_id eq ''">
                            <a href="{:url('admin/User/role', ['uid'=>$vo['id']])}">变更角色</a>
                                <else/>所属上级:
                            </if>
                            <if condition="$vo['role'] eq '2'"> | <a href="{:url('user/adminIndex/index',['uid'=>$vo['id']])}">查看下级人员</a></if>
                            <else/>
                            <a style="color: #ccc;">{:lang('BLOCK_USER')}</a>
                        </neq>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>