forked from 0cin/trisolaris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
67 lines (60 loc) · 1.62 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Trisolaris (我真的已经很努力啦!)</title>
<link rel="stylesheet" href="css/general.css">
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
</head>
<body>
<div id="head">
<h1><a href="javascript: void(0);" id="index-title">
<?php
// 预加载内容
// 输出标题
require_once 'php/load-nav.php';
$tree = getnav($conn, "indexnav", 1);
print_title();
?>
</a></h1>
</div>
<div id="user-panel">
<p>
<span><a href="./panel/signup/" target="_blank" id="signup">注册</a></span>
<span><a href="./panel/manage/" target="_blank" id="login">管理</a></span>
<span><a href="./panel/contribute" target="_blank" id="contribute">投稿</a></span>
</p>
</div>
<div id="features-panel">
</div>
<div id="index-body">
<ul id="great-nav">
<?php
insertnav($tree, 2);
?>
</ul>
</div>
<br><br>
<footer>
<h5>Copyright © 2018 Sunshine+Ice All rights reserved.</h5>
<?php
include 'php/friends.php';
$friend_arr = array();
read_friend($friend_arr);
// if(!empty($friend_arr)) {
// echo "<h5>友情链接</h5>";
// }
echo "<ul>";
foreach($friend_arr as $item) {
$id = $item['id'];
$prompt = $item['prompt'];
$link = $item['link'];
echo "<li id='$id'><h5><a href='$link' target='_blank'>$prompt</a></h5></li>";
}
echo "</ul>"
?>
</footer>
</body>
</html>