-
Notifications
You must be signed in to change notification settings - Fork 0
/
detail.php
92 lines (88 loc) · 3.59 KB
/
detail.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
<?php
$articleId = $_GET['articleId'];
include_once './public/connect.php';
$conn = connect();
$sql = "select p.id,p.title,p.created,p.content,p.views,p.likes,p.feature,c.name,u.nickname from posts p
left join categories c on c.id = p.category_id
left join users u on u.id = p.user_id
where p.id = $articleId";
$articleArr = query($conn, $sql);
$articleData = $articleArr[0];
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>阿里百秀-发现生活,发现美!</title>
<link rel="stylesheet" href="static/assets/css/style.css">
<link rel="stylesheet" href="static/assets/vendors/font-awesome/css/font-awesome.css">
</head>
<body>
<div class="wrapper">
<!-- <div class="topnav">
<ul>
<li><a href="javascript:;"><i class="fa fa-glass"></i>奇趣事</a></li>
<li><a href="javascript:;"><i class="fa fa-phone"></i>潮科技</a></li>
<li><a href="javascript:;"><i class="fa fa-fire"></i>会生活</a></li>
<li><a href="javascript:;"><i class="fa fa-gift"></i>美奇迹</a></li>
</ul>
</div> -->
<?php include_once './public/_header.php' ?>
<?php include_once './public/_aside.php' ?>
<div class="content">
<div class="article">
<div class="breadcrumb">
<dl>
<dt>当前位置:</dt>
<dd><a href="javascript:;"><?php echo $articleData['name'] ?></a></dd>
<dd><?php echo $articleData['title'] ?></dd>
</dl>
</div>
<h2 class="title">
<a href="javascript:;"><?php echo $articleData['title'] ?></a>
</h2>
<div class="meta">
<span><?php echo $articleData['nickname'] ?> 发布于 <?php echo $articleData['created'] ?></span>
<span>分类: <a href="javascript:;"><?php echo $articleData['name'] ?></a></span>
<span>阅读: (<?php echo $articleData['views'] ?>)</span>
<span>点赞: (<?php echo $articleData['likes'] ?>)</span>
</div>
<div><?php echo $articleData['content'] ?></div>
</div>
<div class="panel hots">
<h3>热门推荐</h3>
<ul>
<li>
<a href="javascript:;">
<img src="static/uploads/hots_2.jpg" alt="">
<span>星球大战:原力觉醒视频演示 电影票68</span>
</a>
</li>
<li>
<a href="javascript:;">
<img src="static/uploads/hots_3.jpg" alt="">
<span>你敢骑吗?全球第一辆全功能3D打印摩托车亮相</span>
</a>
</li>
<li>
<a href="javascript:;">
<img src="static/uploads/hots_4.jpg" alt="">
<span>又现酒窝夹笔盖新技能 城里人是不让人活了!</span>
</a>
</li>
<li>
<a href="javascript:;">
<img src="static/uploads/hots_5.jpg" alt="">
<span>实在太邪恶!照亮妹纸绝对领域与私处</span>
</a>
</li>
</ul>
</div>
</div>
<div class="footer">
<p>© 2016 XIU主题演示 本站主题由 themebetter 提供</p>
</div>
</div>
</body>
</html>