2019-07-21 22:08:04 +08:00
|
|
|
|
{% load staticfiles %}
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="zh-cn">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
2020-05-02 18:16:57 +08:00
|
|
|
|
<title>{% block title %}{% endblock %} - 后台管理 - 觅道文档MrDoc</title>
|
2019-12-01 20:44:16 +08:00
|
|
|
|
<link rel="icon" href="{% static 'favicon_16.png' %}"/>
|
2020-03-07 09:30:11 +08:00
|
|
|
|
<link href="{% static 'layui/css/layui.css' %}?version={{mrdoc_version}}" rel="stylesheet">
|
2019-07-23 10:57:42 +08:00
|
|
|
|
<style>
|
2020-04-06 17:36:04 +08:00
|
|
|
|
.layui-btn a{
|
|
|
|
|
color:white;
|
|
|
|
|
}
|
|
|
|
|
/* 左侧菜单栏悬浮样式 */
|
|
|
|
|
.layui-nav-tree .layui-nav-child dd.layui-this, .layui-nav-tree .layui-nav-child dd.layui-this a, .layui-nav-tree .layui-this, .layui-nav-tree .layui-this>a, .layui-nav-tree .layui-this>a:hover{
|
|
|
|
|
background-color: #1E9FFF !important;
|
|
|
|
|
}
|
|
|
|
|
.layui-nav-tree .layui-nav-bar{
|
|
|
|
|
background-color: #1E9FFF !important;
|
|
|
|
|
}
|
|
|
|
|
/* 顶部菜单栏悬浮样式 */
|
|
|
|
|
.layui-nav .layui-this:after, .layui-nav-bar, .layui-nav-tree .layui-nav-itemed:after{
|
|
|
|
|
background-color: #1E9FFF !important;
|
|
|
|
|
}
|
|
|
|
|
/* 管理文档文档状态条件筛选 管理图片图片分组筛选 */
|
|
|
|
|
.doc_status_condition > a.current{
|
|
|
|
|
color: #000!important;
|
|
|
|
|
}
|
|
|
|
|
/* layui分页组件样式 */
|
|
|
|
|
.layui-laypage .layui-laypage-curr .layui-laypage-em{
|
|
|
|
|
background-color: #1E9FFF !important;
|
|
|
|
|
}
|
|
|
|
|
/* layui引用文本样式 */
|
|
|
|
|
.layui-elem-quote{
|
|
|
|
|
border-left: 5px solid #1E9FFF !important;
|
|
|
|
|
}
|
|
|
|
|
/* 设置输入框的高度 和layui-btn-sm一致 */
|
|
|
|
|
.layui-input{
|
|
|
|
|
height: 30px !important;
|
|
|
|
|
}
|
|
|
|
|
/* layui开关按钮 */
|
|
|
|
|
.layui-form-onswitch{
|
|
|
|
|
border-color: #1E9FFF;
|
|
|
|
|
background-color: #1E9FFF;
|
|
|
|
|
}
|
|
|
|
|
/* layui单选按钮 */
|
|
|
|
|
.layui-form-radio>i:hover, .layui-form-radioed>i{
|
|
|
|
|
color: #1E9FFF;
|
2019-07-23 10:57:42 +08:00
|
|
|
|
}
|
|
|
|
|
</style>
|
2019-07-21 22:08:04 +08:00
|
|
|
|
</head>
|
|
|
|
|
<body class="layui-layout-body">
|
|
|
|
|
<div class="layui-layout layui-layout-admin">
|
|
|
|
|
<div class="layui-header">
|
2019-07-23 10:57:42 +08:00
|
|
|
|
<div class="layui-logo">
|
2020-04-06 17:36:04 +08:00
|
|
|
|
<a class="logo" href="{% url 'pro_list' %}">
|
2019-07-25 15:25:27 +08:00
|
|
|
|
<h1 style="color: white;">
|
|
|
|
|
<strong>MrDoc</strong>
|
2019-11-03 20:36:34 +08:00
|
|
|
|
<span style="font-size: 14px;" class="layui-badge-rim">后台管理</span>
|
2019-07-25 15:25:27 +08:00
|
|
|
|
</h1>
|
2019-07-23 10:57:42 +08:00
|
|
|
|
</a>
|
|
|
|
|
</div>
|
2019-07-21 22:08:04 +08:00
|
|
|
|
<ul class="layui-nav layui-layout-right">
|
|
|
|
|
<li class="layui-nav-item">
|
2019-07-25 15:25:27 +08:00
|
|
|
|
<a href="javascript:void(0);">
|
2019-07-21 22:08:04 +08:00
|
|
|
|
<i class="layui-icon layui-icon-username"></i> {{request.user.username}}
|
|
|
|
|
</a>
|
|
|
|
|
<dl class="layui-nav-child">
|
|
|
|
|
<!-- <dd><a href="">基本资料</a></dd> -->
|
2019-12-08 18:59:49 +08:00
|
|
|
|
<dd><a href="{% url 'manage_project' %}">个人中心</a></dd>
|
2019-07-21 22:08:04 +08:00
|
|
|
|
<dd><a href="{% url 'logout' %}">退出登录</a></dd>
|
|
|
|
|
</dl>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-side layui-bg-black">
|
|
|
|
|
<div class="layui-side-scroll">
|
|
|
|
|
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
|
|
|
|
|
<ul class="layui-nav layui-nav-tree" lay-filter="test">
|
|
|
|
|
<li class="layui-nav-item layui-nav-itemed">
|
2019-07-25 15:25:27 +08:00
|
|
|
|
<a href="{% url 'project_manage' %}"><i class="layui-icon layui-icon-list"></i> 文集管理</a>
|
2019-07-21 22:08:04 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li class="layui-nav-item layui-nav-itemed">
|
2019-07-25 15:25:27 +08:00
|
|
|
|
<a href="{% url 'doc_manage' %}"><i class="layui-icon layui-icon-file-b"></i> 文档管理</a>
|
2019-07-21 22:08:04 +08:00
|
|
|
|
</li>
|
2019-07-23 10:57:42 +08:00
|
|
|
|
<li class="layui-nav-item layui-nav-itemed">
|
2019-07-25 15:25:27 +08:00
|
|
|
|
<a href="{% url 'doctemp_manage' %}"><i class="layui-icon layui-icon-template"></i> 文档模板管理</a>
|
2019-07-23 10:57:42 +08:00
|
|
|
|
</li>
|
|
|
|
|
{% if request.user.is_superuser %}
|
|
|
|
|
<li class="layui-nav-item layui-nav-itemed">
|
|
|
|
|
<a href="{% url 'user_manage' %}"><i class="layui-icon layui-icon-user"></i> 用户管理</a>
|
|
|
|
|
</li>
|
2020-02-22 14:22:44 +08:00
|
|
|
|
<li class="layui-nav-item layui-nav-itemed">
|
|
|
|
|
<a href="{% url 'register_code_manage' %}"><i class="layui-icon layui-icon-engine"></i> 注册码管理</a>
|
2019-12-01 20:44:16 +08:00
|
|
|
|
</li>
|
2020-03-07 09:30:11 +08:00
|
|
|
|
<li class="layui-nav-item layui-nav-itemed">
|
|
|
|
|
<a href="{% url 'sys_setting' %}"><i class="layui-icon layui-icon-set-sm"></i> 站点设置</a>
|
|
|
|
|
</li>
|
2020-06-05 21:30:04 +08:00
|
|
|
|
<li class="layui-nav-item layui-nav-itemed">
|
|
|
|
|
<a href="http://mrdoc.zmister.com/project-7/" target="_blank"><i class="layui-icon layui-icon-tips"></i> 配置手册</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="layui-nav-item layui-nav-itemed">
|
|
|
|
|
<a href="http://mrdoc.zmister.com/project-54/" target="_blank"><i class="layui-icon layui-icon-help"></i> 使用手册</a>
|
|
|
|
|
</li>
|
2019-07-23 10:57:42 +08:00
|
|
|
|
{% endif %}
|
2019-07-21 22:08:04 +08:00
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="layui-body">
|
|
|
|
|
<!-- 内容主体区域 -->
|
2020-02-27 20:58:37 +08:00
|
|
|
|
<div style="padding: 15px;">
|
|
|
|
|
{% if debug %}
|
|
|
|
|
<blockquote class="layui-elem-quote">当前站点处于Debug调试模式</blockquote>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
|
</div>
|
2019-07-21 22:08:04 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
2020-06-28 21:11:05 +08:00
|
|
|
|
<div class="layui-footer" style="text-align:center;font-size: 12px;">
|
2019-07-21 22:08:04 +08:00
|
|
|
|
<!-- 底部固定区域 -->
|
2020-02-24 21:05:08 +08:00
|
|
|
|
© <a href="https://gitee.com/zmister/MrDoc" target="_blank">MrDoc 2019-2020</a> -
|
2020-06-05 21:30:04 +08:00
|
|
|
|
当前版本:<a href="https://gitee.com/zmister/MrDoc/tree/{{mrdoc_version}}/" target="_blank">{{mrdoc_version}}</a> -
|
|
|
|
|
<a href="https://github.com/zmister2016/MrDoc" target="_blank">GitHub</a> -
|
2020-06-28 21:11:05 +08:00
|
|
|
|
<a href="https://gitee.com/zmister/MrDoc" target="_blank">码云</a> -
|
|
|
|
|
<a class="register-link" id="dashang" href="javascript:void(0);">打赏作者</a>
|
2019-07-21 22:08:04 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2020-03-07 09:30:11 +08:00
|
|
|
|
<script src="{% static 'jquery/3.1.1/jquery.min.js' %}"></script>
|
2019-07-21 22:08:04 +08:00
|
|
|
|
<script src="{% static 'layui/layui.all.js' %}"></script>
|
2020-03-17 19:30:52 +08:00
|
|
|
|
<script>
|
|
|
|
|
var form = layui.form;
|
|
|
|
|
$.ajaxSetup({
|
|
|
|
|
data: {csrfmiddlewaretoken: '{{ csrf_token }}' },
|
|
|
|
|
});
|
2020-06-28 21:11:05 +08:00
|
|
|
|
// 显示打赏图片
|
|
|
|
|
$("#dashang").click(function(r){
|
|
|
|
|
var layer = layui.layer;
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 1,
|
|
|
|
|
title: false,
|
|
|
|
|
closeBtn: 0,
|
|
|
|
|
area: ['400px','400px'],
|
|
|
|
|
shadeClose: true,
|
|
|
|
|
content: $('#dashang_img')
|
|
|
|
|
});
|
|
|
|
|
})
|
2020-03-17 19:30:52 +08:00
|
|
|
|
</script>
|
2019-07-21 22:08:04 +08:00
|
|
|
|
{% block custom_script %}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
</body>
|
2020-06-28 21:11:05 +08:00
|
|
|
|
<!-- 打赏选项卡模板 -->
|
|
|
|
|
<div id="dashang_img" style="display: none;">
|
|
|
|
|
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
|
|
|
|
|
<ul class="layui-tab-title">
|
|
|
|
|
<li class="layui-this">微信</li>
|
|
|
|
|
<li>支付宝</li>
|
|
|
|
|
<li>QQ支付</li>
|
|
|
|
|
<li>PayPal</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="layui-tab-content" style="height: 100px;">
|
|
|
|
|
<div class="layui-tab-item layui-show" align='center'>
|
|
|
|
|
<img src="{% static 'dashang/dashang_wx.jpg' %}" style="width: 300px;height: auto;" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-tab-item" align='center'>
|
|
|
|
|
<img src="{% static 'dashang/dashang_alipay.jpg' %}" style="width: 300px;height: auto;" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-tab-item" align='center'>
|
|
|
|
|
<img src="{% static 'dashang/dashang_qq.png' %}" style="width: 300px;height: auto;" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-tab-item" align='center'>
|
|
|
|
|
<a href="https://paypal.me/zmister" target="_blank">
|
|
|
|
|
<img src="{% static 'dashang/dashang_paypal.png' %}" style="width: 280px;height: auto;" />
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2019-07-21 22:08:04 +08:00
|
|
|
|
</html>
|