lylme_spage/admin/head.php

128 lines
6.0 KiB
PHP
Raw Normal View History

2022-02-19 23:38:30 +08:00
<?php
include_once("../include/common.php");
2024-01-09 11:08:01 +08:00
if(isset($islogin) == 1) {
} else {
exit("<script language='javascript'>window.location.href='./login.php';</script>");
}
2022-02-19 23:38:30 +08:00
?>
<!DOCTYPE html>
2022-05-02 21:14:40 +08:00
<html lang="zh-CN">
2022-02-19 23:38:30 +08:00
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
2024-01-09 11:08:01 +08:00
<title><?php echo $title . ' - ' . $conf['title'];?></title>
2022-02-19 23:38:30 +08:00
<link rel="icon" href="/assets/img/logo.png" type="image/ico">
<meta name="author" content="yinqi">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/materialdesignicons.min.css" rel="stylesheet">
<link href="css/style.min.css" rel="stylesheet">
</head>
<div class="lyear-layout-web">
<div class="lyear-layout-container">
<!--左侧导航-->
2022-03-05 01:07:02 +08:00
<aside class="lyear-layout-sidebar">
2022-02-19 23:38:30 +08:00
<!-- logo -->
<div id="logo" class="sidebar-header">
2022-03-05 14:01:36 +08:00
<a href="/"><img src="/assets/img/logo-sidebar.png" alt="LyLme" title="返回首页" /></a>
2022-02-19 23:38:30 +08:00
</div>
<div class="lyear-layout-sidebar-scroll">
<nav class="sidebar-main">
<ul class="nav nav-drawer">
2022-03-05 14:01:36 +08:00
<li class="nav-item active"> <a href="./"><i class="mdi mdi-home-map-marker"></i>后台首页</a> </li>
2022-02-19 23:38:30 +08:00
<li class="nav-item nav-item-has-subnav">
<a href="javascript:void(0)"><i class="mdi mdi-palette"></i>网站配置</a>
<ul class="nav nav-subnav">
2022-03-05 01:56:44 +08:00
<li> <a href="./set.php">网站基本设置</a> </li>
2024-01-09 11:08:01 +08:00
<li> <a href="./theme.php">网站主题设置</a> </li>
<li> <a href="./about.php">关于页面设置</a> </li>
2022-03-05 01:56:44 +08:00
<li> <a href="./user.php">修改账号密码</a> </li>
2022-04-30 23:17:30 +08:00
2022-02-19 23:38:30 +08:00
</ul>
</li>
2022-04-03 22:58:19 +08:00
<li class="nav-item active"> <a href="./apply.php"><i class="mdi mdi-link"></i>收录管理 </a>
<?php $applyrows = $DB->num_rows($DB->query("SELECT * FROM `lylme_apply` WHERE `apply_status` = 0"));
2024-01-09 11:08:01 +08:00
if($applyrows > 0) {
echo'<style> .applyrow{width: 18px;height: 18px;top: 15px;right: 24px;font-size: 10px;font-weight: bold;color: #fff;background-color: red;border-radius: 100%;text-align: center;vertical-align: middle;position: absolute;line-height: 1.5;}</style>
<div class="applyrow">' . $applyrows . '</div>';
2022-04-03 22:58:19 +08:00
}
?></li>
2022-02-19 23:38:30 +08:00
<li class="nav-item nav-item-has-subnav">
2022-05-21 05:53:31 +08:00
<li class="nav-item active"> <a href="./group.php"><i class="mdi mdi-folder"></i>分组管理</a></li>
2022-05-12 00:20:11 +08:00
<li class="nav-item active"> <a href="./link.php"><i class="mdi mdi-web"></i>链接管理</a></li>
2024-01-09 11:08:01 +08:00
<li class="nav-item active"> <a href="./tag.php"><i class="mdi mdi-cube"></i>导航菜单</a></li>
<li class="nav-item active"> <a href="./sou.php"><i class="mdi mdi-magnify"></i>搜索引擎</a></li>
2022-05-21 19:02:22 +08:00
<li class="nav-item active"> <a href="./pwd.php"><i class="mdi mdi-key-variant"></i>加密管理</a></li>
2022-05-12 00:20:11 +08:00
<li class="nav-item active"> <a href="./update.php"><i class="mdi mdi-update"></i>检查更新</a> </li>
2023-01-21 18:31:00 +08:00
<li class="nav-item active"> <a href="./wxplus.php"><i class="mdi mdi-wechat"></i>微信推送</a> </li>
2022-05-12 00:20:11 +08:00
<li> <a href="javascript:loginout()"><i class="mdi mdi-logout"></i> 退出登录</a> </li>
</ul>
2022-02-19 23:38:30 +08:00
</nav>
<div class="sidebar-footer">
2022-03-26 16:06:03 +08:00
<p class="copyright">Copyright &copy;
<?php echo(date('Y'));
2022-05-12 00:20:11 +08:00
?> Powered by <br> <a href="https://gitee.com/LyLme/lylme_spage"><?php echo explode("-", $conf['title'])[0];?> </a></p>
2022-02-19 23:38:30 +08:00
</div>
</div>
</aside>
<!--End 左侧导航-->
<!--头部信息-->
<header class="lyear-layout-header">
<nav class="navbar navbar-default">
<div class="topbar">
<div class="topbar-left">
<div class="lyear-aside-toggler">
<span class="lyear-toggler-bar"></span>
<span class="lyear-toggler-bar"></span>
<span class="lyear-toggler-bar"></span>
</div>
2022-03-26 16:06:03 +08:00
<span class="navbar-page-title"> <?php echo $title;
?></span>
2022-02-19 23:38:30 +08:00
</div>
<ul class="topbar-right">
<li class="dropdown dropdown-profile">
<a href="javascript:void(0)" data-toggle="dropdown">
2022-03-26 16:06:03 +08:00
<span><?php echo $conf['admin_user'];
?><span class="caret"></span></span>
2022-02-19 23:38:30 +08:00
</a>
<ul class="dropdown-menu dropdown-menu-right">
<li> <a href="./user.php"><i class="mdi mdi-lock-outline"></i> 修改密码</a> </li>
<li class="divider"></li>
<li> <a href="javascript:loginout()"><i class="mdi mdi-logout-variant"></i> 退出登录</a> </li>
</ul>
</li>
2022-04-30 23:17:30 +08:00
<li class="dropdown dropdown-skin">
<span data-toggle="dropdown" class="icon-palette" aria-expanded="false"><i class="mdi mdi-palette"></i></span>
<ul class="dropdown-menu dropdown-menu-right" data-stoppropagation="true">
<li class="drop-title"><p>主题</p></li>
<li class="drop-skin-li clearfix">
<span class="inverse">
<input type="radio" name="site_theme" value="default" id="site_theme_1" >
<label for="site_theme_1" onclick="theme('default')"></label>
</span>
<span>
<input type="radio" name="site_theme" value="dark" id="site_theme_2" checked="">
<label for="site_theme_2" onclick="theme('dark')"></label>
</span>
</li>
</ul>
</li>
2022-02-19 23:38:30 +08:00
</ul>
</div>
</nav>
</header>
2022-04-30 23:17:30 +08:00
<script>
function theme(theme){
localStorage.setItem("theme", theme);
}
var themes = localStorage.getItem("theme");
if(themes != "dark"){
var themes = 'default';
document.getElementById('site_theme_1').checked = true;
}
else{
document.getElementById('site_theme_2').checked = true;
}
document.write('<body data-theme="'+themes+'">');
</script>
2022-03-26 16:06:03 +08:00
<!--End 头部信息-->