extension.blade.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. @extends('admin/site/side_layout')
  2. @section('header_extend')
  3. <style type="text/css">
  4. table.tftable {
  5. font-size: 12px;
  6. color: #333333;
  7. width: 100%;
  8. border-width: 1px;
  9. border-color: #729ea5;
  10. border-collapse: collapse;
  11. }
  12. table.tftable th {
  13. font-size: 12px;
  14. background-color: #acc8cc;
  15. border-width: 1px;
  16. padding: 8px;
  17. border-style: solid;
  18. border-color: #729ea5;
  19. text-align: left;
  20. }
  21. table.tftable tr {
  22. background-color: #ffffff;
  23. }
  24. table.tftable td {
  25. font-size: 12px;
  26. border-width: 1px;
  27. padding: 8px;
  28. border-style: solid;
  29. border-color: #729ea5;
  30. }
  31. .fenish {
  32. background: #0d8ddb;
  33. color: #fff;
  34. }
  35. #tfhover tbody tr td:nth-child(2) {
  36. position: relative;
  37. padding-left: 35px;
  38. }
  39. </style>
  40. @endsection
  41. @section('right')
  42. <table id="tfhover" class="tftable" border="1">
  43. <thead>
  44. <tr>
  45. <th colspan="19" style="text-align: center">
  46. 项目逾期
  47. </th>
  48. </tr>
  49. <tr>
  50. <th>阶段【预计时间】</th>
  51. <th>客户原因</th>
  52. <th>采编原因</th>
  53. <th>策划师原因</th>
  54. <th>设计原因</th>
  55. <th>项目经理</th>
  56. <th>其他原因</th>
  57. </tr>
  58. </thead>
  59. <tbody>
  60. @foreach($stageList as $value)
  61. <tr>
  62. @if($value->expected_date)
  63. <td>{{$value->title}}【{{$value->expected_date}}】</td>
  64. @else
  65. <td>{{$value->title}}</td>
  66. @endif
  67. <td @if($value->client_cause ==1)class="fenish"@endif></td>
  68. <td @if($value->collection_cause ==1)class="fenish"@endif></td>
  69. <td @if($value->plan_cause ==1)class="fenish"@endif></td>
  70. <td @if($value->design_cause ==1)class="fenish"@endif></td>
  71. <td @if($value->project_progress_cause ==1)class="fenish"@endif></td>
  72. <td @if($value->memo_cause ==1)class="fenish"@endif></td>
  73. </tr>
  74. @endforeach
  75. </tbody>
  76. </table>
  77. @endsection
  78. @section('footer')
  79. <script>
  80. window.onload = function () {
  81. var tfrow = document.getElementById('tfhover').rows.length;
  82. var tbRow = [];
  83. for (var i = 1; i < tfrow; i++) {
  84. tbRow[i] = document.getElementById('tfhover').rows[i];
  85. tbRow[i].onmouseover = function () {
  86. this.style.backgroundColor = '#f3f8aa';
  87. };
  88. tbRow[i].onmouseout = function () {
  89. this.style.backgroundColor = '#ffffff';
  90. };
  91. }
  92. };
  93. $('#tfhover tbody tr td:first-child').unbind('click');
  94. </script>
  95. @endsection