-
Notifications
You must be signed in to change notification settings - Fork 2
/
blog.php
274 lines (220 loc) · 9.81 KB
/
blog.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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<!--Developed by,
▀▀█▀▀ ▒█▀▀▀ ░█▀▀█ ▒█▀▄▀█ ▒█▀▀▀█ ▒█▀▀█ ▒█▀▀▀█ ▒█▀▀█ ▒█▀▀█ ▀█▀ ▒█▀▀▀█ ▒█▄░▒█
░▒█░░ ▒█▀▀▀ ▒█▄▄█ ▒█▒█▒█ ░▀▀▀▄▄ ▒█░░░ ▒█░░▒█ ▒█▄▄▀ ▒█▄▄█ ▒█░ ▒█░░▒█ ▒█▒█▒█
░▒█░░ ▒█▄▄▄ ▒█░▒█ ▒█░░▒█ ▒█▄▄▄█ ▒█▄▄█ ▒█▄▄▄█ ▒█░▒█ ▒█░░░ ▄█▄ ▒█▄▄▄█ ▒█░░▀█
© Aparecium Labs-->
<!DOCTYPE html>
<!--Database Connection-->
<?php
include_once("config/connection_safeplant/db_connect.php");
?>
<html>
<head>
<link rel="shortcut icon" href="images/favicon.png">
<title>Blog | Safe Plant</title>
<!-- Mobile Specific Metas================================================== -->
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="format-detection" content="telephone=no">
<!--theme colour-->
<link rel="stylesheet" id="color" href="css/red.css">
<!-- Bootstrap -->
<link href="css/bootstrap.css" rel="stylesheet">
<!-- medicom style -->
<link href="css/medicom.css" rel="stylesheet">
<!-- masonary -->
<link href="css/style-masonary.css" rel="stylesheet">
<!-- This page============================================= -->
<link href="css/settings.css" rel="stylesheet">
<!-- Bootstrap============================================= -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Theme Skin============================================= -->
<link href="css/light.css" rel="stylesheet" id="choose-theme">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<!-- Header Scripts================================================== -->
<script src="js/modernizr-2.6.2.min.js"></script>
</head>
<body class="fixed-header">
<div id="wrapper">
<!-- Header============================================= -->
<header id="header" class="medicom-header medical-nav">
<!-- Top Row============================================= -->
<div class="solid-row" style="background-color:#e54242"></div>
<div class="container">
<!--Navigation bar begining-->
<?php include_once("navigation-bar.php"); ?>
<!--End of navigation bar-->
</div>
</header>
<section class="sub-page-banner text-center" data-stellar-background-ratio="0.3">
<div class="container">
<h1 class="entry-title">Blog</h1>
<h4>Stay tuned for daily<span> updates</span></h4>
</div>
</section>
<br>
<div class="sub-page-content">
<div class="container">
<div class="row blog-wrapper">
<div class="col-md-6 clearfix">
<!--Article Left-->
<?php
$sql = "SELECT * FROM blog_page_column1 ORDER BY rand()";
$result = $con->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo '<article class="blog-item blog-full-width">';
echo '<div class="blog-thumbnail">';
echo '<div id="carousel-blog" class="carousel slide default" data-ride="carousel">';
//<!-- Indicators -->
echo '<ol class="carousel-indicators">';
echo '<li data-target="#carousel-blog" data-slide-to="0" class="active"></li>';
echo '<li data-target="#carousel-blog" data-slide-to="1"></li>';
echo '<li data-target="#carousel-blog" data-slide-to="2"></li>';
echo '</ol>';
//<!-- Wrapper for slides -->
echo '<div class="carousel-inner text-center">';
echo '<div class="item active">';
echo "<img src=\"{$row["img_url1"]}\" alt=\"\" title=\"\">";
echo '</div>';
echo '<div class="item">';
echo "<img src=\"{$row["img_url2"]}\" alt=\"\" title=\"\">";
echo '</div>';
echo '<div class="item">';
echo "<img src=\"{$row["img_url3"]}\" alt=\"\" title=\"\">";
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '<div class="blog-full-width-date">';
echo "<p class=\"day\">{$row["day"]}</p>";
echo "<p class=\"monthyear\">{$row["month_year"]}</p>";
echo '<a href="#"><i class="fa fa-comments"></i>0</a>';
echo '</div>';
echo '<div class="blog-content">';
echo "<h4 class=\"blog-title\"><a href=\"#\">{$row["title"]}</a></h4>";
echo "<p class=\"blog-meta\">By: <a href=\"#\">{$row["admin"]}</a> | Tags: <a href=\"#\">{$row["tags"]}</a></p>";
echo "<p>" . substr($row['description'],0,600) . " ....</p>";
echo "<a href=\"{$row["blog_url"]}\" class=\"btn btn-default btn-mini btn-rounded\">READ MORE</a>";
echo '</div>';
echo '</article>';
}
}
?>
</div>
<div class="col-md-6 clearfix">
<!--Article right-->
<?php
$sql = "SELECT * FROM blog_page_column2 ORDER BY rand()";
$result = $con->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo '<article class="blog-item blog-full-width">';
echo '<div class="blog-thumbnail">';
echo '<div id="carousel-blog" class="carousel slide default" data-ride="carousel">';
//<!-- Indicators -->
echo '<ol class="carousel-indicators">';
echo '<li data-target="#carousel-blog" data-slide-to="0" class="active"></li>';
echo '<li data-target="#carousel-blog" data-slide-to="1"></li>';
echo '<li data-target="#carousel-blog" data-slide-to="2"></li>';
echo '</ol>';
//<!-- Wrapper for slides -->
echo '<div class="carousel-inner text-center">';
echo '<div class="item active">';
echo "<img src=\"{$row["img_url1"]}\" alt=\"\" title=\"\">";
echo '</div>';
echo '<div class="item">';
echo "<img src=\"{$row["img_url2"]}\" alt=\"\" title=\"\">";
echo '</div>';
echo '<div class="item">';
echo "<img src=\"{$row["img_url3"]}\" alt=\"\" title=\"\">";
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '<div class="blog-full-width-date">';
echo "<p class=\"day\">{$row["day"]}</p>";
echo "<p class=\"monthyear\">{$row["month_year"]}</p>";
echo '<a href="#"><i class="fa fa-comments"></i>0</a>';
echo '</div>';
echo '<div class="blog-content">';
echo "<h4 class=\"blog-title\"><a href=\"#\">{$row["title"]}</a></h4>";
echo "<p class=\"blog-meta\">By: <a href=\"#\">{$row["admin"]}</a> | Tags: <a href=\"#\">{$row["tags"]}</a></p>";
echo "<p>" . substr($row['description'],0,600) . " ....</p>";
echo "<a href=\"{$row["blog_url"]}\" class=\"btn btn-default btn-mini btn-rounded\">READ MORE</a>";
echo '</div>';
echo '</article>';
}
}
?>
</div>
</div>
</div>
<div class="clr"></div>
</div> <!--end sub-page-content-->
<div class="colourfull-row"></div>
<div class="colourfull-row"></div>
<!-- Footer============================================= -->
<?php include_once("footer.php"); ?>
</div><!--end #wrapper-->
<script src="js/jquery.html"></script>
<script src="js/bootstrap.min.html"></script>
<script src="js/jquery.anythingslider.html"></script>
<script src="js/jquery.stellar.js"></script>
<!--jCarousel library-->
<script type="text/javascript" src="js/jquery.jcarousel.min.js"></script>
<script src="js/color-switcher.js"></script>
<!-- All Javascript ============================================= -->
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.stellar.js"></script>
<script src="js/jquery-ui-1.10.3.custom.js"></script>
<script src="js/owl.carousel.js"></script>
<script src="js/counter.js"></script>
<script src="js/waypoints.js"></script>
<script src="js/jquery.uniform.js"></script>
<script src="js/easyResponsiveTabs.js"></script>
<script src="js/jquery.fancybox.pack.js"></script>
<script src="js/jquery.fancybox-media.js"></script>
<script src="js/jquery.mixitup.js"></script>
<script src="js/forms-validation.js"></script>
<script src="js/jquery.jcarousel.min.js"></script>
<script src="js/jquery.easypiechart.min.js"></script>
<script src="js/scripts.js"></script>
<!-- This page============================================= -->
<script src="js/jquery.themepunch.plugins.min.js"></script>
<script src="js/jquery.themepunch.revolution.min.js"></script>
<script src="js/color-switcher.js"></script>
<script type="text/javascript">
jQuery(function($){
// parallaax
$.stellar({
horizontalScrolling: false,
verticalOffset: 0
});
// AnythingSlider initialization
$('#slider').anythingSlider();
//jcarousel
jQuery('#doctors-list').jcarousel({
scroll :1
});
//team description box
$(".team-des-btn").click(function(){
$('.meet-the-doctors').find('div#team-desc').fadeOut();
$('.meet-the-doctors').find('a.team-des-btn i').removeClass("fa-minus");
$(this).parent().find('div#team-desc').fadeToggle();
$(this).parent().find('a.team-des-btn i').toggleClass("fa-minus");
});
jQuery('#').click({
scroll :1
});
})(jQuery);
</script>
</body>
</html>