index.html 6.3 KB
<include file="public@header" />
</head>
<body>
<div class="wrap js-check-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('zj_order/index')}">
        订单状态:
        <select class="form-control" name="order_type">
            <option value>选择订单状态</option>
            <option value="0">已取消订单</option>
            <option value="1">未支付</option>
            <option value="2">待分配</option>
            <option value="3">已分配</option>
            <option value="4">待评论</option>
            <option value="5">已完成</option>
        </select>&nbsp;&nbsp;
        导师:
        <select class="form-control" name="aid">
            <option value>选择导师</option>
            <foreach name="admin" item="val">
                <option value="{$val.id}">{$val.user_login}</option>
            </foreach>
        </select>&nbsp;&nbsp;
        服务分类:
        <select class="form-control" name="ser_type">
            <option value>选择服务分类</option>
            <foreach name="ser" item="vo">
                <option value="{$vo.id}">{$vo.name}</option>
            </foreach>
        </select>&nbsp;&nbsp;
        订单编号:
        <input type="text" name="order_num" placeholder="请输入12位订单编号" class="form-control">&nbsp;&nbsp;
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('zj_order/index')}">清空</a>
    </form>
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>订单编号</th>
                <th>所购服务</th>
                <th>服务分类</th>
                <th>下单用户</th>
                <th>客户姓名</th>
                <th>客户留言</th>
                <th>下单时间</th>
                <th>是否加急</th>
                <th>订单状态</th>
                <th>支付方式</th>
                <th>分配导师</th>
                <th>总价</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="allorder" item="vo">
                <tr>
                    <td>{$vo['order_num']}</td>
                    <td>{$vo['sname']}</td>
                    <td>{$vo['tname']}</td>
                    <td>{$vo['uname']}</td>
                    <td>{$vo['name']}</td>
                    <td>
                        <if condition="mb_strlen($vo.remarks) gt '8'">
                            {:mb_substr($vo.remarks,0,8)}...
                            <else>
                            {$vo.remarks}
                        </if>
                    </td>
                    <td>{:date('Y-m-d H-i-s',$vo['create_time'])}</td>
                    <td>
                        <if condition="$vo.status_buy=='0'">

                            <else>

                        </if>
                    </td>
                    <td>
                        <if condition="$vo['order_type'] eq 0">
                            已取消订单
                        <elseif condition="$vo['order_type'] eq 1">
                            未支付
                        <elseif condition="$vo['order_type'] eq 2">
                            未分配
                        <elseif condition="$vo['order_type'] eq 3">
                            已分配
                        <elseif condition="$vo['order_type'] eq 4">
                            待评论
                        <elseif condition="$vo['order_type'] eq 5">
                            已完成
                        </if>
                    </td>
                    <td>
                        <if condition="$vo.order_type=='0'||$vo.order_type=='1'">

                        <else>
                            <if condition="$vo['parment_type'] eq 0">
                                余额支付
                            <elseif condition="$vo['parment_type'] eq 1">
                                支付宝支付
                            <elseif condition="$vo['parment_type'] eq 2">
                                微信支付
                            </if>
                        </if>
                    </td>
                    <td>
                        <if condition="$vo.order_type=='0'||$vo.order_type=='1'||$vo.order_type=='2'">

                            <else>
                                {$vo.aname}
                        </if>
                    </td>
                    <td>{$vo.whole}</td>
                    <td>
                        <a href="{:url('zj_order/one',array('id'=>$vo['id']))}">查看详情</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
    <table class="table table-bordered" style="width: 80%;">
        <thead>
            <tr>
                <th style="width: 25%;">已取消订单数量</th>
                <th style="width: 25%;">未支付订单数量</th>
                <th style="width: 25%;">已支付订单数量</th>
                <th style="width: 25%;">总订单数量</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>{$zd.0}</td>
                <td>{$zd.1}</td>
                <td>{$zd.2}</td>
                <td>{$zd['0']+$zd['1']+$zd['2']}</td>
            </tr>
        </tbody>
    </table>
    <table class="table table-bordered" style="width: 100%;">
        <thead>
        <tr>
            <th style="width: 20%;">已取消订单金额</th>
            <th style="width: 20%;">未支付订单金额</th>
            <th style="width: 20%;">已支付订单金额</th>
            <th style="width: 20%;">未支付加已支付订单金额</th>
            <th style="width: 20%;">所有订单总金额</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>{$aa.1}</td>
            <td>{$aa.2}</td>
            <td>{$aa.3}</td>
            <td>{$aa['2']+$aa['3']}</td>
            <td>{$aa['1']+$aa['2']+$aa['3']}</td>
        </tr>
        </tbody>
    </table>
        <div class="pagination">{$allorder->render()}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>