manage.html 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <style>
  2. .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus{
  3. border: none;
  4. border-bottom: 1px solid #3498db;
  5. }
  6. .nav > li > a{
  7. color: #555;
  8. }
  9. .nav-tabs {
  10. border-bottom: 1px solid #f5f5f5;
  11. }
  12. .table > thead > tr > th {
  13. padding: 12px 8px 10px 8px;
  14. }
  15. .width-50 {
  16. width: 50px;
  17. }
  18. .width-100 {
  19. width: 100px;
  20. }
  21. .width-120 {
  22. width: 120px;
  23. }
  24. @media (max-width: 768px) {
  25. .panel-body {
  26. padding: 0;
  27. }
  28. }
  29. </style>
  30. <div class="container">
  31. <div id="content-container" class="container">
  32. <div class="row">
  33. <div class="col-md-3">
  34. {include file="common/sidenav" /}
  35. </div>
  36. <div class="col-md-9">
  37. <div class="panel panel-default">
  38. <div class="panel-body">
  39. <h2 class="page-header">
  40. 工单管理
  41. </h2>
  42. <ul class="nav nav-tabs">
  43. <li class="{$type == 'all' ? 'active':''}">
  44. <a href="?type=all">全部</a>
  45. </li>
  46. <li class="{$type == 'noreply' ? 'active':''}">
  47. <a href="?type=noreply">待处理</a>
  48. </li>
  49. <li class="{$type == 'replied' ? 'active':''}">
  50. <a href="?type=replied">待反馈</a>
  51. </li>
  52. <li class="{$type == 'closed' ? 'active':''}">
  53. <a href="?type=closed">已结单</a>
  54. </li>
  55. </ul>
  56. <table class="table table-striped">
  57. <thead>
  58. <tr>
  59. <th class="text-center width-50">编号</th>
  60. <th>标题</th>
  61. <th class="text-center hidden-xs">提交用户</th>
  62. <th class="text-center hidden-xs width-100">相关产品/服务</th>
  63. <th class="text-center hidden-xs width-120">提交时间</th>
  64. <th class="text-center hidden-xs width-100">状态</th>
  65. <th class="text-center width-100">操作</th>
  66. </tr>
  67. </thead>
  68. {volist name="orders" id="order" key="key" empty="<tr><td class='text-center' colspan='7'>暂时没有数据...</td></tr>"}
  69. <tr>
  70. <td class="text-center">{$order.id}</td>
  71. <td><span class="visible-xs-inline">{$order.status.h5}</span>{$order.title|mb_substr=0,17}{$order.title|mb_strlen > 17 ? '...':''}</td>
  72. <td class="text-center hidden-xs">{$order.user.nickname}</td>
  73. <td class="text-center hidden-xs">{$order.category.name}</td>
  74. <td class="text-center hidden-xs">{$order.createtime_text}</td>
  75. <td class="text-center hidden-xs">{$order.status.pc}</td>
  76. <td class="text-center">
  77. <a href="{:url('index/workorder/detail', ['id' => $order.id])}" class="btn btn-success btn-xs" data-toggle="tooltip" title="查看">查看详情</a>
  78. </td>
  79. </tr>
  80. {/volist}
  81. </table>
  82. <div class="pager">{$orders->render()}</div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>