12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- @extends('admin/master')
- @section('content')
- <body>
- @if(session('info'))
- <div class="Huialert Huialert-info" onclick="$(this).remove()" id="info">
- {{session('info')}}
- </div>
- @endif
- <div class="page-container">
- <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"></i> 新增团队</a></span> </div>
- <div class="mt-20">
- <table class="table table-border table-bordered table-bg table-hover table-sort">
- <thead>
- <tr class="text-c">
- {{--<th width="25"><input type="checkbox" name="" value=""></th>--}}
- <th width="25%">团队Id</th>
- <th width="25%">团队名称</th>
- <th width="25%">团队类型</th>
- <th width="25%">创建时间</th>
- <th width="25%">操作</th>
- </tr>
- </thead>
- <tbody>
- @if($team)
- @foreach($team as $a)
- <tr class="text-c">
- {{--<td><input name="" type="checkbox" value=""></td>--}}
- <td class="text-c">{{$a['id']}}</td>
- <td class="text-c">{{$a['name']}}</td>
- <td class="text-c">{{$a['type']}}</td>
- <td class="text-c">{{$a['create_time']}}</td>
- <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>
- </tr>
- @endforeach
- @endif
- </tbody>
- </table>
- </div>
- </div>
- <!--_footer 作为公共模版分离出去-->
- <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
- <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
- <!--/_footer 作为公共模版分离出去-->
- <!--/_footer 作为公共模版分离出去-->
- <script type="text/javascript">
- $(function(){
- setTimeout("$('#info').hide()",3000);
- });
- /*管理员-添加*/
- function admin_add(title){
- location.href = '/admin/admin/teamcreate';
- }
- /*管理员-编辑*/
- function admin_edit(title,id){
- location.href = "/admin/admin/teamedit/"+id;
- }
- /*管理员-删除*/
- /*
- function admin_del(obj,id){
- layer.confirm('确认要删除吗?',function(index){
- $.ajax({
- type: 'GET',
- url: '/admin/admin/delteam/'+id,
- dataType: 'json',
- success: function(data){
- if(data == 1){
- $(obj).parents("tr").remove();
- layer.msg('已删除!',{icon:1,time:1000});
- }
- }
- });
- });
- }
- */
- </script>
- </body>
- @endsection
|