ok
Direktori : /proc/thread-self/root/home2/selectio/public_html/tnpsctestbatch.com/ |
Current File : //proc/thread-self/root/home2/selectio/public_html/tnpsctestbatch.com/blog.php |
<?php include 'header.php'; $quey_blog = $pdo->prepare("SELECT * FROM tbl_blog WHERE status=1"); $quey_blog->execute(); $result_blog = $quey_blog->fetchAll(PDO::FETCH_ASSOC); $blog_total=$quey_blog->rowCount(); ?> <!-- CONTENT START --> <div class="page-content"> <!-- INNER PAGE BANNER --> <div class="wt-bnr-inr overlay-wraper bg-center" style="background-image:url(images/banner/1.jpg);"> <div class="overlay-main site-bg-white opacity-01"></div> <div class="container"> <div class="wt-bnr-inr-entry"> <div class="banner-title-outer"> <div class="banner-title-name"> <h2 class="wt-title">Blog List </h2> </div> </div> <!-- BREADCRUMB ROW --> <div> <ul class="wt-breadcrumb breadcrumb-style-2"> <li><a href="#">Home </a></li> <li>Blog List </li> </ul> </div> <!-- BREADCRUMB ROW END --> </div> </div> </div> <!-- INNER PAGE BANNER END --> <!-- OUR BLOG START --> <div class="section-full p-t120 p-b90 site-bg-white"> <div class="container"> <div class="row"> <div class="col-lg-8 col-md-12"> <?php if($blog_total > 0){ foreach($result_blog as $result_blog_dats){ ?> <!--Block one--> <div class="blog-post twm-blog-post-1-outer twm-blog-list-style"> <div class="wt-post-media"> <a href="#"><img src="admin/<?= $result_blog_dats['thumpnail_image'] ?>" alt="" /></a> </div> <div class="wt-post-info"> <div class="wt-post-title "> <h4 class="post-title"> <a href="#"><?= $result_blog_dats['heading'] ?></a> </h4> </div> <!-- <div class="wt-post-meta "> <ul> <?php $yrdata= strtotime( $result_blog_dats['date']); ?> <li class="post-date"><?= date('M-Y', $yrdata) ?></li> <li class="post-author">by <?= $result_blog_dats['name'] ?></li> </ul> </div>--> <div class="wt-post-text "> <p> <a href="#"><?= $result_blog_dats['tag_line'] ?></a> </p> </div> <div class="wt-post-readmore "> <a href="view_blog.php?blog_id=<?= $result_blog_dats['id'] ?>" class="site-button-link site-text-primary">Read More </a> </div> </div> </div> <?php } }else{ echo 'No Records Found'; } ?> <!--<div class="pagination-outer">--> <!-- <div class="pagination-style1">--> <!-- <ul class="clearfix">--> <!-- <li class="prev"><a href="javascript:;"><span> <i class="fa fa-angle-left"></i> </span></a></li>--> <!-- <li><a href="javascript:;">1 </a></li>--> <!-- <li class="active"><a href="javascript:;">2 </a></li>--> <!-- <li><a href="javascript:;">3 </a></li>--> <!-- <li><a class="javascript:;" href="javascript:;"><i class="fa fa-ellipsis-h"></i></a></li>--> <!-- <li><a href="javascript:;">5 </a></li>--> <!-- <li class="next"><a href="javascript:;"><span> <i class="fa fa-angle-right"></i> </span></a></li>--> <!-- </ul>--> <!-- </div>--> <!--</div>--> </div> <div class="col-lg-4 col-md-12 rightSidebar"> <div class="widget recent-posts-entry"> <h4 class="section-head-small mb-4">Recent Article </h4> <div class="section-content"> <div class="widget-post-bx"> <?php // $blog_id = $_GET['blog_id']; $recent_artical = $pdo->prepare("SELECT * FROM tbl_blog WHERE status=1 AND type=1"); $recent_artical->execute(); $result_artical = $recent_artical->fetchAll(PDO::FETCH_ASSOC); $blog_artical=$recent_artical->rowCount(); if($blog_artical > 0){ foreach( $result_artical as $result_artical){ ?> <div class="widget-post clearfix"> <div class="wt-post-media"> <img src="admin/<?= $result_artical['thumpnail_image'] ?>" alt="" /> </div> <div class="wt-post-info"> <div class="wt-post-header"> <span class="post-title"> <a href="view_blog.php?blog_id=<?= $result_blog_dats['id'] ?>"><?= $result_artical['heading'] ?></a> </span> </div> </div> </div> <?php } }else{ echo 'No Recent Article'; } ?> </div> </div> </div> </div> </div> </div> </div> <!-- OUR BLOG END --> </div> <!-- CONTENT END --> <?php include 'footer.php'; ?>