datatable.blade.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. @extends('layouts.admin')
  2. @section('content')
  3. <!--左侧菜单栏-->
  4. @include('admin.left-sidebar')
  5. <!-- 内容 -->
  6. <link rel="stylesheet" type="text/css" href="{{ url('/css/jquery.dataTables.min.css') }}">
  7. <script type="text/javascript" charset="utf8" src="{{ url('/js/jquery.dataTables.min.js') }}"></script>
  8. <div class="content-wrapper">
  9. <!-- Content Header (Page header) -->
  10. <section class="content-header">
  11. <h1>
  12. 表单统计
  13. <small>{{ $table_name }}</small>
  14. </h1>
  15. <ol class="breadcrumb">
  16. <li><a href="{{ url('/')}}"><i class="fa fa-dashboard"></i> 主页</a></li>
  17. <li><a href="#">表单统计</a></li>
  18. </ol>
  19. </section>
  20. <!-- Main content -->
  21. <section class="content">
  22. @if($table_name != '成本审计汇总表')
  23. @include('layouts.search')
  24. @endif
  25. @yield('table')
  26. </section>
  27. <!-- /.content -->
  28. </div>
  29. <!-- /.content-wrapper -->
  30. <script>
  31. $(document).ready(function() {
  32. $('#table').dataTable({
  33. "aLengthMenu" : [ [ 10, 20, 50, -1 ], [ "10", "20", "50", "所有" ] ],
  34. "oLanguage" : {
  35. "sLengthMenu" : "每页显示 _MENU_ 条记录",
  36. "sZeroRecords" : "对不起,没有匹配的数据",
  37. "sInfo" : "第 _START_ - _END_ 条 / 共 _TOTAL_ 条数据",
  38. "sInfoEmpty" : "没有匹配的数据",
  39. "sInfoFiltered" : "(数据表中共 _MAX_ 条记录)",
  40. "sProcessing" : "正在加载中...",
  41. "sSearch" : "全文搜索:",
  42. "oPaginate" : {
  43. "sFirst" : "第一页",
  44. "sPrevious" : " 上一页 ",
  45. "sNext" : " 下一页 ",
  46. "sLast" : " 最后一页 "
  47. }
  48. }
  49. });
  50. });
  51. </script>
  52. @endsection