check.blade.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. @extends('admin.layout')
  2. @section('content')
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <div class="ibox-title">
  7. <h5>字典管理</h5>
  8. <div class="ibox-tools">
  9. <a class="collapse-link"> <i class="fa fa-chevron-up"></i>
  10. </a>
  11. </div>
  12. </div>
  13. <div class="ibox-content">
  14. <div class="row">
  15. <form method="GET" action="" accept-charset="UTF-8">
  16. <div class="col-sm-4">
  17. <div class="input-group">
  18. <input type="text" value="{{Request::get('keyword')}}" placeholder="请输入关键词" name="keyword"class="input-sm form-control">
  19. <span class="input-group-btn">
  20. <button type="submit" class="btn btn-sm btn-primary">搜索</button>
  21. </span>
  22. </div>
  23. </div>
  24. </form>
  25. @if(role('Base/Dictionary/create'))
  26. <div class="col-sm-3 pull-right">
  27. <a href="{{ U('Base/Dictionary/create')}}" class="btn btn-sm btn-primary pull-right">添加</a>
  28. </div>
  29. @endif
  30. </div>
  31. <table class="table table-striped table-bordered table-hover dataTables-example dataTable dataCheckTable">
  32. <thead>
  33. <tr>
  34. <th><input class="btSelectAll" name="btSelectAll" type="checkbox"></th>
  35. <th class="sorting" data-sort="id"> ID </th>
  36. <th class="sorting" data-sort="dictionary_table_code"> 数据字典表 </th>
  37. <th class="sorting" data-sort="dictionary_code"> 数据字典代码 </th>
  38. <th class="sorting" data-sort="key"> 程序中使用,数据库使用value </th>
  39. <th class="sorting" data-sort="value"> 编码 </th>
  40. <th class="sorting" data-sort="name"> 名称 </th>
  41. <th class="sorting" data-sort="input_code"> 输入码,通常用于保留拼音 </th>
  42. <th width="22%">相关操作</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. @if(isset($list))
  47. @foreach($list as $key => $item)
  48. <tr>
  49. <td><input data-json='{!! json_encode($item) !!}' name="btSelectItem" class="data_key" type="checkbox" value="{{ $item->id or 0 }}" /></td>
  50. <td>{{ $item->id }}</td>
  51. <td>{{ $item->dictionary_table_code }}</td>
  52. <td>{{ $item->dictionary_code }}</td>
  53. <td>{{ $item->key }}</td>
  54. <td>{{ $item->value }}</td>
  55. <td>{{ $item->name }}</td>
  56. <td>{{ $item->input_code }}</td>
  57. <td>
  58. @if(role('Base/Dictionary/view'))
  59. <button onclick="layer.open({type: 2,area: ['80%', '90%'],content: '{{ U('Base/Dictionary/view',['id'=>$item->id])}}'});" class="btn btn-primary ">查看</button>
  60. @endif
  61. </td>
  62. </tr>
  63. @endforeach
  64. @endif
  65. </tbody>
  66. </table>
  67. <div class="row">
  68. <div class="col-sm-6">
  69. <div class="dataTables_info" id="DataTables_Table_0_info"
  70. role="alert" aria-live="polite" aria-relevant="all">每页{{ $list->count() }}条,共{{ $list->lastPage() }}页,总{{ $list->total() }}条。</div>
  71. </div>
  72. <div class="col-sm-6">
  73. <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
  74. {!! $list->setPath('')->appends(Request::all())->render() !!}
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. @include('admin.tools.check_script');
  83. @endsection