8ceed9bb3cba75f51b47f37fa7a535ff.php 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:93:"E:\phpStudy\PHPTutorial\WWW\repairceshi\public/../application/admin\view\index\user_info.html";i:1551241078;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. <div class="panel panel-primary">
  41. <div class="panel-heading">
  42. <h3 class="panel-title">个人信息</h3>
  43. </div>
  44. <ul class="list-group">
  45. <li class="list-group-item"><b>微信号码:</b><?php echo $user_info['nickname']; ?></li>
  46. <li class="list-group-item">
  47. <b>头像信息:</b>
  48. <?php if($user_info['headimgurl'] == null): ?>
  49. 暂无
  50. <?php else: ?>
  51. <img src="<?php echo $user_info['headimgurl']; ?>" alt="微信头像" style="width:30px;border-radius:50%">
  52. <?php endif; ?>
  53. </li>
  54. <li class="list-group-item">
  55. <b>电话:</b>
  56. <?php if($user_info['telephone'] == null): ?>
  57. 暂无
  58. <?php else: ?>
  59. <?php echo $user_info['telephone']; endif; ?>
  60. </li>
  61. <li class="list-group-item"><b>用户名:</b>
  62. <?php if($user_info['username'] == null): ?>
  63. 暂无
  64. <?php else: ?>
  65. <?php echo $user_info['username']; endif; ?>
  66. </li>
  67. <li class="list-group-item"><b>所属组:</b>
  68. <?php if($user_info['group'] == null): ?>
  69. 暂无
  70. <?php else: ?>
  71. <?php echo $user_info['group']; endif; ?>
  72. </li>
  73. <li class="list-group-item"><b>地址信息:</b>
  74. <?php if($user_info['address'] == null): ?>
  75. 暂无
  76. <?php else: ?>
  77. <?php echo $user_info['address']; endif; ?>
  78. </li>
  79. <li class="list-group-item">
  80. <b>身份信息:</b>
  81. <?php if($user_info['identity'] == 0): ?>
  82. 报修者
  83. <?php elseif($user_info['identity'] == 1): ?>
  84. 维修者
  85. <?php else: ?>
  86. 暂无
  87. <?php endif; ?>
  88. </li>
  89. <li class="list-group-item">
  90. <b>是否审核:</b>
  91. <?php if($user_info['is_register'] == 0): ?>
  92. <font style="color:red;">未审核</font>
  93. <?php else: ?>
  94. <font style="color:green;">已审核</font>
  95. <?php endif; ?>
  96. </li>
  97. </ul>
  98. </div>
  99. <div class="table-responsive" style="padding-top: 10px;">
  100. <table class="table table-striped" border='1'>
  101. <thead>
  102. <tr>
  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. <th style="text-align: center;">操作</th>
  111. </tr>
  112. </thead>
  113. <tbody style="text-align: center;">
  114. <?php if(is_array($user_order_info) || $user_order_info instanceof \think\Collection || $user_order_info instanceof \think\Paginator): $i = 0; $__LIST__ = $user_order_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
  115. <tr>
  116. <td><b><?php echo $vo['order_id']; ?></b></td>
  117. <td><?php echo $vo['linkman']; ?></td>
  118. <td><?php echo $vo['linktel']; ?></td>
  119. <td>
  120. <?php if($vo['repuser'] == null): ?>
  121. 暂无
  122. <?php else: ?>
  123. <?php echo $vo['repuser']; endif; ?>
  124. </td>
  125. <td><?php echo $vo['title']; ?></td>
  126. <td><?php echo $vo['create_time']; ?></td>
  127. <td>
  128. <?php if($vo['status'] == '0'): ?>
  129. <font color="green">接单中</font>
  130. <?php elseif($vo['status'] == '1'): ?>
  131. <font color="green">处理中</font>
  132. <?php else: ?>
  133. <font color="red">完成</font>
  134. <?php endif; ?>
  135. </td>
  136. <td>
  137. <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-info buttoninfo">查看</button>
  138. <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
  139. </td>
  140. </tr>
  141. <?php endforeach; endif; else: echo "" ;endif; ?>
  142. </tbody>
  143. <thead>
  144. <tr>
  145. <th style="text-align: center;">订单号</th>
  146. <th style="text-align: center;">报修人</th>
  147. <th style="text-align: center;">联系电话</th>
  148. <th style="text-align: center;">维修者</th>
  149. <th style="text-align: center;">订单问题</th>
  150. <th style="text-align: center;">创建时间</th>
  151. <th style="text-align: center;">订单状态</th>
  152. <th style="text-align: center;">操作</th>
  153. </tr>
  154. </thead>
  155. </table>
  156. </div>
  157. <!-- 分页的渲染 -->
  158. <div style="text-align:center;">
  159. <?php echo $user_order_info->render(); ?>
  160. </div>
  161. <script src="/static/login/js/jquery.min.js"></script>
  162. <script>
  163. $(function () {
  164. $('.buttoninfo').click(function () {
  165. //获取到当前订单
  166. var orderid = $(this).attr('data-orderid');
  167. window.location.href = "/admin/index/order_info?orderid=" + orderid;
  168. });
  169. //编辑信息
  170. $('.buttoneidt').click(function () {
  171. //获取到当前订单
  172. let orderid = $(this).attr('data-orderid');
  173. window.location.href = "/admin/index/edit_user_info?orderid=" + orderid;
  174. });
  175. });
  176. </script>