使用PHP开发的简约导航/书签管理系统。
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.

166 lines
4.6 KiB

3 years ago
<!DOCTYPE html>
<html lang="zh-cn" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
2 years ago
<title><?php echo $link['title']; ?> - <?php echo $site['title']; ?></title>
3 years ago
<meta name="keywords" content="<?php echo $link['title']; ?>" />
<meta name="description" content="<?php echo $link['description']; ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2 years ago
<link rel="stylesheet" href="static/bootstrap4/css/bootstrap.min.css" type="" media=""/>
<script src = "static/js/jquery.min.js"></script>
<script src="static/bootstrap4/js/bootstrap.min.js"></script>
3 years ago
<style>
.prevent-overflow{
3 years ago
width:260px;
3 years ago
overflow: hidden;/*超出部分隐藏*/
white-space: nowrap;/*不换行*/
text-overflow:ellipsis;/*超出部分文字以...显示dsds*/
}
2 years ago
.a_d img{
max-width:100%;
padding-top:1em;
padding-bottom:1em;
}
2 years ago
#menu{
width:100%;
background-color: #343a40!important;
}
3 years ago
</style>
3 years ago
<?php echo $site['custom_header']; ?>
3 years ago
<?php
//不存在多个链接的情况,如果用户已经登录,则1s后跳转,不然等5s
if( empty($link['url_standby']) ) {
3 years ago
//游客停留时间
$visitor_stay_time = $transition_page['visitor_stay_time'];
//管理员停留时间
$admin_stay_time = $transition_page['admin_stay_time'];
3 years ago
if ($is_login) {
3 years ago
header("Refresh:$admin_stay_time;url=".$link['url']);
3 years ago
}
else{
3 years ago
header("Refresh:$visitor_stay_time;url=".$link['url']);
3 years ago
}
}
?>
</head>
<body>
2 years ago
<div id="menu">
<div class="container">
<div class = "row">
<div class="col-sm-8 offset-sm-2">
<!-- 顶部导航菜单 -->
<nav class="navbar navbar-expand-md bg-dark navbar-dark">
<a class="navbar-brand" href="/"><?php echo $site['title']; ?></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav">
<!-- 输出自定义菜单 -->
<?php echo $transition_page['menu']; ?>
<!-- 输出自定义菜单END -->
</ul>
</div>
</nav>
<!-- 顶部导航菜单END -->
</div>
</div>
</div>
</div>
3 years ago
<div class="container" style = "margin-top:2em;">
2 years ago
<!-- 广告1 -->
<div class= "row">
<div class="col-sm-8 offset-sm-2 a_d">
<?php echo $transition_page['a_d_1']; ?>
</div>
</div>
<!-- 广告1 END -->
3 years ago
<div class="row">
3 years ago
<div class="col-sm-8 offset-sm-2">
3 years ago
<!-- 新建一个表格 -->
<h2>链接信息:</h2>
<table class="table">
<tbody>
<tr class="table-info">
2 years ago
<td width="170">标题</td>
3 years ago
<td><?php echo $link['title']; ?></td>
</tr>
<tr class="table-info">
<td>描述</td>
<td><?php echo $link['description']; ?></td>
</tr>
<tr class="table-info">
<td>链接</td>
<td>
<div class = "prevent-overflow">
<a href="<?php echo $link['url']; ?>" rel = "nofollow" title = "<?php echo $link['title']; ?>"><?php echo $link['url']; ?></a>
</div>
</td>
</tr>
<tr class="table-info">
<td>备用链接</td>
<td>
<div class = "prevent-overflow">
<a href="<?php echo $link['url_standby']; ?>" rel = "nofollow" title = "<?php echo $link['title']; ?>"><?php echo $link['url_standby']; ?></a>
</div>
</td>
</tr>
</tbody>
</table>
<!-- 如果备用链接是空的,则显示加载中... -->
<?php if( empty($link['url_standby']) ) { ?>
<!-- 加载中 -->
<div class="spinner-border"></div>
即将打开,请稍等...
<!-- 加载中END -->
<?php }else{ ?>
<!-- 备用链接不为空 -->
<!-- 备用链接提示框 -->
<div class="alert alert-primary">
<strong>存在备用链接,请手动点击您要打开的链接!</strong>
</div>
<!-- 提示框END -->
<?php } ?>
<!-- 表格END -->
<div class="xcdn-content">
<?php echo $msg; ?>
</div>
</div>
</div>
2 years ago
<!-- 广告2 -->
<div class= "row">
<div class="col-sm-8 offset-sm-2 a_d">
<?php echo $transition_page['a_d_2']; ?>
</div>
</div>
<!-- 广告2 END -->
<!-- 底部footer -->
<div class = "row">
<div class="col-sm-8 offset-sm-2">
<hr>
<div class="xcdn-footer">
2 years ago
<?php if( empty($site['custom_footer']) ){ ?>
2 years ago
&copy;2022 Powered by <a href="https://www.xiaoz.me/" title = "小z博客" rel = "nofollow" target = "_blank">xiaoz</a>
<?php }else{
2 years ago
echo $site['custom_footer'];
2 years ago
} ?>
</div>
</div>
</div>
<!-- 底部footer end -->
3 years ago
</div>
</body>
</html>