This repository has been archived by the owner on Jul 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgallery.php
141 lines (122 loc) · 3.71 KB
/
gallery.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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
<?php
session_start();
if (!isset($_SESSION['login'])) {
header("Location: login.php");
die();
}
?>
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<meta content="width=device-width" name="viewport">
<title>图片管理</title>
<head>
<link href="//cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel='stylesheet' href='css/filepond-plugin-image-preview.min.css'/>
<link rel='stylesheet' href='css/filepond.min.css'/>
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css'>
<script src="js/panel.js"></script>
</head>
<style>
.navbar {
background-color: #eaecf0;
}
.navbar .navbar-nav .nav-link {
color: #6c767d;
}
.navbar .navbar-nav .nav-link:hover {
color: #227bff;
}
.navbar .navbar-nav .active > .nav-link {
color: #227bff;
}
.top {
text-decoration: none;
background-color: #eaecf0;
}
section {
display: flex;
flex-wrap: wrap;
}
section::after {
content: '';
flex-grow: 999999;
}
.image {
margin: 2px;
background-color: transparent;
position: relative;
}
.image:hover {
box-shadow: 0 0 25px rgba(186, 200, 207, 1);
}
.image:hover .menu {
visibility: visible;
}
.menu {
visibility: hidden;
width: 160px;
background-color: #eaecf0;
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
left: 50%;
margin-left: -80px;
}
.menu::after {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: transparent transparent #eaecf0 transparent;
}
i {
display: block;
}
img {
position: absolute;
top: 0;
width: 100%;
vertical-align: bottom;
}
.menu-link {
color: #6c767d;
}
.menu-link:hover {
color: #227bff;
text-decoration-line: none;
}
</style>
<body>
<nav class="navbar navbar-expand-lg">
<div class="container">
<a class="navbar-brand" href="index.php">Imgbed</a>
<div class="collapse navbar-collapse">
<ul class="navbar-nav ml-auto">
<li class="nav-item pl-1">
<a class="nav-link" href="index.php"><i class="fa fa-th-list fa-fw mr-1"></i>简洁模式</a>
</li>
<li class="nav-item active pl-1">
<a class="nav-link" href="gallery.php"><i class="fa fa-picture-o fa-fw mr-1"></i>画廊模式</a>
</li>
<li class="nav-item pl-1">
<a class="nav-link" href="logout.php"><i class="fa fa-sign-out fa-fw mr-1"></i>注销<?php echo $_SESSION['username'] ?></a>
</li>
</ul>
</div>
</div>
</nav>
<br>
</body>
</html>
<?php
include "class.php";
$a = new Gallery();
?>