index.blade.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @extends('admin.public.base')
  2. @section('body_class')
  3. style="margin: 0 auto;width: 96%;padding: 30px 0px;"
  4. @endsection
  5. @section('content')
  6. <div class="page-header">
  7. </div>
  8. <form action="" method="get" class="form-horizontal form-line">
  9. <div class="form-group col col-lg-2 col-md-2" style="margin-right: 2px;">
  10. <select class="form-control" name="notes_type" >
  11. <option value="0" @if (request('notes_type',0) == 0) selected="selected" @endif>操作类型</option>
  12. <option value="1" @if (request('notes_type',0) == 1) selected="selected" @endif>添加</option>
  13. <option value="2" @if (request('notes_type',0) == 2) selected="selected" @endif>修改</option>
  14. <option value="3" @if (request('notes_type',0) == 3) selected="selected" @endif>删除</option>
  15. </select>
  16. </div>
  17. <div class="form-group col col-lg-2 col-md-2" style="margin-right: 2px;">
  18. <select class="form-control" name="admin_uid" >
  19. <option value="">选择人员</option>
  20. @foreach ($adminUsers as $key=>$value)
  21. <option value="{{$value['uid']}}" @if (request('admin_uid',0) == $value['uid']) selected="selected" @endif>{{$value['username']}}</option>
  22. @endforeach
  23. </select>
  24. </div>
  25. <input type="hidden" name="table" value="{{request('table','')}}">
  26. <input type="hidden" name="primary_id" value="{{request('primary_id',0)}}">
  27. <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
  28. </form>
  29. <div class="row">
  30. <div class="col-xs-12">
  31. <div class="table-responsive">
  32. <table class="table table-striped table-bordered table-hover">
  33. <thead>
  34. <tr>
  35. <th>ID</th>
  36. <th>操作类型</th>
  37. <th>操作字段</th>
  38. <th>操作之前</th>
  39. <th>操作结果</th>
  40. <th>操作人员</th>
  41. <th>操作时间</th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. @foreach ($list as $a)
  46. <tr>
  47. <th>{{request('primary_id',0)}}</th>
  48. <td>{{$a['notes_type']}}</td>
  49. <td>【{{$a['table_name']}}】{{$a['column_name']}}</td>
  50. <td>{{$a['before_value']}}</td>
  51. <td>{{$a['after_value']}}</td>
  52. <td>{{$a['admin_name']}}</td>
  53. <td>{{date('Y-m-d H:i:s',$a['update_time'])}}</td>
  54. </tr>
  55. @endforeach
  56. <tr>
  57. <td colspan="20" class="page">{{$list->render()}}</td>
  58. </tr>
  59. <tr>
  60. <td colspan="20">总计 {{$list->total()}} 个统计</td>
  61. </tr>
  62. </tbody>
  63. </table>
  64. </div>
  65. </div>
  66. </div>
  67. @endsection