index.html 2.5 KB
<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a></a></li>
    </ul>
    <!--  <form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index')}">
          用户ID:
          <input class="form-control" type="text" name="uid" style="width: 200px;" value="{:input('request.uid')}"
                 placeholder="请输入用户ID">
          关键字:
          <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}"
                 placeholder="用户名/昵称/邮箱">
          <input type="submit" class="btn btn-primary" value="搜索"/>
          <a class="btn btn-danger" href="{:url('user/adminIndex/index')}">清空</a>
      </form>-->
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>ID</th>
                <th>订单号</th>
                <th>用户名</th>
                <th>商品名称</th>
                <th>数量</th>
                <th>费用</th>
                <th>下单时间</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.order_sn}</td>
                    <td>{$vo.user_login}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.num}</td>
                    <td>{$vo.fee}</td>
                    <td>{:date('Y-m-d H:i:s',$vo.add_time)}</td>
                    <td>
                        <switch name="$vo.status">
                            <case value="0"><font color="#a52a2a">未支付</font></case>
                            <case value="1"><font color="#006400">已支付</font></case>
                            <case value="2"><font color="black">已完成</font></case>
                        </switch>
                    </td>
                    <td>
                        <a href="{:url('orderDetail',['id'=>$vo.id])}">查看详情</a>
                        <a class="js-ajax-delete" href="{:url('orderDelete',['id'=>$vo.id])}">删除</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>