-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog-item.php
99 lines (87 loc) · 2.35 KB
/
blog-item.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
<?php
require_once("./model/db-connection.php");
$array = $db->getBlogContent($_GET['id']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="./css/bootstrap.css">
<style>
section {
width: 100%;
float: left;
}
.banner-section {
background-image: url("/media/temp_image.jpg");
background-size: cover;
height: 380px;
left: 0;
position: absolute;
top: 0;
background-position: 0;
}
.post-title-block {
padding: 100px 0;
}
.post-title-block h1 {
color: #fff;
font-size: 85px;
font-weight: bold;
text-transform: capitalize;
}
.post-title-block h3 {
font-size: 20px;
color: #fff;
}
.image-block {
float: left;
width: 100%;
margin-bottom: 10px;
}
.footer-link a {
color: #A9FD00;
font-size: 18px;
text-transform: uppercase;
}
#content {
margin-top: 4em;
}
</style>
<title><?php echo $array[1] . "-深潜景色" ?></title>
</head>
<body>
<?php
$tag = "b";
require_once("./inc/navigate-bar.php");
?>
<section class="banner-section">
</section>
<section class="post-content-section">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 post-title-block">
<h1 class="text-center"><?php echo $array[1] ?></h1>
<h3 class="text-center"><?php echo $array[2] ?></h3>
</div>
<div class="col-lg-9 col-md-9 col-sm-12 m-auto" id="content">
<?php
echo $array[3];
?>
</div>
</div>
</section>
<!--<div style="text-align: right">-->
<!-- <button type="button" class="btn btn-primary" id="editBlog" >编辑博文</button>-->
<!--</div>-->
<!-- Add JavaScript file from js file -->
<script src="./js/jquery-3.4.1.js"></script>
<script src="./js/bootstrap.js"></script>
<script>
$("#editBlog").click(function(event){
});
</script>
</body>
</html>