|
|
@@ -0,0 +1,95 @@
|
|
|
+@extends('admin.layouts')
|
|
|
+
|
|
|
+@section('css')
|
|
|
+ <link href="/assets/global/plugins/datatables/datatables.min.css" rel="stylesheet" type="text/css" />
|
|
|
+ <link href="/assets/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css" rel="stylesheet" type="text/css" />
|
|
|
+@endsection
|
|
|
+@section('title', '控制面板')
|
|
|
+@section('content')
|
|
|
+ <!-- BEGIN CONTENT BODY -->
|
|
|
+ <div class="page-content" style="padding-top:0;">
|
|
|
+ <!-- BEGIN PAGE BASE CONTENT -->
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-md-12">
|
|
|
+ <!-- BEGIN EXAMPLE TABLE PORTLET-->
|
|
|
+ <div class="portlet light bordered">
|
|
|
+ <div class="portlet-title">
|
|
|
+ <div class="caption font-dark">
|
|
|
+ <i class="icon-credit-card font-dark"></i>
|
|
|
+ <span class="caption-subject bold uppercase"> 用户封禁记录 </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="portlet-body">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-md-2 col-sm-2">
|
|
|
+ <input type="text" class="col-md-4 form-control input-sm" name="username" value="{{Request::get('username')}}" id="username" placeholder="用户名" onkeydown="if(event.keyCode==13){do_search();}">
|
|
|
+ </div>
|
|
|
+ <div class="col-md-2 col-sm-2">
|
|
|
+ <button type="button" class="btn btn-sm blue" onclick="doSearch();">查询</button>
|
|
|
+ <button type="button" class="btn btn-sm grey" onclick="doReset();">重置</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="table-scrollable">
|
|
|
+ <table class="table table-striped table-bordered table-hover table-checkable order-column">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th> # </th>
|
|
|
+ <th> 用户名 </th>
|
|
|
+ <th> 封禁时长 </th>
|
|
|
+ <th> 描述 </th>
|
|
|
+ <th> 发生时间 </th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ @if($list->isEmpty())
|
|
|
+ <tr>
|
|
|
+ <td colspan="5">暂无数据</td>
|
|
|
+ </tr>
|
|
|
+ @else
|
|
|
+ @foreach($list as $vo)
|
|
|
+ <tr class="odd gradeX">
|
|
|
+ <td> {{$vo->id}} </td>
|
|
|
+ <td> {{empty($vo->user) ? '【用户已删除】' : $vo->user->username}} </td>
|
|
|
+ <td> {{$vo->minutes}}分钟 </td>
|
|
|
+ <td> {{$vo->desc}} </td>
|
|
|
+ <td> {{$vo->created_at}} </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ @endif
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-md-4 col-sm-4">
|
|
|
+ <div class="dataTables_info" role="status" aria-live="polite">共 {{$list->total()}} 条记录</div>
|
|
|
+ </div>
|
|
|
+ <div class="col-md-8 col-sm-8">
|
|
|
+ <div class="dataTables_paginate paging_bootstrap_full_number pull-right">
|
|
|
+ {{ $list->links() }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- END EXAMPLE TABLE PORTLET-->
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- END PAGE BASE CONTENT -->
|
|
|
+ </div>
|
|
|
+ <!-- END CONTENT BODY -->
|
|
|
+@endsection
|
|
|
+@section('script')
|
|
|
+ <script type="text/javascript">
|
|
|
+ // 搜索
|
|
|
+ function doSearch() {
|
|
|
+ var username = $("#username").val();
|
|
|
+
|
|
|
+ window.location.href = '{{url('admin/userBanLogList')}}' + '?username=' + username;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 重置
|
|
|
+ function doReset() {
|
|
|
+ window.location.href = '{{url('admin/userBanLogList')}}';
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+@endsection
|