-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
532 lines (475 loc) · 30.5 KB
/
index.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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
<?php
session_start();
include('includes/config.php'); ?>
<?php //Code for Page/Post Hits
$query="SELECT * from tblposts"; $result=mysqli_query($con,$query) or die ( ((is_object($con))? mysqli_error($con) : (($___mysqli_res = mysqli_connect_error()) ?$___mysqli_res : true)));
$row = mysqli_fetch_assoc($result);
//pageview count query
//$page=$row['PostTitle'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include('includes/head-tag.php'); ?>
<!-- Title -->
<title>Explicit9ja.com | Home</title>
<!-- Favicon -->
<link rel="icon" href="../img/core-img/favicon.ico">
<!-- Stylesheet -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<?php include('includes/share.php'); ?>
<?php include('includes/header.php'); ?>
<!-- Welcome Area Start -->
<section class="welcome-area">
<div class="welcome-slides owl-carousel">
<!-- Single Welcome Slide -->
<div class="single-welcome-slide bg-img bg-overlay" style="background-image: url(img/bg-img/1.jpg);">
<!-- Welcome Content -->
<div class="welcome-content h-100">
<div class="container h-100">
<div class="row h-100 align-items-center justify-content-center">
<!-- Welcome Text -->
<div class="col-12 col-md-9 col-lg-6">
<div class="welcome-text text-center">
<h2 data-animation="fadeInUpBig" data-delay="100ms">Welcome To Explicit9ja!</h2> <h5 data-animation="fadeInUpBig" data-delay="400ms">Your Entertainment World.</h5>
<a href="./users" class="btn razo-btn btn-2" data-animation="fadeInUpBig" data-delay="700ms">Login</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Single Welcome Slide -->
<div class="single-welcome-slide bg-img bg-overlay" style="background-image: url(img/bg-img/30.jpg);">
<!-- Welcome Content -->
<div class="welcome-content h-100">
<div class="container h-100">
<div class="row h-100 align-items-center justify-content-center">
<!-- Welcome Text -->
<div class="col-12 col-md-10 col-lg-6">
<div class="welcome-text text-center">
<h2 data-animation="fadeInUpBig" data-delay="100ms">Welcome To Explicit9ja!</h2> <h5 data-animation="fadeInUpBig" data-delay="400ms">Your Entertainment World.</h5>
<a href="./users" class="btn razo-btn btn-2" data-animation="fadeInUp" data-delay="700ms">Login</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Single Welcome Slide -->
<div class="single-welcome-slide bg-img bg-overlay" style="background-image: url(img/bg-img/32.jpg);">
<!-- Welcome Content -->
<div class="welcome-content h-100">
<div class="container h-100">
<div class="row h-100 align-items-center justify-content-center">
<!-- Welcome Text -->
<div class="col-12 col-md-10 col-lg-6">
<div class="welcome-text text-center">
<h2 data-animation="fadeInUpBig" data-delay="100ms">Welcome To Explicit9ja!</h2> <h5 data-animation="fadeInUpBig" data-delay="400ms">Your Entertainment World.</h5>
<a href="./users" class="btn razo-btn btn-2" data-animation="fadeInUp" data-delay="700ms">Login</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Single Welcome Slide -->
<div class="single-welcome-slide bg-img bg-overlay" style="background-image: url(img/bg-img/33.jpg);">
<!-- Welcome Content -->
<div class="welcome-content h-100">
<div class="container h-100">
<div class="row h-100 align-items-center justify-content-center">
<!-- Welcome Text -->
<div class="col-12 col-md-10 col-lg-6">
<div class="welcome-text text-center">
<h2 data-animation="fadeInUpBig" data-delay="100ms">Welcome To Explicit9ja!</h2> <h5 data-animation="fadeInUpBig" data-delay="400ms">Your Entertainment World.</h5>
<a href="./users" class="btn razo-btn btn-2" data-animation="fadeInUp" data-delay="700ms">Login</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Welcome Area End -->
<!-- Blog Area Start -->
<section class="razo-blog-area section-padding-80-0">
<div class="container">
<div class="row">
<!-- Weekly News Area -->
<div class="col-12 col-md-8">
<div class="weekly-news-area mb-50">
<!-- Section Heading -->
<div class="section-heading">
<h2>Latest News</h2>
</div>
<!-- Featured Post Area -->
<?php
$offset = 0;
$no_of_records_per_page = 1;
$query=mysqli_query($con,"select tblnews.views, tblnews.id as pid,tblnews.PostTitle as posttitle,tblnews.PostImage,tblcategory.CategoryName as category,tblcategory.id as cid,tblsubcategory.Subcategory as subcategory,tblnews.PostDetails as postdetails,tblnews.PostingDate as postingdate,tblnews.PostUrl as url from tblnews left join tblcategory on tblcategory.id=tblnews.CategoryId left join tblsubcategory on tblsubcategory.SubCategoryId=tblnews.SubCategoryId where tblnews.Is_Active=1 order by tblnews.id desc LIMIT $offset, $no_of_records_per_page");
while ($row=mysqli_fetch_array($query, MYSQLI_ASSOC)) {
$mpage = htmlentities($row['posttitle']);
$id = $row['pid'];
?>
<div class="featured-post-area bg-img bg-overlay mb-30" style="background-image: url(admin/postimages/<?php echo htmlentities($row['PostImage']);?>);">
<!-- Post Overlay -->
<div class="post-overlay">
<div class="post-meta">
<a href="#"><i class="fa fa-comments-o" aria-hidden="true"></i> 2.1k</a>
<a href="#"><i class="fa fa-eye" aria-hidden="true"></i><?php $count="SELECT * FROM tblnews WHERE pid=$id;"; echo $row['views'];?> </a>
</div>
<a href="single-news?e-news=<?php echo $row['url'];?>" class="post-title"><?php echo htmlentities($row['posttitle']);?></a>
</div>
<?php } ?>
</div>
<div class="row">
<!-- Blog Post -->
<?php
if (isset($_GET['pageno'])) {
$pageno = $_GET['pageno'];
} else {
$pageno = 1;
}
$no_of_records_per_page = 8;
$offset = ($pageno-1) * $no_of_records_per_page;
$total_pages_sql = "SELECT COUNT(*) FROM tblnews";
$result = mysqli_query($con,$total_pages_sql);
$total_rows = mysqli_fetch_array($result, MYSQLI_NUM)[0];
$total_pages = ceil($total_rows / $no_of_records_per_page);
$query=mysqli_query($con,"select tblnews.views, tblnews.id as pid,tblnews.PostTitle as posttitle,tblnews.PostImage,tblcategory.CategoryName as category,tblcategory.id as cid,tblsubcategory.Subcategory as subcategory,tblnews.PostDetails as postdetails,tblnews.PostingDate as postingdate,tblnews.PostUrl as url from tblnews left join tblcategory on tblcategory.id=tblnews.CategoryId left join tblsubcategory on tblsubcategory.SubCategoryId=tblnews.SubCategoryId where tblnews.Is_Active=1 order by tblnews.id desc LIMIT $offset, $no_of_records_per_page");
while ($row=mysqli_fetch_array($query, MYSQLI_ASSOC)) {
$mpage = htmlentities($row['posttitle']);
$id = $row['pid'];
?>
<!-- Single Post Area -->
<div class="col-12 col-md-6">
<div class="razo-single-post d-flex mb-30">
<!-- Post Thumbnail -->
<div class="post-thumbnail">
<a href="single-news?e-news=<?php echo $row['url'];?>"><img style="height:70px; width:140px;" src="admin/postimages/<?php echo htmlentities($row['PostImage']);?>" alt="<?php echo htmlentities($row['posttitle']);?>"></a>
</div>
<!-- Post Content -->
<div class="post-content">
<div class="post-meta">
<a href="#"><i class="fa fa-comments-o" aria-hidden="true"></i> 2.1k</a>
<a href="#"><i class="fa fa-eye" aria-hidden="true"></i> <?php $count="SELECT * FROM tblnews WHERE pid=$id;"; echo $row['views'];?></a>
</div>
<a href="single-news?e-news=<?php echo $row['url'];?>" class="post-title"><?php echo htmlentities($row['posttitle']);?></a>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<!-- Trending News Area -->
<div class="col-12 col-md-4">
<div class="trending-news-area mb-50">
<!-- Section Heading -->
<div class="section-heading">
<h2>Trending</h2>
</div>
<!-- Featured Post Area -->
<?php
$offset = 0;
$no_of_records_per_page = 1;
$query=mysqli_query($con,"select tblposts.views, tblposts.id as pid,tblposts.PostTitle as posttitle,tblposts.PostImage,tblcategory.CategoryName as category,tblcategory.id as cid,tblsubcategory.Subcategory as subcategory,tblposts.PostDetails as postdetails,tblposts.PostingDate as postingdate,tblposts.PostUrl as url from tblposts left join tblcategory on tblcategory.id=tblposts.CategoryId left join tblsubcategory on tblsubcategory.SubCategoryId=tblposts.SubCategoryId where tblposts.Is_Active=1 order by tblposts.id desc LIMIT $offset, $no_of_records_per_page");
while ($row=mysqli_fetch_array($query, MYSQLI_ASSOC)) {
$mpage = htmlentities($row['posttitle']);
$id = $row['pid'];
?>
<div class="featured-post-area small-featured-post bg-img bg-overlay mb-30" style="background-image: url(admin/postimages/<?php echo htmlentities($row['PostImage']);?>);">
<!-- Post Overlay -->
<div class="post-overlay">
<div class="post-meta">
<a href="#"><i class="fa fa-comments-o" aria-hidden="true"></i> 2.1k</a>
<a href="#"><i class="fa fa-eye" aria-hidden="true"></i> <?php $count="SELECT * FROM tblposts WHERE pid=$id;"; echo $row['views'];?></a>
</div>
<a href="single-blog?e-blog=<?php echo $row['url'];?>" class="post-title"><?php echo htmlentities($row['posttitle']);?></a>
</div>
</div>
<?php } ?>
<!-- Blog Post -->
<?php
if (isset($_GET['pageno'])) {
$pageno = $_GET['pageno'];
} else {
$pageno = 1;
}
$no_of_records_per_page = 8;
$offset = ($pageno-1) * $no_of_records_per_page;
$total_pages_sql = "SELECT COUNT(*) FROM tblposts";
$result = mysqli_query($con,$total_pages_sql);
$total_rows = mysqli_fetch_array($result, MYSQLI_NUM)[0];
$total_pages = ceil($total_rows / $no_of_records_per_page);
$query=mysqli_query($con,"select tblposts.views, tblposts.id as pid,tblposts.PostTitle as posttitle,tblposts.PostImage,tblcategory.CategoryName as category,tblcategory.id as cid,tblsubcategory.Subcategory as subcategory,tblposts.PostDetails as postdetails,tblposts.PostingDate as postingdate,tblposts.PostUrl as url from tblposts left join tblcategory on tblcategory.id=tblposts.CategoryId left join tblsubcategory on tblsubcategory.SubCategoryId=tblposts.SubCategoryId where tblposts.Is_Active=1 order by tblposts.id desc LIMIT $offset, $no_of_records_per_page");
while ($row=mysqli_fetch_array($query, MYSQLI_ASSOC)) {
$mpage = htmlentities($row['posttitle']);
$id = $row['pid'];
?>
<!-- Single Post Area -->
<div class="razo-single-post d-flex mb-30">
<!-- Post Thumbnail -->
<div class="post-thumbnail">
<a href="single-blog?e-blog=<?php echo $row['url'];?>"><img style="height:70px; width:140px;" src="admin/postimages/<?php echo htmlentities($row['PostImage']);?>" alt="<?php echo htmlentities($row['posttitle']);?>"></a>
</div>
<!-- Post Content -->
<div class="post-content">
<div class="post-meta">
<a href="#"><i class="fa fa-comments-o" aria-hidden="true"></i> 2.1k</a>
<a href="#"><i class="fa fa-eye" aria-hidden="true"></i> <?php $count="SELECT * FROM tblposts WHERE pid=$id;"; echo $row['views'];?></a>
</div>
<a href="single-blog.php?e-blog=<?php echo $row['url'];?>" class="post-title"><?php echo htmlentities($row['posttitle']);?></a>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</section>
<!-- Blog Area End -->
<!-- Music Charts Area Start -->
<section class="razo-music-charts-area section-padding-80 bg-overlay bg-img jarallax" style="background-image: url(img/bg-img/31.jpg);">
<div class="container">
<div class="row">
<!-- Section Heading -->
<div class="col-sm-6">
<div class="section-heading white">
<h2>Music Chart</h2>
</div>
</div>
<!-- Show All Button -->
<div class="col-sm-6">
<div class="show-all-button mb-50 text-right">
<a href="music" class="btn show-all-btn">Show All Trending (Top 10)</a>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<!-- Single Music Chart -->
<?php
if (isset($_GET['pageno'])) {
$pageno = $_GET['pageno'];
} else {
$pageno = 1;
}
$no_of_records_per_page = 5;
$offset = ($pageno-1) * $no_of_records_per_page;
$total_pages_sql = "SELECT COUNT(*) FROM tblposts";
$result = mysqli_query($con,$total_pages_sql);
$total_rows = mysqli_fetch_array($result, MYSQLI_NUM)[0];
$total_pages = ceil($total_rows / $no_of_records_per_page);
$query=mysqli_query($con,"select tblsongs.id as pid,tblsongs.PostTitle as posttitle,tblsongs.PostImage,tblcategory.CategoryName as category,tblcategory.id as cid,tblsubcategory.Subcategory as subcategory,tblsongs.PostDetails as postdetails,tblsongs.PostingDate as postingdate,tblsongs.PostUrl as url,tblsongs.File as file from tblsongs left join tblcategory on tblcategory.id=tblsongs.CategoryId left join tblsubcategory on tblsubcategory.SubCategoryId=tblsongs.SubCategoryId where tblsongs.Is_Active=1 order by tblsongs.id desc LIMIT $offset, $no_of_records_per_page");
$i=0;
while ($row=mysqli_fetch_array($query, MYSQLI_ASSOC)) {
$mpage = htmlentities($row['posttitle']);
$i++;
?>
<div class="single-music-chart d-flex align-items-center justify-content-between wow fadeInUp" data-wow-delay="100ms">
<!-- Music Content -->
<div class="music-content d-flex align-items-center">
<div class="sl-number">
<h5><?php echo $i;?>.</h5>
</div>
<div class="music-thumb">
<img style="height:70px; width:140px;" src="admin/postimages/<?php echo htmlentities($row['PostImage']); ?>" alt="">
</div>
<div class="audio-player">
<audio preload="auto" controls>
<source src="admin/songs/<?php echo htmlentities($row['file']); ?>">
</audio>
</div>
<div class="music-title">
<h5 class="wordwrap"><?php echo htmlentities($row['posttitle']); ?> - <span><?php echo htmlentities($row['file']); ?></span></h5>
</div>
</div>
<!-- Music Price -->
<div class="music-price">
<a href="music-detail?e-info=<?php echo htmlentities($row['pid']) ?>" class="btn razo-btn btn-2">Preview/Download</a>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</section>
<!-- Music Charts Area End -->
<!-- Trending Video Area Start -->
<section class="razo-trending-video-area section-padding-80-0 mb-50">
<div class="container">
<div class="row">
<!-- Section Heading -->
<div class="col-12">
<div class="section-heading text-center">
<h2>Trending Video</h2>
</div>
</div>
</div>
<div class="row">
<!-- Featured Trending Video -->
<?php
$offset = 0;
$no_of_records_per_page = 1;
$query=mysqli_query($con,"select tblvideos.id as pid,tblvideos.PostTitle as posttitle,tblvideos.PostImage,tblcategory.CategoryName as category,tblcategory.id as cid,tblsubcategory.Subcategory as subcategory,tblvideos.PostDetails as postdetails,tblvideos.PostingDate as postingdate,tblvideos.PostUrl as url,tblvideos.File as file from tblvideos left join tblcategory on tblcategory.id=tblvideos.CategoryId left join tblsubcategory on tblsubcategory.SubCategoryId=tblvideos.SubCategoryId where tblvideos.Is_Active=1 order by tblvideos.id desc LIMIT $offset, $no_of_records_per_page");
while ($row=mysqli_fetch_array($query, MYSQLI_ASSOC)) {
$mpage = htmlentities($row['posttitle']);
?>
<div class="col-12">
<div class="featured-trending-video mb-30 wow fadeInUp" data-wow-delay="100ms">
<video class="img-thumbnail" preload="auto" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen controls>
<source src="admin/videos/<?php echo htmlentities($row['file']); ?>">
</video>
</div>
</div>
<?php } ?>
<!-- Single Post Area -->
<?php
if (isset($_GET['pageno'])) {
$pageno = $_GET['pageno'];
} else {
$pageno = 1;
}
$no_of_records_per_page = 5;
$offset = ($pageno-1) * $no_of_records_per_page;
$total_pages_sql = "SELECT COUNT(*) FROM tblposts";
$result = mysqli_query($con,$total_pages_sql);
$total_rows = mysqli_fetch_array($result, MYSQLI_NUM)[0];
$total_pages = ceil($total_rows / $no_of_records_per_page);
$query=mysqli_query($con,"select tblvideos.id as pid,tblvideos.PostTitle as posttitle,tblvideos.PostImage,tblcategory.CategoryName as category,tblcategory.id as cid,tblsubcategory.Subcategory as subcategory,tblvideos.PostDetails as postdetails,tblvideos.PostingDate as postingdate,tblvideos.PostUrl as url,tblvideos.File as file from tblvideos left join tblcategory on tblcategory.id=tblvideos.CategoryId left join tblsubcategory on tblsubcategory.SubCategoryId=tblvideos.SubCategoryId where tblvideos.Is_Active=1 order by tblvideos.id desc LIMIT $offset, $no_of_records_per_page");
while ($row=mysqli_fetch_array($query, MYSQLI_ASSOC)) {
$mpage = htmlentities($row['posttitle']);
?>
<div class="col-12 col-md-6 col-lg-4">
<div class="razo-single-post d-flex mb-30 wow fadeInUp" data-wow-delay="100ms">
<!-- Post Thumbnail -->
<div class="post-thumbnail">
<a href="video-detail?e-info=<?php echo $row['pid'];?>"><img style="height:70px; width:140px;" src="admin/postimages/<?php echo htmlentities($row['PostImage']);?>" alt="<?php echo htmlentities($row['posttitle']);?>"></a>
</div>
<!-- Post Content -->
<div class="post-content">
<div class="post-meta">
<a href="#"><i class="fa fa-comments-o" aria-hidden="true"></i> 2.1k</a>
<a href="#"><i class="fa fa-eye" aria-hidden="true"></i> <?php $count="SELECT * FROM tblpage_hits WHERE page='$mpage'";
$feedback=mysqli_query($con,$count) or die (((is_object($con))? mysqli_error($con) : (($___mysqli_res = mysqli_connect_error()) ?$___mysqli_res : true)));
if ($hit_row=mysqli_fetch_assoc($feedback)) {echo $hit_row['count'];} else {echo 0;} ?></a>
</div>
<a href="video-detail?e-info=<?php echo $row['pid'];?>" class="post-title"><?php echo htmlentities($row['posttitle']);?></a>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</section>
<!-- Trending Video Area End -->
<!-- App Download Area Start -->
<section class="razo-app-download-area section-padding-80-0 bg-img bg-overlay jarallax" style="background-image: url(img/bg-img/21.jpg);">
<div class="container">
<div class="row align-items-center">
<!-- App Thumbnail -->
<div class="col-12 col-md-6">
<div class="app-thumbnail mb-80">
<img src="img/bg-img/mockup-iphone.png" alt="">
</div>
</div>
<!-- App Download Text -->
<div class="col-12 col-md-6">
<div class="app-download-text mb-80">
<span>Download app and Enjoy radio & music</span>
<h2>Radio Music</h2>
<p>Radio app plus is a app that lets you download videos and music from social network, Youtube, etc. You may also download and play the latest HD series and movies, and also watch free live television. This app is also available for Android and Ios.</p>
<div class="app-download-btn">
<a href="#"><img src="img/core-img/google-play.png" alt=""></a>
<a href="#"><img src="img/core-img/app-store.png" alt=""></a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- App Download Area End -->
<!-- Weekly Sehedule Area Start -->
<section class="razo-weekly-schedule-area section-padding-80">
<div class="container">
<div class="row">
<div class="col-12">
<div class="weekly-schedule-table table-responsive">
<!-- Section Heading -->
<div class="col-12">
<div class="section-heading text-center">
<h2>E9ja Entertainment World</h2>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Weekly Sehedule Area End -->
<!-- Latest News Area Start -->
<section class="razo-latest-news-area section-padding-80 bg-overlay bg-img jarallax" style="background-image: url(img/bg-img/32.jpg);">
<div class="container">
<div class="row align-items-end">
<!-- Section Heading -->
<div class="col-sm-6">
<div class="section-heading white">
<h2>Blog New</h2>
</div>
</div>
<!-- Show All Button -->
<div class="col-sm-6">
<div class="show-all-button mb-50 text-right">
<a href="news" class="btn show-all-btn">Show All Blog Posts</a>
</div>
</div>
</div>
</div>
<!-- Razo Latest News Slide -->
<div class="razo-latest-news-slide owl-carousel">
<!-- Blog Post -->
<?php
if (isset($_GET['pageno'])) {
$pageno = $_GET['pageno'];
} else {
$pageno = 1;
}
$no_of_records_per_page = 8;
$offset = ($pageno-1) * $no_of_records_per_page;
$total_pages_sql = "SELECT COUNT(*) FROM tblnews";
$result = mysqli_query($con,$total_pages_sql);
$total_rows = mysqli_fetch_array($result, MYSQLI_NUM)[0];
$total_pages = ceil($total_rows / $no_of_records_per_page);
require_once('libs/functions.php');
$query=mysqli_query($con,"select tblposts.id as pid,tblposts.PostTitle as posttitle,tblposts.PostImage,tblcategory.CategoryName as category,tblcategory.id as cid,tblsubcategory.Subcategory as subcategory,tblposts.PostDetails as postdetails,tblposts.PostingDate as postingdate,tblposts.PostUrl as url from tblposts left join tblcategory on tblcategory.id=tblposts.CategoryId left join tblsubcategory on tblsubcategory.SubCategoryId=tblposts.SubCategoryId where tblposts.Is_Active=1 order by tblposts.id desc LIMIT $offset, $no_of_records_per_page");
while ($row=mysqli_fetch_array($query, MYSQLI_ASSOC)) {
?>
<!-- Single Latest News Area -->
<div class="razo-single-latest-news-area bg-overlay bg-img" style="background-image: url(admin/postimages/<?php echo htmlentities($row['PostImage']);?>);">
<!-- Post Content -->
<div class="post-content">
<a href="single-blog?e-blog=<?php echo htmlentities($row['url'])?>" class="post-title"><?php echo htmlentities($row['posttitle']);?></a>
<p><?php $pt=$row['postdetails']; echo (substr($pt,0,230));?><b>... ...</b></p>
</div>
<!-- Post Date -->
<div class="post-date">
<h2><?php echo htmlentities(str_replace("-","/",substr($row['postingdate'],6,4)));?></h2>
<p><?php echo htmlentities(substr($row['postingdate'],11,5));?></p>
</div>
<!-- Read More -->
<div class="read-more-btn">
<a href="single-news?e-news=<?php echo htmlentities($row['url'])?>" class="btn">Read More <i class="fa fa-angle-double-right" aria-hidden="true"></i></a>
</div>
</div>
<?php } ?>
</div>
</section>
<!-- Latest News Area End -->
<?php include('includes/footer.php'); ?>
</body>
</html>