D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
public_html
/
Filename :
events.php
back
Copy
<?php include 'includes/config.php'; $page_title; $page_title = ucfirst(basename(__FILE__, '.php')); if ($page_title === 'index') { $page_title = 'Home'; } $page_title = "Events"; 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"> <div class="containter text-center"> <!-- Section: Team --> <section id="team"> <div class="container"> <div class="row mtli-row-clearfix mb-5000"> <section class="bg-silver-light"> <div class="container"> <div class="section-title"> <div class="row"> <div class="col-md-8"> <div class="mb-60"> <div class="tm-sc tm-sc-section-title section-title"> <div class="title-wrapper"> <h2 class="text-uppercase line-bottom line-bottom-theme-colored1">Latest <span class="text-theme-colored1">Events</span></h2> </div> </div> </div> </div> </div> </div> <div class="section-content"> <div class="row"> <?php $query = "SELECT * FROM events WHERE type='events' ORDER BY id DESC "; $query_run = mysqli_query($con, $query); while ($row_post = mysqli_fetch_array($query_run)) { $id = $row_post['id']; $title = $row_post['title']; $content = substr($row_post['content'],0,100); $image = $row_post['image']; $date = date('d', strtotime($row_post['date'])); $month = date('M', strtotime($row_post['date'])); $time = date('H:i:s', strtotime($row_post['time'])) ?> <div class="col-sm-12 col-md-6 col-lg-4 col-xl-4"> <div class="tm-sc tm-sc-blog tm-sc-blog-masonry blog-style1-current-theme mb-lg-30"> <article class="post"> <div class="entry-header"> <div class="post-thumb"> <div class="post-thumb-inner"> <div class="thumb"> <img class="w-100" src="<?= $image ?>" alt="Image"></div> </div> </div> </div> <div class="entry-content"> <div class="clearfix mb-15"> <div class="entry-date media-left text-center"> <ul> <li class="font-16 text-white font-weight-600 border-bottom"><?= $date ?></li> <li class="font-12 text-white text-uppercase border-bottom"><?= $month ?></li> <li class="font-12 text-white text-uppercase"><?= $time ?></li> </ul> </div> <div class="overflow-hidden"> <h5 class="entry-title"><a href="#" rel="bookmark"><?= $title ?></a></h5> <div class="blog-meta"> <span class="admin-type mr-10"> <i class="far fa-user-circle text-theme-colored1"></i> Admin </span> <span class="comments-type"> <i class="far fa-comments text-theme-colored1"></i> 2 Comments </span> </div> </div> </div> <p class="mb-15"><?= $content ?></p> <a href="event_details?id=<?=$id ?>" target="_self" class="btn-plain-text-with-arrow"> Read More </a> <div class="clearfix"></div> </div> </article> </div> </div> <?php } ?> </div> </div> </div> </section> </div> </div> </section> </div> <!-- end main-content --> <?php include_once 'section/footer.php'; ?>