You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
2.8 KiB
78 lines
2.8 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>爬虫系统后台管理</title>
|
|
<link rel="stylesheet" href="../static/css/base.css">
|
|
{% block css %}
|
|
{# 修改css #}
|
|
{% endblock %}
|
|
<!-- 新 Bootstrap 核心 CSS 文件 -->
|
|
<link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
|
|
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
|
|
|
|
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
|
|
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
|
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="box_l">
|
|
<div class="logo">
|
|
<img src="../static/img/logo.png" alt="" width="100%" height="110px;">
|
|
</div>
|
|
<div class="nav">
|
|
<div class="menu"> <span class="glyphicon glyphicon-th-large"></span> <a href="/admin/index">爬虫作业管理</a></div>
|
|
<div class="menu"><span class="glyphicon glyphicon-cog"></span><a href="/admin/result_news">爬虫数据管理</a></div>
|
|
<div class="menu"><span class="glyphicon glyphicon-tree-conifer"></span><a href="/admin/systeminfo" >爬虫系统监控</a></div>
|
|
<div class="menu"><span class="glyphicon glyphicon-tasks"></span><a href="/admin/systemlog">爬虫系统日志</a></div>
|
|
<div class="menu"><span class="glyphicon glyphicon-cloud-download"></span><a href="/admin/system_backup">爬虫系统备份</a></div>
|
|
</div>
|
|
</div>
|
|
<div class="box_r">
|
|
<div class="header">
|
|
<div class="hbox1">全业务爬虫系统管理后台</div>
|
|
<div class="hbox2">
|
|
<span><span class="glyphicon glyphicon-user"></span> {{session['username']}}</span> |
|
|
<span onclick="logout()">退出</span>
|
|
</div>
|
|
</div>
|
|
<div class="content clear-fix" id="content">
|
|
{% block content %}
|
|
内容
|
|
{% endblock %}
|
|
</div>
|
|
</div>
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|
|
<script>
|
|
function logout(){
|
|
$.get('/admin/logout',function(res){
|
|
|
|
if(res.code==200){
|
|
swal({
|
|
title: '提示',
|
|
text: '注销成功!',
|
|
type: 'success',
|
|
confirmButtonText: '确定'
|
|
|
|
}).then(function(){
|
|
location.href='/admin'
|
|
})
|
|
}
|
|
})
|
|
}
|
|
|
|
$('#sysmonitor').click(function(){
|
|
$.get('/admin/system_monitor',function(res){
|
|
console.log(res);
|
|
$('#content').html("ok");
|
|
})
|
|
|
|
})
|
|
</script> |