index.blade.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. @extends('admin.layout')
  2. @section('header')
  3. <style>
  4. .footable-row-detail-value{width:93%;}
  5. .footable-row-detail-value div.wrap{width:92%;word-break:break-all;}
  6. .footable-row-detail-inner{width: 100%;}
  7. </style>
  8. <link href="/base/css/plugins/footable/footable.core.css" rel="stylesheet">
  9. @endsection
  10. @section('content')
  11. <div class="wrapper wrapper-content animated fadeInRight">
  12. <div class="row">
  13. <div class="col-sm-12">
  14. <div class="ibox float-e-margins">
  15. <div class="ibox-title">
  16. <h5>操作列表</h5>
  17. <div class="ibox-tools">
  18. <a class="collapse-link"> <i class="fa fa-chevron-up"></i>
  19. </a>
  20. </div>
  21. </div>
  22. <div class="ibox-content">
  23. <div class="row">
  24. <div class="col-sm-1 m-b-xs">
  25. <label class="font-noraml">类型</label>
  26. <select class="input-sm form-control input-s-sm inline" name="topic" id="topic">
  27. <option value="0">请选择</option>
  28. @foreach($aTopIc as $key => $item)
  29. <option value="{{ $key }}" @if($key==$topic) selected="selected" @endif>{{ $item }}</option>
  30. @endforeach
  31. </select>
  32. </div>
  33. <div class="col-sm-1 m-b-xs">
  34. <label class="font-noraml">行数</label>
  35. <select class="input-sm form-control input-s-sm inline" name="region_id" id="sel_region_id">
  36. <option value="0">请选择</option>
  37. @foreach($aLine as $key => $item)
  38. <option value="{{ $key }}" @if($key==$line) selected="selected" @endif>{{ $item }}</option>
  39. @endforeach
  40. </select>
  41. </div>
  42. <div class="col-sm-1 m-b-xs">
  43. <label class="font-noraml">来源</label>
  44. <input type="text" value="{{Request::get('from')}}" placeholder="请输入关键词 " name="from" class="input-sm form-control">
  45. </div>
  46. <div class="col-sm-3 m-b-xs">
  47. <label class="font-noraml">时间范围</label>
  48. <div class="input-daterange input-group" id="datepicker">
  49. <input class="form-control layer-date" placeholder="YYYY-MM-DD hh:mm:ss" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" value="{{$start_time}}" name="start_time">
  50. <span class="input-group-addon">到</span>
  51. <input class="form-control layer-date" placeholder="YYYY-MM-DD hh:mm:ss" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" value="{{$end_time}}" name="end_time">
  52. </div>
  53. </div>
  54. </div>
  55. <div class="row">
  56. <div class="col-sm-5">
  57. <form method="GET" action="" accept-charset="UTF-8">
  58. <div class="input-group">
  59. <input type="text" value="{{Request::get('keyword')}}" placeholder="请输入关键词 " name="keyword" class="input-sm form-control">
  60. <span class="input-group-btn">
  61. <button type="submit" class="btn btn-sm btn-primary">搜索</button>
  62. </span>
  63. </div>
  64. </form>
  65. </div>
  66. </div>
  67. <div class="row">
  68. <div class="col-sm-1 pull-left">
  69. <div class="input-group">
  70. </div>
  71. </div>
  72. </div>
  73. <table class="footable table table-stripped toggle-arrow-tiny table-bordered table-hover dataTable breakpoint">
  74. <thead>
  75. <tr>
  76. <th>时间</th>
  77. <th>IP</th>
  78. <th>METHOD</th>
  79. <th>功能</th>
  80. <th>URL</th>
  81. </tr>
  82. </thead>
  83. <tbody>
  84. @if($data)
  85. <?php $list = $data->getLogs()?>
  86. @foreach($list as $key=>$item)
  87. <?php $contents = $item->getContents();?>
  88. <tr class="@if($key+1 & 1) footable-even @else footable-odd @endif" style="display: table-row;">
  89. <td>{{$item->getTime()}}</td>
  90. <td>{{$item->getSource()}}</td>
  91. <td>{{$contents['method'] or ''}}</td>
  92. <td >{{$contents['module'] or ''}}.{{$contents['class'] or ''}}.{{$contents['action'] or ''}}</td>
  93. <td>{{$contents['url'] or ''}}</td>
  94. </tr>
  95. @endforeach
  96. @endif
  97. </tbody>
  98. </table>
  99. <div class="row">
  100. @if($data)
  101. <div class="col-sm-6">
  102. <div class="dataTables_info" role="alert" aria-live="polite" aria-relevant="all">总 {{$data->getCount()}}条。</div>
  103. </div>
  104. @endif
  105. <div class="col-sm-6">
  106. <div class="dataTables_paginate paging_simple_numbers">
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. @endsection
  116. @section('footer')
  117. <script>
  118. function zankaiAndshouqi(statu,$target){
  119. var $detail = $target.next();
  120. var display = $detail.css('display');
  121. if(statu){
  122. //存在则由总的控制
  123. display = statu=='zankai'?'none':'';
  124. }
  125. if(display != 'none'){
  126. $target.removeClass('footable-detail-show');
  127. $detail.css('display', 'none');
  128. }else{
  129. $target.addClass('footable-detail-show');
  130. $detail.css('display', 'table-row');
  131. }
  132. }
  133. </script>
  134. @endsection