| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:89:"E:\phpStudy\PHPTutorial\WWW\repairceshi\public/../application/admin\view\index\order.html";i:1551334808;s:81:"E:\phpStudy\PHPTutorial\WWW\repairceshi\application\admin\view\public\header.html";i:1551230385;}*/ ?>
- <!DOCTYPE html>
- <html lang="zh-cn">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <title>管理中心</title>
- <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
- <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
- <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
- </head>
- <body>
- <nav class="navbar navbar-fixed-top navbar-default">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
- aria-expanded="false" aria-controls="navbar">
- <span class="sr-only">导航按钮</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand" href="#">管理中心</a>
- </div><!-- /.navbar-header -->
- <div id="navbar" class="collapse navbar-collapse">
- <ul class="nav navbar-nav navbar-right">
- <li>
- <a href="/admin/index/index"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
- </li>
- <li><a href="/admin/index/order"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
- <li><a href="/admin/index/group"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
- <li><a href="/admin/index/user"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
- <li><a href="/admin/index/loginout"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
- </ul>
- </div><!-- /.navbar-collapse -->
- </div><!-- /.container -->
- </nav><!-- /.navbar -->
- <div class="container" style="padding-top:70px;">
- <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
- <form action="order" method="GET" class="form-inline">
- <div class="form-group">
- <label>搜索</label>
- <select name="type" class="form-control">
- <option value="1">订单号</option>
- </select>
- </div>
- <div class="form-group">
- <input type="text" class="form-control" name="keyword" placeholder="搜索内容">
- </div>
- <button type="submit" class="btn btn-primary">搜索</button>
- </form>
- <div class="table-responsive" style="padding-top: 10px;">
- <table class="table table-striped" border='1'>
- <thead>
- <tr>
- <th style="text-align: center;">订单号</th>
- <th style="text-align: center;">报修人</th>
- <th style="text-align: center;">联系电话</th>
- <th style="text-align: center;">维修者</th>
- <th style="text-align: center;">订单问题</th>
- <th style="text-align: center;">创建时间</th>
- <th style="text-align: center;">订单更新时间</th>
- <th style="text-align: center;">订单状态</th>
- <th style="text-align: center;">操作</th>
- </tr>
- </thead>
- <tbody style="text-align: center;">
- <?php if(is_array($order_info) || $order_info instanceof \think\Collection || $order_info instanceof \think\Paginator): $i = 0; $__LIST__ = $order_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
- <tr>
- <td><b><?php echo $vo['order_id']; ?></b></td>
- <td><?php echo $vo['linkman']; ?></td>
- <td><?php echo $vo['linktel']; ?></td>
- <td>
- <?php if($vo['repuser'] == null): ?>
- 暂无
- <?php else: ?>
- <?php echo $vo['repuser']; endif; ?>
- </td>
- <td><?php echo $vo['title']; ?></td>
- <td><?php echo $vo['create_time']; ?></td>
- <td><?php echo date('Y-m-d H:i',$vo['update_time'] ); ?></td>
- <td>
- <?php if($vo['status'] == '0'): ?>
- <font color="green">接单中</font>
- <?php elseif($vo['status'] == '1'): ?>
- <font color="green">处理中</font>
- <?php else: ?>
- <font color="red">完成</font>
- <?php endif; ?>
- </td>
- <td>
- <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-info buttoninfo">查看</button>
- <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
- <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-success buttonmessage">评论</button>
- </td>
- </tr>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </tbody>
- <thead>
- <tr>
- <th style="text-align: center;">订单号</th>
- <th style="text-align: center;">报修人</th>
- <th style="text-align: center;">联系电话</th>
- <th style="text-align: center;">维修者</th>
- <th style="text-align: center;">订单问题</th>
- <th style="text-align: center;">创建时间</th>
- <th style="text-align: center;">订单更新时间</th>
- <th style="text-align: center;">订单状态</th>
- <th style="text-align: center;">操作</th>
- </tr>
- </thead>
- </table>
- </div>
- <div style="text-align:center;">
- <?php echo $order_info->render(); ?>
- </div>
- <script src="/static/login/js/jquery.min.js"></script>
- <script>
- $(function () {
- //查看信息
- $('.buttoninfo').click(function () {
- //获取到当前订单
- let orderid = $(this).attr('data-orderid');
- window.location.href = "/admin/index/order_info?orderid="+orderid;
- });
- //编辑信息
- $('.buttoneidt').click(function () {
- //获取到当前订单
- let orderid = $(this).attr('data-orderid');
- window.location.href = "/admin/index/edit_order_info?orderid="+orderid;
- });
- //评论订单
- $('.buttonmessage').click(function () {
- //获取到当前订单
- let orderid = $(this).attr('data-orderid');
- console.log(orderid);
- window.location.href = "/admin/index/order_message?orderid="+orderid;
- });
- });
- </script>
|