暫無描述

teamindex.blade.php 3.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. @extends('admin/master')
  2. @section('content')
  3. <body>
  4. @if(session('info'))
  5. <div class="Huialert Huialert-info" onclick="$(this).remove()" id="info">
  6. {{session('info')}}
  7. </div>
  8. @endif
  9. <div class="page-container">
  10. <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> <a class="btn btn-primary radius" onclick="admin_add('新增')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 新增团队</a></span> </div>
  11. <div class="mt-20">
  12. <table class="table table-border table-bordered table-bg table-hover table-sort">
  13. <thead>
  14. <tr class="text-c">
  15. {{--<th width="25"><input type="checkbox" name="" value=""></th>--}}
  16. <th width="25%">团队Id</th>
  17. <th width="25%">团队名称</th>
  18. <th width="25%">团队类型</th>
  19. <th width="25%">创建时间</th>
  20. <th width="25%">操作</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. @if($team)
  25. @foreach($team as $a)
  26. <tr class="text-c">
  27. {{--<td><input name="" type="checkbox" value=""></td>--}}
  28. <td class="text-c">{{$a['id']}}</td>
  29. <td class="text-c">{{$a['name']}}</td>
  30. <td class="text-c">{{$a['type']}}</td>
  31. <td class="text-c">{{$a['create_time']}}</td>
  32. <td class="f-14 product-brand-manage"><a style="text-decoration:none" onClick='admin_edit("编辑团队","{{$a['id']}}")' href="javascript:;" title="编辑团队"><span class="btn btn-primary radius">编辑</span></a> <!--a style="text-decoration:none" class="ml-5" onClick="admin_del(this, '{{$a['id']}}')" href="javascript:;" title="删除"><span class="btn btn-danger radius">删除</span></a--></td>
  33. </tr>
  34. @endforeach
  35. @endif
  36. </tbody>
  37. </table>
  38. </div>
  39. </div>
  40. <!--_footer 作为公共模版分离出去-->
  41. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  42. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  43. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  44. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  45. <!--/_footer 作为公共模版分离出去-->
  46. <!--/_footer 作为公共模版分离出去-->
  47. <script type="text/javascript">
  48. $(function(){
  49. setTimeout("$('#info').hide()",3000);
  50. });
  51. /*管理员-添加*/
  52. function admin_add(title){
  53. location.href = '/admin/admin/teamcreate';
  54. }
  55. /*管理员-编辑*/
  56. function admin_edit(title,id){
  57. location.href = "/admin/admin/teamedit/"+id;
  58. }
  59. /*管理员-删除*/
  60. /*
  61. function admin_del(obj,id){
  62. layer.confirm('确认要删除吗?',function(index){
  63. $.ajax({
  64. type: 'GET',
  65. url: '/admin/admin/delteam/'+id,
  66. dataType: 'json',
  67. success: function(data){
  68. if(data == 1){
  69. $(obj).parents("tr").remove();
  70. layer.msg('已删除!',{icon:1,time:1000});
  71. }
  72. }
  73. });
  74. });
  75. }
  76. */
  77. </script>
  78. </body>
  79. @endsection