D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
public_html
/
Filename :
event_details.php
back
Copy
<?php include 'includes/config.php'; $id = $_GET['id']; $query = "SELECT * FROM events WHERE id='$id' "; $query_run = mysqli_query($con, $query); while ($row_post = mysqli_fetch_array($query_run)) { $title = $row_post['title']; $image = $row_post['image']; $contenter = $row_post['content']; $date = date('Y/m/d', strtotime($row_post['date'])); $time = date('H:i:s', strtotime($row_post['time'])); } ?> <?php $page_title; $page_title = ucfirst(basename(__FILE__, '.php')); if ($page_title === 'index') { $page_title = 'Home'; } $page_title = $title; include 'section/header.php'; include 'section/pages-header.php'; include 'includes/functions.php'; $Functions = new Functions(); ?> <!DOCTYPE html> <html dir="ltr" lang="en"> <!-- Start main-content --> <div class="main-content"> <section class="bg-theme-colored1"> <div class="container pt-40 pb-40"> <div class="row text-center"> <div class="col-md-12"> <h2 id="basic-coupon-clock" class="text-white"></h2> <!-- Final Countdown Timer Script --> <script> (function($) { $('#basic-coupon-clock').countdown('<?= $date ?>', function(event) { $(this).html(event.strftime('%D days %H:%M:%S')); }); })(jQuery); </script> </div> </div> </div> </section> <section> <div class="container"> <div class="row"> <div class="col-md-4"> <ul class="list-style-none"> <li> <h5>Topics:</h5> <h2><?= $title ?></h2> </li> <li> <h5>Host:</h5> <h3>Sacred Heart. </h3> </li> <li> <h5>Date:</h5> <h3><?= $date ?></h3> </li> <li> <h5>Time:</h5> <h3><?= $time ?></h3> </li> <!-- <li> <h5>Share:</h5> <div class="styled-icons icon-sm icon-gray icon-circled"> <a href="#"><i class="fab fa-facebook"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> <a href="#"><i class="fab fa-instagram"></i></a> <a href="#"><i class="fab fa-google-plus"></i></a> </div> </li> --> </ul> </div> <div class="col-md-8"> <div class="tm-owl-carousel-1col" data-nav="true"> <div class="item"><img src="<?= $image ?>" alt="images"></div> </div> </div> </div> <div class="row mt-60"> <div class="col-md-12"> <h4 class="mt-0">Event Description</h4> <p><?= $contenter ?></p> </div> </div> </div> </section> <!-- end main-content --> <?php include_once 'section/footer.php'; ?>