PK

ADDRLIN : /home/questend/public_html/domains/rwa40.com/
FLL :
Current File : /home/questend/public_html/domains/rwa40.com/news-event.php

<?php
   ob_start();
   //error_reporting(E_ALL ^ E_NOTICE);
   @session_start();
   ini_set('allow_url_include',1);    
   date_default_timezone_set("Asia/Kolkata");
   set_time_limit(600);
   ini_set('max_execution_time',600);
   include 'admin/includes/settings/constant.php';
   //include '../includes/settings/db.php';
   require_once 'admin/includes/settings/PDODB.php';
   include 'admin/includes/modules/functions.php';
   
   $function = new FUNCTIONS();
   $news = $function->getLatestnews(NULL,1);
   $upcoming = $function->getUpcomingPastEvent($id=NULL,$isactive=1,$orderBy='DESC');
   //$past = $function->getPastevent(NULL,1);
   
   //print_r($upcoming); //exit;
?>
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
      <meta name="description" content="">
      <meta name="author" content="">
      <title>RWA Sectore 40 Noida</title>
      <!-- Bootstrap core CSS -->
      <link href="vendor/bootstrap/css/bootstrap.css" rel="stylesheet">
      <!-- Custom styles for this template -->
      <link href="css/noida40.css" rel="stylesheet">
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
      <link href="css/bootstrap-dropdownhover.css" rel="stylesheet">
      <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
   </head>
   <body>
      <?php include_once 'header.php'; ?>
      <!-- banner -->
        <header class="bg-info text-center py-5 mb-4">
          <div class="container">
            <h1 class="font-weight-light text-white heading">News &amp; Events</h1>
          </div>
        </header>
      <!--end banner -->
      <!-- Page Content -->
      <!-- <div class="container-fluid"> -->

          <!--Latest News section-->
          <?php if (!empty($news)) { ?>
          <div class="container news-event-blog">
              <h2><a name="latest"><span>Latest</span> News</a></h2>
              <?php foreach ($news as $row) { ?>
                  <div class="row justify-content-center mx-2 mb-3">
                      <div class="card" style="flex-direction: unset!important;">
                          <div class="col-md-3 col-12 p-0">
                              <img src="admin/uploads/latest-news/<?= $row['file']; ?>" class="img-fluid" alt="Image">
                          </div>
                          <div class="card-body col-md-9 col-12">
                              <h5 class="card-title"><?= html_entity_decode($row['title']); ?></h5>
                              <span class="text-secondary">
                                  <i class="fa fa-calendar"></i>
                                  <?= date('l, jS F Y', strtotime($row['news_date'])); ?>
                              </span>
                              <p class="card-text"><?= html_entity_decode($row['descripation']); ?></p>
                          </div>
                      </div>
                  </div>
              <?php } ?>
          </div>
          <?php } ?>
          <!--end Latest News section-->

          <!--upcomming section-->
          <?php
          $now = new DateTime();
          $hasUpcoming = false;

          foreach ($upcoming as $u) {
              if (new DateTime($u['news_date']) > $now) {
                  $hasUpcoming = true;
                  break;
              }
          }
          ?>

          <?php if ($hasUpcoming) { ?>
          <div class="container-fluid" style="background-color:#eaeaea; padding:1px;">
              <div class="container news-event-blog">
                  <h2><a name="upcomming"><span>Upcoming</span> Events</a></h2>

                  <?php foreach ($upcoming as $row) {
                      if (new DateTime($row['news_date']) > $now) { ?>
                          <div class="row justify-content-center mx-2 mb-3">
                              <div class="card" style="flex-direction: unset!important;">
                                  <div class="col-md-3 col-12 p-0">
                                      <img src="admin/uploads/upcoming-event/<?= $row['file']; ?>" class="img-fluid" alt="Image">
                                  </div>
                                  <div class="card-body col-md-9 col-12">
                                      <h5 class="card-title"><?= html_entity_decode($row['title']); ?></h5>
                                      <span class="text-secondary">
                                          <i class="fa fa-calendar"></i>
                                          <?= date('l, jS F Y', strtotime($row['news_date'])); ?>
                                      </span>
                                      <p class="card-text"><?= html_entity_decode($row['descripation']); ?></p>
                                  </div>
                              </div>
                          </div>
                  <?php } } ?>
              </div>
          </div>
          <?php } ?>
          <!--end upcomming section-->

          <!--past events section-->
          <?php
          $hasPast = false;

          foreach ($upcoming as $u) {
              if (new DateTime($u['news_date']) < $now) {
                  $hasPast = true;
                  break;
              }
          }
          ?>

          <?php if ($hasPast) { ?>
          <div class="container news-event-blog">
              <h2><a name="past-event"><span>Past</span> Events</a></h2>

              <?php foreach ($upcoming as $row) {
                  if (new DateTime($row['news_date']) < $now) { ?>
                      <div class="row justify-content-center mx-2 mb-3">
                          <div class="card" style="flex-direction: unset!important;">
                              <div class="col-md-3 col-12 p-0">
                                  <img src="admin/uploads/upcoming-event/<?= $row['file']; ?>" class="img-fluid" alt="Image">
                              </div>
                              <div class="card-body col-md-9 col-12">
                                  <h5 class="card-title"><?= html_entity_decode($row['title']); ?></h5>
                                  <span class="text-secondary">
                                    <i class="fa fa-calendar"></i>
                                    <?= date('l, jS F Y', strtotime($row['news_date'])); ?>
                                  </span>
                                  <p class="card-text"><?= html_entity_decode($row['descripation']); ?></p>
                                  <?php if (!empty($row['gallery_link'])) {
                                    $urlTitle = strtolower(trim($row['gallery_link']));
                                    $urlTitle = str_replace(' ', '-', $urlTitle);
                                  ?>
                                  <a class="btn btn-warning" href="gallery-images/<?= urlencode($urlTitle); ?>">View photo gallery</a>
                                  <?php } ?>
                              </div>
                          </div>
                      </div>
              <?php } } ?>
          </div>
          <?php } ?>
          <!--end past events section-->

      <!-- </div> -->
      <!-- end Page Content -->
      <!-- Footer -->
      <?php include_once'footer.php';?>
      <!-- End Footer -->
      <?php include_once'login.php';?>
      <!-- Bootstrap core JavaScript -->
      <script src="vendor/jquery/jquery.min.js"></script>
      <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
      <script src="js/bootstrap-4-hover-navbar.js"></script>
      
      <script src="js/jquery.form-validator.min.js"></script>
      <script type="text/javascript">     
        $("#addmember").validate({
          rules: {
              username: {
                  required: true
              },                         
              password: {
                  required: true
              }
          },
          messages: {
              username: {
                  required: "Please enter Username"
              },                          
              mobile: {
                  required: "Please enter Password"
              }         
          },
          submitHandler: function(form) {           
             
              form.submit();
             
          }   
        });
      </script>
   </body>
</html>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home