-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog_post.php
170 lines (162 loc) · 8.19 KB
/
blog_post.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?php
$n = $_GET['n'];
if (isset($n)) {
require_once('fdocdoctor/base.php');
$sql = mysqli_query($con, "select * from blog where id = '$n'");
$sttr = mysqli_fetch_array($sql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="FDOC Multispeciality Dental Chains">
<link href="images/smallog.png" rel="shortcut icon" type="image/png">
<title>FDOC Multispeciality Dental Chains</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- WebFonts core CSS -->
<link href="css/fonts.css" rel="stylesheet">
<!-- <link href="css/animsition.css" rel="stylesheet"> -->
<!-- Simple Line Icons -->
<link href="MegaNavbar/assets/plugins/simple-line-icons/simple-line-icons.css" rel="stylesheet">
<!-- OWL -->
<link href="css/owl.carousel.css" rel="stylesheet">
<!-- REVOLUTION BANNER CSS SETTINGS -->
<link rel="stylesheet" type="text/css" href="rs-plugin/css/settings.css" media="screen" />
<!-- MegaNavbar-->
<link rel="stylesheet" type="text/css" href="MegaNavbar/assets/css/MegaNavbar.min.css">
<link rel="stylesheet" type="text/css" href="MegaNavbar/assets/css/skins/navbar-default.css">
<!-- <link rel="stylesheet" type="text/css" href="MegaNavbar/assets/css/animation/animation.css"> -->
<!-- Custom styles for this template -->
<link href="css/style.css" rel="stylesheet">
<!-- Goole fonts -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400,300,600,700,800" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="animsition">
<div class="wrapper">
<?php include 'header.php'; ?>
<section id="blog" class="container">
<div class="blog">
<div class="row">
<div class="col-md-8 blog-main">
<div class="blog">
<div class="post-content">
<div class="post-media">
<a href="#">
<img src="fdocdoctor/<?php echo $sttr['bimg']; ?>" alt="">
</a>
</div>
<!--END POST-MEDIA-->
<!-- <div class="post-date">
<ul>
<li class="date"><span class="month">Feb</span> <span class="day">12</span> <span class="year">20143</span>
</li>
</ul>
</div> -->
<!--END POST-DATE-->
<div class="post-title">
<h3 class="title m-0"><a><?php echo $sttr['bhead']; ?></a></h3>
</div>
<!--END POST-TITLE-->
<div class="post-meta">
<ul>
<li>
<span>Posted by <a href="index">Shoaib Syed</a></span>
</li>
</ul>
</div>
<!--END POST-META-->
<?php echo $sttr['bcont']; ?>
</div>
<!--END POST-CONTENT -->
<hr>
</div>
</div>
<!--/.col-md-8-->
<aside class="col-md-4">
<div class="widget categories">
<h3>Recent Posts</h3>
<div class="row">
<div class="col-sm-12">
<?php
$presf = mysqli_query($con, "select * from blog order by id desc");
$kl = 0;
while ($row = mysqli_fetch_array($presf)) {
?>
<div class="single_comments">
<a href="blog_post?n=<?php echo $row['id']; ?>">
<img src="fdocdoctor/<?php echo $row['bimg']; ?>" alt="">
<p><?php echo $row['bhead']; ?></p>
<div class="entry-meta small muted">
<span>By <a>Shoaib Syed</a></span>
</div>
</a>
</div>
<?php
$kl++;}
?>
</div>
</div>
</div>
</aside>
</div>
<!--/.row-->
</div>
</section>
<div class="cta bg-blue-light">
<div class="container">
<div class="row cta-1">
<div class="cta-features">
<div class="col-sm-3 blue-1">
<img src="images/oth/1.jpeg" class="img-responsive" alt="">
</div>
<div class="col-sm-3 blue-2">
<img src="images/oth/2.jpeg" class="img-responsive" alt="">
</div>
<div class="col-sm-3 blue-3">
<img src="images/oth/3.jpeg" class="img-responsive" alt="">
</div>
<div class="col-sm-3 blue-4">
<img src="images/oth/4.jpeg" class="img-responsive" alt="">
</div>
</div>
</div>
</div>
</div>
<?php include 'footer.php'; ?>
</div>
<!-- end: animatsion -->
</div>
<!-- end:Wrapper -->
<!-- core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/plugins.js"></script>
<!-- jQuery REVOLUTION Slider -->
<script type="text/javascript" src="rs-plugin/js/jquery.themepunch.tools.min.js"></script>
<script type="text/javascript" src="rs-plugin/js/jquery.themepunch.revolution.min.js"></script>
<script src="js/custom.js"></script>
<script src="js/form_validate.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>
<?php
}
else {
header('Location: index.php');
}
?>