-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php.old
128 lines (122 loc) · 6.34 KB
/
index.php.old
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>BDFZ导航</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="./css/materialize.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="./css/main.css">
<link href="./img/nav_favicon.png" rel="icon" type="image/png" sizes="272x272">
<script src="./js/materialize.js"></script>
<script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script>
<script src="./js/main.js"></script>
<script>
M.AutoInit();
window.setInterval(uptime, 1000);
</script>
</head>
<body class="grey lighten-3">
<nav id="container" class="blue-grey darken-1">
<div class="nav-wrapper blue-grey darken-1">
<a href="#" class="brand-logo titletxt" style="font-size: 25px;">BDFZ导航</a>
<ul class="right hide-on-med-and-down">
<li>
<?php
error_reporting(0);
$e = 0;
try {
if ($_POST["username"]) {
$name = $_POST["username"];
echo "<p style='margin:0;font-size: 20px;'>$name</p>";
$e = 1;
} else $e = 0;
} finally {
if ($e == 0) echo '<a href="./login.html" style="font-size: 24px;font-weight: 350">登录/注册</a>';
}
?>
</li>
<li><a href="https://github.com/pkuschool/BDFZ_Navigation"><img src="./img/github.png" alt="" style="margin-top: 20px;" height="25px" width="25px"></a></li>
<li><a href="https://github.com/pkuschool/BDFZ_Navigation/issues/new/choose"><i class="material-icons">feedback</i></a></li>
<li><a href="./about.html"><i class="material-icons">info</i></a></li>
</ul>
</div>
</nav>
<div style="margin-top: 20px;" class="mainsection" id="top3">
<div class="row hide-on-small-and-down">
<!--Top 3, large-->
<div class="col s4 c_main">
<div class="btn blue lighten-1 white-text waves-ripple waves-effect col s12 c_full z-depth-2 hoverable zoom" onclick="GoTo('https://bdfz.seiue.com')">
<img class="img" src="./img/seiue.png" height="100px" width="auto">
<p class="large-plate hide-on-small-and-down">希悦</p>
</div>
</div>
<div class="col s4 c_main">
<div class="btn grey darken-3 white-text waves-ripple waves-effect col s12 c_clock z-depth-2 hoverable zoom" onclick="window.open('clock.html','_self')">
<p class="centered large dt clocktitle" id="time-desktop" onclick="clicktime()"></p>
<p class="centered dt" id="date-desktop"></p>
<script>
uptime();
window.setInterval(uptime, 1000);
</script>
</div>
</div>
<div class="col s4 c_main">
<div class="btn deep-orange darken-1 white-text waves-ripple waves-effect col s12 c_full z-depth-2 office hoverable zoom" onclick="GoTo('https://portal.office.com')">
<img class="img" src="./img/office.png" height="100px" width="auto">
<p class="large-plate hide-on-small-and-down">O<span class="gridhide">ffice </span>365</p>
</div>
</div>
</div>
<div class="row hide-on-med-and-up mobile-view">
<!--Top 3, Mobile-->
<div class="col s12 c_main_m">
<div class="btn blue lighten-1 white-text waves-ripple waves-effect col s12 c_full_minus z-depth-2" onclick="GoTo('https://bdfz.seiue.com')">
<img class="img_m" src="./img/seiue.png" height="100px" width="auto">
<p class="large-plate ">希悦</p>
</div>
</div>
<div class="col s12 c_main_m">
<div class="btn red darken-4 white-text waves-ripple waves-effect col s12 c_full_minus z-depth-2" onclick="GoTo('http://www.pkuschool.edu.cn')">
<img class="img_m" src="./img/BDFZ.png" height="100px" width="auto">
<p class="large-plate">官网</p>
</div>
</div>
<div class="col s12 c_main_m">
<div class="btn deep-orange darken-1 white-text waves-ripple waves-effect col s12 c_full_minus z-depth-2 office" onclick="GoTo('https://portal.office.com')">
<img class="img_m" src="./img/office.png" height="100px" width="auto">
<p class="large-plate">Office 365</p>
</div>
</div>
<div class="col s12 c_main">
<div class="btn yue darken-1 white-text waves-ripple waves-effect col s12 c_full c_full_minus z-depth-2" onclick="GoTo('http://sj2020.bdfz.seiue.com/')">
<img class="img" src="./img/yueshijian.png" height="100px" width="auto">
<p class="large-plate">悦实践</p>
</div>
</div>
</div>
</div>
<div class="mainsection centered center center-align hide-on-small-and-down" style="margin-top: 20px;margin: 0 auto">
<div class="row center-align center centered" id="customarea" style="margin: 0 auto">
<button class="btn col white black-text customgrid hoverable waves-effect s2">
<img src="./img/webdef.png" class="gridimg">
<p class="gridtext">网站</p>
</div>
<button data-target="addmodal" class="btn customgrid white col black-text plus hoverable waves-effect s2 modal-trigger">
<img src="./img/plus.png" class="gridimg">
<p class="gridtext">添加</p>
</div>
</div>
</div>
<div id="addmodal" class="modal">
<div class="modal-content">
<h4>Modal Header</h4>
<p>A bunch of text</p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-close waves-effect waves-green btn-flat">Agree</a>
</div>
</div>
</body>
</html>