1 Star 0 Fork 0

Marko/日志视图

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.php 4.48 KB
一键复制 编辑 原始数据 按行查看 历史
Marko 提交于 2020-11-02 10:35 . 新增Mysql数据库日志
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>日志视图</title>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="tag"><a href='https://gitee.com/MrMarko/log_view'><img src='https://gitee.com/MrMarko/log_view/widgets/widget_1.svg' alt='Fork me on Gitee'></img></a></div>
<div style="height:30px;"></div>
<div class="layui-fluid">
<div class="layui-row">
<div class="layui-col-md3 layui-col-md-offset4">
<form class="layui-form" action="" method="get">
<div class="layui-form-item">
<label class="layui-form-label"><i class="layui-icon layui-icon-search"><input type="reset" value="" style="display:none"></i></label>
<div class="layui-input-block">
<input type="text" name="search" value='<?=@$_GET['search']?>' placeholder="请输入搜索内容" autocomplete="off" class="layui-input">
</div>
</div>
<input type="hidden" name="file" value='<?=@$_GET['file']?>'>
<input type="hidden" name="type" value='<?=@$_GET['type']?>'>
</form>
</div>
</div>
</div>
<div class="layui-fluid">
<div class="layui-row layui-col-space30">
<div class="layui-col-md2">
<div class="layui-card">
<div class="layui-card-header">类型</div>
<div class="layui-card-body">
<fieldset class="layui-elem-field">
<legend>工具</legend>
<div class="layui-field-box">
<div class="layui-row" style="text-align: center">
<div class="layui-col-md12" style="margin-bottom: 10px">
<label>刷新秒数</label>
</div>
<div class="layui-col-md12">
<div class="layui-input-inline">
<input type="number" id="retime_input" value="5" min="0" class="layui-input" style="text-align: center">
</div>
</div>
<div class="layui-col-md12" style="margin-top:20px">
<button class="layui-btn layui-btn-sm" onclick="refresh(this)">
<i class="layui-icon layui-icon-refresh-3 layui-anim" data-anim="layui-anim-rotate"></i>持续刷新
</button>
</div>
</div>
</div>
</fieldset>
<!-- 侧边导航 -->
<div class="layui-collapse" lay-accordion id="left_box">
</div>
</div>
</div>
</div>
<div class="layui-col-md10">
<div class="layui-row grid-demo grid-demo-bg1">
<!-- 数据表格 -->
<table id="log" lay-filter="test"></table>
</div>
</div>
</div>
<script src="./node_modules/layui-src/src/layui.js"></script>
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="./node_modules/jquery.json-viewer/json-viewer/jquery.json-viewer.js"></script>
<!-- <script src="./node_modules/js-search/dist/umd/js-search.js"></script>-->
<script src="js/main.js"></script>
<!-- 类型模板 -->
<script type="text/html" id="statusTel">
{{# if(d.status == '成功'){ }}
<span class="layui-badge layui-bg-green">{{d.status}}</span>
{{# }else if(d.status == '信息'){ }}
<span class="layui-badge layui-bg-blue">{{d.status}}</span>
{{# }else if(d.status == '警告'){ }}
<span class="layui-badge layui-bg-orange">{{d.status}}</span>
{{# }else if(d.status == '错误'){ }}
<span class="layui-badge">{{d.status}}</span>
{{# } else { }}
暂无相应类型
{{# } }}
</script>
<!-- 工具箱模板-->
<script type="text/html" id="barDemo">
<a class="layui-btn" lay-event="detail">详情</a>
<!-- <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>-->
<!-- <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>-->
</script>
</div>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/MrMarko/log_view.git
git@gitee.com:MrMarko/log_view.git
MrMarko
log_view
日志视图
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385