57cb85b43ce0629acd6a964a29ffb961.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?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;}*/ ?>
  2. <!DOCTYPE html>
  3. <html lang="zh-cn">
  4. <head>
  5. <meta charset="utf-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />
  7. <title>管理中心</title>
  8. <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
  9. <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
  10. <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
  11. </head>
  12. <body>
  13. <nav class="navbar navbar-fixed-top navbar-default">
  14. <div class="container">
  15. <div class="navbar-header">
  16. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
  17. aria-expanded="false" aria-controls="navbar">
  18. <span class="sr-only">导航按钮</span>
  19. <span class="icon-bar"></span>
  20. <span class="icon-bar"></span>
  21. <span class="icon-bar"></span>
  22. </button>
  23. <a class="navbar-brand" href="#">管理中心</a>
  24. </div><!-- /.navbar-header -->
  25. <div id="navbar" class="collapse navbar-collapse">
  26. <ul class="nav navbar-nav navbar-right">
  27. <li>
  28. <a href="/admin/index/index"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
  29. </li>
  30. <li><a href="/admin/index/order"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
  31. <li><a href="/admin/index/group"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
  32. <li><a href="/admin/index/user"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
  33. <li><a href="/admin/index/loginout"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
  34. </ul>
  35. </div><!-- /.navbar-collapse -->
  36. </div><!-- /.container -->
  37. </nav><!-- /.navbar -->
  38. <div class="container" style="padding-top:70px;">
  39. <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
  40. <form action="order" method="GET" class="form-inline">
  41. <div class="form-group">
  42. <label>搜索</label>
  43. <select name="type" class="form-control">
  44. <option value="1">订单号</option>
  45. </select>
  46. </div>
  47. <div class="form-group">
  48. <input type="text" class="form-control" name="keyword" placeholder="搜索内容">
  49. </div>
  50. <button type="submit" class="btn btn-primary">搜索</button>
  51. </form>
  52. <div class="table-responsive" style="padding-top: 10px;">
  53. <table class="table table-striped" border='1'>
  54. <thead>
  55. <tr>
  56. <th style="text-align: center;">订单号</th>
  57. <th style="text-align: center;">报修人</th>
  58. <th style="text-align: center;">联系电话</th>
  59. <th style="text-align: center;">维修者</th>
  60. <th style="text-align: center;">订单问题</th>
  61. <th style="text-align: center;">创建时间</th>
  62. <th style="text-align: center;">订单更新时间</th>
  63. <th style="text-align: center;">订单状态</th>
  64. <th style="text-align: center;">操作</th>
  65. </tr>
  66. </thead>
  67. <tbody style="text-align: center;">
  68. <?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;?>
  69. <tr>
  70. <td><b><?php echo $vo['order_id']; ?></b></td>
  71. <td><?php echo $vo['linkman']; ?></td>
  72. <td><?php echo $vo['linktel']; ?></td>
  73. <td>
  74. <?php if($vo['repuser'] == null): ?>
  75. 暂无
  76. <?php else: ?>
  77. <?php echo $vo['repuser']; endif; ?>
  78. </td>
  79. <td><?php echo $vo['title']; ?></td>
  80. <td><?php echo $vo['create_time']; ?></td>
  81. <td><?php echo date('Y-m-d H:i',$vo['update_time'] ); ?></td>
  82. <td>
  83. <?php if($vo['status'] == '0'): ?>
  84. <font color="green">接单中</font>
  85. <?php elseif($vo['status'] == '1'): ?>
  86. <font color="green">处理中</font>
  87. <?php else: ?>
  88. <font color="red">完成</font>
  89. <?php endif; ?>
  90. </td>
  91. <td>
  92. <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-info buttoninfo">查看</button>
  93. <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
  94. <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-success buttonmessage">评论</button>
  95. </td>
  96. </tr>
  97. <?php endforeach; endif; else: echo "" ;endif; ?>
  98. </tbody>
  99. <thead>
  100. <tr>
  101. <th style="text-align: center;">订单号</th>
  102. <th style="text-align: center;">报修人</th>
  103. <th style="text-align: center;">联系电话</th>
  104. <th style="text-align: center;">维修者</th>
  105. <th style="text-align: center;">订单问题</th>
  106. <th style="text-align: center;">创建时间</th>
  107. <th style="text-align: center;">订单更新时间</th>
  108. <th style="text-align: center;">订单状态</th>
  109. <th style="text-align: center;">操作</th>
  110. </tr>
  111. </thead>
  112. </table>
  113. </div>
  114. <div style="text-align:center;">
  115. <?php echo $order_info->render(); ?>
  116. </div>
  117. <script src="/static/login/js/jquery.min.js"></script>
  118. <script>
  119. $(function () {
  120. //查看信息
  121. $('.buttoninfo').click(function () {
  122. //获取到当前订单
  123. let orderid = $(this).attr('data-orderid');
  124. window.location.href = "/admin/index/order_info?orderid="+orderid;
  125. });
  126. //编辑信息
  127. $('.buttoneidt').click(function () {
  128. //获取到当前订单
  129. let orderid = $(this).attr('data-orderid');
  130. window.location.href = "/admin/index/edit_order_info?orderid="+orderid;
  131. });
  132. //评论订单
  133. $('.buttonmessage').click(function () {
  134. //获取到当前订单
  135. let orderid = $(this).attr('data-orderid');
  136. console.log(orderid);
  137. window.location.href = "/admin/index/order_message?orderid="+orderid;
  138. });
  139. });
  140. </script>