mirror of
https://github.com/netcccyun/dnsmgr.git
synced 2026-02-24 16:57:22 +08:00
76 lines
3.0 KiB
HTML
Executable File
76 lines
3.0 KiB
HTML
Executable File
{extend name="common/layout" /}
|
|
{block name="title"}操作日志{/block}
|
|
{block name="main"}
|
|
<style>
|
|
#orderItem .orderTitle{word-break:keep-all;}
|
|
#orderItem .orderContent{word-break:break-all;}
|
|
.fixed-table-toolbar,.fixed-table-pagination{padding: 15px;}
|
|
</style>
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading font-bold">
|
|
<h3 class="panel-title">操作日志</h3>
|
|
</div>
|
|
<form class="form-inline" id="searchToolbar" method="GET" onsubmit="return searchSubmit()">
|
|
<div class="form-group">
|
|
{if request()->user['level'] eq 2}
|
|
<input class="form-control" name="uid" placeholder="UID" type="text">
|
|
{/if}
|
|
<input class="form-control" name="domain" placeholder="域名" type="text">
|
|
<input class="form-control" name="kw" placeholder="操作类型/操作详情" type="text">
|
|
</div>
|
|
<button class="btn btn-primary" type="submit"><i class="fa fa-search"></i> 搜索</button>
|
|
<a class="btn btn-default" href="javascript:searchClear()" title="刷新日志列表"><i class="fa fa-refresh"></i> 刷新</a>
|
|
</form>
|
|
<table id="listTable">
|
|
</table>
|
|
</div>
|
|
{/block}
|
|
{block name="script"}
|
|
<script src="{$cdnpublic}bootstrap-table/1.21.4/bootstrap-table.min.js"></script>
|
|
<script src="{$cdnpublic}bootstrap-table/1.21.4/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
|
|
<script src="/static/js/custom.js"></script>
|
|
<script>
|
|
$(document).ready(function () {
|
|
updateToolbar();
|
|
const defaultPageSize = 15;
|
|
const pageNumber = typeof window.$_GET['pageNumber'] != 'undefined' ? parseInt(window.$_GET['pageNumber']) : 1;
|
|
const pageSize = typeof window.$_GET['pageSize'] != 'undefined' ? parseInt(window.$_GET['pageSize']) : defaultPageSize;
|
|
|
|
$("#listTable").bootstrapTable({
|
|
url: '/log/data',
|
|
pageNumber: pageNumber,
|
|
pageSize: pageSize,
|
|
classes: 'table table-striped table-hover table-bordered',
|
|
columns: [
|
|
{
|
|
field: 'id',
|
|
title: 'ID'
|
|
},
|
|
{
|
|
field: 'uid',
|
|
title: 'UID',
|
|
formatter: function (value, row, index) {
|
|
return value > 0 ? '<a href="/user?kw=' + value + '" target="_blank">' + value + '</a>' : '管理员';
|
|
}
|
|
},
|
|
{
|
|
field: 'domain',
|
|
title: '域名'
|
|
},
|
|
{
|
|
field: 'action',
|
|
title: '操作类型'
|
|
},
|
|
{
|
|
field: 'data',
|
|
title: '操作详情'
|
|
},
|
|
{
|
|
field: 'addtime',
|
|
title: '时间'
|
|
}
|
|
],
|
|
})
|
|
})
|
|
</script>
|
|
{/block} |