Repository navigation
Expand file tree
/
Copy pathuserBanLogList.blade.php
More file actions
97 lines (95 loc) · 4.61 KB
/
Copy pathuserBanLogList.blade.php
File metadata and controls
97 lines (95 loc) · 4.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
@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" />
<style type="text/css">
input,select {
margin-bottom: 5px;
}
</style>
@endsection
@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">
<span class="caption-subject bold uppercase"> 用户封禁记录 </span>
</div>
</div>
<div class="portlet-body">
<div class="row">
<div class="col-md-3 col-sm-4 col-xs-12">
<input type="text" class="col-md-4 form-control" name="username" value="{{Request::get('username')}}" id="username" placeholder="用户名" onkeydown="if(event.keyCode==13){do_search();}">
</div>
<div class="col-md-3 col-sm-4 col-xs-12">
<button type="button" class="btn blue" onclick="doSearch();">查询</button>
<button type="button" class="btn grey" onclick="doReset();">重置</button>
</div>
</div>
<div class="table-scrollable table-scrollable-borderless">
<table class="table table-hover table-light">
<thead>
<tr>
<th> # </th>
<th> 用户名 </th>
<th> 封禁时长 </th>
<th> 描述 </th>
<th> 发生时间 </th>
</tr>
</thead>
<tbody>
@if($list->isEmpty())
<tr>
<td colspan="5" style="text-align: center;">暂无数据</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