MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.142.43.244
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/gudduguesthouse.com/../agarsarbharat.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/gudduguesthouse.com/../agarsarbharat.com/news-articles.php
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>News & Article Page</title>
     <?php include "top-links.php";?>
</head>

<body>

    <?php include "header.php";?>

    <section class="inner-header divider layer-overlay overlay-dark-6" data-bg-img="<?php echo $wspath;?>img/breadcrumbs.jpg" style="background-image: url('img/breadcrumbs.jpg'); background-position: center; background-size: cover;">
        <div class="container pt-120 pb-60">
          <div class="section-content">
            <div class="row"> 
              <div class="col-md-6 p-4">
                <h2 class="text-theme-colored2 font-36">News & Articles</h2>
                <ol class="breadcrumb text-left mt-10 white">
                  <li ><a href="<?php echo $wspath;?>" class="mr-4">Home </a></li> <span> | </span><li class="active"><a href="<?= $wspath ?>news-articles.php">News & Articles</a></li> 
                </ol>
              </div>
            </div>
          </div>
        </div>
    </section>
  
    <?php include "home-marquee.php";?>

    <!-- about section  -->

    <section id="update">
        <div class="container">
            <h2 class="mhead text-center">News & Articles</h2>
            <div class="row py-4">
                <?php
                    $sqlnews = "SELECT * FROM tbl_blog WHERE blog_status='Active' AND pages='News' ORDER BY `b_id` DESC";
                    $runnews = mysqli_query($db,$sqlnews) or die("Query Not run");
                    $count=0;
                    while($datanews = mysqli_fetch_assoc($runnews)){
                    if(mysqli_num_rows($runnews) > 0){
                    $count++;
                    $dateString=$datanews['date'];
                    $timestamp = strtotime($dateString);
                    $formattedDate = date("d-M-Y", $timestamp);
                ?>
                
                <div class="col-lg-4">
                    <div class="card" style="box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22); margin-bottom:10px;">
                        <img src="<?php echo $wspath;?>admin/images/property-image/<?php echo $datanews['image'];?>" class="img-fluid rounded-start w-100" style="height:200px;" alt="<?php echo $datanews['title'];?>">
                                      <hr>
                        <div class="card-body">
                            <div class="news-details">
                                <ul>
                                    <li>
                                         <i class="fa-solid fa-user"></i>
                                         Admin
                                    </li>
                                    <li>
                                         <i class="fa-solid fa-calendar-days"></i>
                                        <?php echo $datanews['date'];?>
                                    </li> 
                                </ul>
                             </div>
                            <h5 class="card-title"><?php echo $datanews['title'];?></h5>
                            <p class="card-text"><?php echo substr($datanews['short_description'],0,100);?> ...<a href="<?php echo $wspath ?>detail<?php echo $datanews['slug_link']?>.html">read more</a></p>
                        </div>
                    </div>
                </div>
                <?php } } ?>
                
            </div>
        </div>
    </section>
    
     <?php include "footer.php";?>

MMCT - 2023