D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
public_html
/
Filename :
index.php
back
Copy
<?php session_start(); if (isset($_POST['username']) && isset($_POST['password'])) { $manager = $_POST['username']; $password = $_POST['password']; include 'includes/config.php'; $cmem = "SELECT id FROM auth WHERE username='$manager' AND password='$password' LIMIT 1"; $run_cmem = mysqli_query($con, $cmem); $count_mem = mysqli_num_rows($run_cmem); if ($count_mem == 1) { while ($row = mysqli_fetch_array($run_cmem)) { $id = $row['id']; } $_SESSION['id'] = $id; $_SESSION['manager'] = $manager; $_SESSION['password'] = $password; header('location: mod-auth'); exit(); } else { echo "<script>alert('Incorrect Password !!!')</script>"; echo "<script>window.open('admin-auth','_self')</script>"; exit(); } } ?> <?php $page_title = basename(__FILE__, '.php'); if ($page_title === 'index') { $page_title = 'Home'; } else { return $page_title; } ?> <!DOCTYPE html> <html lang="en"> <?php include_once 'section/header.php'; ?> <?php include_once 'section/home-page-slider.php'; ?> <!-- Section: About --> <section class="" style="margin-bottom: 0px;"> <div class="container" style="margin-bottom: 0px;"> <div class="section-content"> <div class="containter text-center"> <h2 class="text-uppercase mt-0 mb-0"> <strong> WELCOME TO DOMINICAN INSTITUTE IBADAN NIGERIA </strong> </h2> </div> <br><br> <div class="row"> <?php $query = "SELECT * FROM content WHERE id='1' "; $query_run = mysqli_query($con, $query); while ($row_post = mysqli_fetch_array($query_run)) { $title = $row_post['title']; $link = $row_post['link']; $image = $row_post['photo']; $contenter = substr($row_post['content'],0,800); } ?> <div class="col-md-12 col-lg-6 col-xl-6"> <h4 class="line-bottom line-bottom-theme-colored1">Dominican Institute</h4> <?= $contenter; ?>...<a href="history">Read More</a> </div> <div class="col-md-12 col-lg-6 col-xl-6"> <div class="box-hover-effect tm-sc-video-popup tm-sc-video-popup-button-over-image"> <div class="effect-wrapper"> <div class="thumb"> <img class="w-100" src="<?= $image; ?>" alt=""> </div> <!-- <div class="animated-css-play-button"><span class="play-icon"><i class="fa fa-play"></i></span></div> --> <!-- <a class="hover-link" data-lightbox-gallery="youtube-video" href="https://www.youtube.com/watch?v=xcJtL7QggTI" title=""></a> --> <!-- <a class="hover-link" data-lightbox-gallery="youtube-video" href="<//?=$link; ?>" title=""></a> --> </div> </div> </div> </div> </div> </div> </section> <!-- Section: Staff --> <section> <div class="container" style="margin-bottom: 0px;"> <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"> <span class="text-theme-colored1">Principal Staffs</span></h2> </div> </div> </div> </div> </div> </div> <div class="section-content"> <div class="row"> <?php $query = "SELECT * FROM staff WHERE category='principal'"; $query_run = mysqli_query($con, $query); while ($row_post = mysqli_fetch_array($query_run)) { $title = $row_post['title']; $name = $row_post['name']; $image = $row_post['image']; ?> <div class="col-sm-12 col-md-6 col-lg-4 col-xl-3"> <div class="staff-item mb-lg-40"> <div class="staff-thumb"> <img alt="img" src="<?= $image ?>" class="w-100"> </div> <div class="staff-content"> <h4 class="staff-name text-theme-colored1 mt-0"><?= $title ?> <small></small></h4> <p class="mb-20"><?= $name ?></p> <div class="staff-social-part"> <!-- <ul class="styled-icons icon-dark icon-theme-colored2 icon-sm icon-circled float-start mt-10"> <li><a class="social-link" href="#"><i class="fab fa-facebook"></i></a></li> <li><a class="social-link" href="#"><i class="fab fa-twitter"></i></a></li> <li><a class="social-link" href="#"><i class="fab fa-youtube"></i></a></li> </ul> --> <a class="btn btn-dark btn-xs p-10 float-start" href="principal-officers">view details</a> </div> </div> </div> </div> <?php } ?> </div> </div> </div> </section> <!-- Section: News --> <section class="bg-silver-light"> <div class="container" style="margin-bottom: 0px;"> <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">News</span></h2> </div> </div> </div> </div> </div> </div> <div class="section-content"> <div class="row"> <?php $query = "SELECT * FROM events ORDER BY id DESC LIMIT 3 "; $query_run = mysqli_query($con, $query); while ($row_post = mysqli_fetch_array($query_run)) { $title = $row_post['title']; $id = $row_post['id']; $content = substr($row_post['content'],0,100); $image = $row_post['image']; $date = date('d', strtotime($row_post['data_added'])); $month = date('M', strtotime($row_post['data_added'])); ?> <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"><?= $month ?></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="news_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> <!-- Gallery Grid 3 --> <section class="bg-silver-light"> <div class="container" style="margin-bottom: 0px;"> <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">Our <span class="text-theme-colored1">Gallery</span></h2> </div> </div> </div> </div> </div> </div> <div class="section-content"> <div class="row"> <div class="col-md-12"> <div class="tm-sc-gallery tm-sc-gallery-grid gallery-style1-current-theme"> <!-- Isotope Filter --> <div class="isotope-layout-filter filter-style-4 cat-filter-default" data-link-with="gallery-holder-618422"> <a href="#" class="active" data-filter="*">All</a> <a href="#" class="" data-filter=".photos">Event</a> <a href="#" class="" data-filter=".campus">Campus</a> <a href="#" class="" data-filter=".student">Student</a> </div> <!-- End Isotope Filter --> <!-- Isotope Gallery Grid --> <div id="gallery-holder-618422" class="isotope-layout grid-4 gutter-5 clearfix lightgallery-lightbox"> <div class="isotope-layout-inner"> <!-- Isotope Item Start --> <?php $query = "SELECT * FROM gallery"; $query_run = mysqli_query($con, $query); while ($row_post = mysqli_fetch_array($query_run)) { $image = $row_post['photo']; ?> <div class="isotope-item *"> <div class="isotope-item-inner"> <div class="tm-gallery"> <div class="tm-gallery-inner"> <div class="thumb"> <a href="#"> <img width="672" height="448" src="<?= $image ?>" class="" alt="" /> </a> </div> <div class="tm-gallery-content-wrapper"> <div class="tm-gallery-content"> <div class="tm-gallery-content-inner"> <div class="icons-holder-inner"> <div class="styled-icons icon-dark icon-circled icon-theme-colored1"> <a class="lightgallery-trigger styled-icons-item" data-exthumbimage="<?= $image ?>" data-src="<?= $image ?>" title="Gallery 1" href="<?= $image ?>"><i class="fa fa-plus"></i></a> <a class="styled-icons-item" title="Gallery 1" href="#"><i class="fa fa-link"></i></a> </div> </div> <div class="title-holder"> <h5 class="title"><a href="#"></a></h5> </div> </div> </div> </div> </div> </div> </div> </div> <?php } ?> <!-- Isotope Item End --> <!-- Isotope Item Start --> <?php $query = "SELECT * FROM gallery where type='campus' "; $query_run = mysqli_query($con, $query); while ($row_post = mysqli_fetch_array($query_run)) { $image = $row_post['photo']; ?> <div class="isotope-item campus"> <div class="isotope-item-inner"> <div class="tm-gallery"> <div class="tm-gallery-inner"> <div class="thumb"> <a href="#"> <img width="672" height="448" src="<?= $image ?>" class="" alt="" /> </a> </div> <div class="tm-gallery-content-wrapper"> <div class="tm-gallery-content"> <div class="tm-gallery-content-inner"> <div class="icons-holder-inner"> <div class="styled-icons icon-dark icon-circled icon-theme-colored1"> <a class="lightgallery-trigger styled-icons-item" data-exthumbimage="<?= $image ?>" data-src="<?= $image ?>" title="Gallery 2" href="<?= $image ?>"><i class="fa fa-plus"></i></a> <a class="styled-icons-item" title="Gallery 2" href="#"><i class="fa fa-link"></i></a> </div> </div> <div class="title-holder"> <h5 class="title"><a href="#"></a></h5> </div> </div> </div> </div> </div> </div> </div> </div> <?php } ?> <!-- Isotope Item End --> <!-- Isotope Item Start --> <?php $query = "SELECT * FROM gallery where type='students' "; $query_run = mysqli_query($con, $query); while ($row_post = mysqli_fetch_array($query_run)) { $image = $row_post['photo']; ?> <div class="isotope-item student"> <div class="isotope-item-inner"> <div class="tm-gallery"> <div class="tm-gallery-inner"> <div class="thumb"> <a href="#"> <img width="672" height="448" src="<?= $image ?>" class="" alt="" /> </a> </div> <div class="tm-gallery-content-wrapper"> <div class="tm-gallery-content"> <div class="tm-gallery-content-inner"> <div class="icons-holder-inner"> <div class="styled-icons icon-dark icon-circled icon-theme-colored1"> <a class="lightgallery-trigger styled-icons-item" data-exthumbimage="<?= $image ?>" data-src="<?= $image ?>" title="Gallery 3" href="<?= $image ?>"><i class="fa fa-plus"></i></a> <a class="styled-icons-item" title="Gallery 3" href="#"><i class="fa fa-link"></i></a> </div> </div> <div class="title-holder"> <h5 class="title"><a href="#"></a></h5> </div> </div> </div> </div> </div> </div> </div> </div> <?php } ?> <!-- Isotope Item End --> <!-- Isotope Item Start --> <?php $query = "SELECT * FROM gallery where type='event' "; $query_run = mysqli_query($con, $query); while ($row_post = mysqli_fetch_array($query_run)) { $image = $row_post['photo']; ?> <div class="isotope-item photos"> <div class="isotope-item-inner"> <div class="tm-gallery"> <div class="tm-gallery-inner"> <div class="thumb"> <a href="#"> <img width="672" height="448" src="<?= $image ?>" class="" alt="" /> </a> </div> <div class="tm-gallery-content-wrapper"> <div class="tm-gallery-content"> <div class="tm-gallery-content-inner"> <div class="icons-holder-inner"> <div class="styled-icons icon-dark icon-circled icon-theme-colored1"> <a class="lightgallery-trigger styled-icons-item" data-exthumbimage="<?= $image ?>" data-src="<?= $image ?>" title="Gallery 2" href="<?= $image ?>"><i class="fa fa-plus"></i></a> <a class="styled-icons-item" title="Gallery 2" href="#"><i class="fa fa-link"></i></a> </div> </div> <div class="title-holder"> <h5 class="title"><a href="#"></a></h5> </div> </div> </div> </div> </div> </div> </div> </div> <?php } ?> <!-- Isotope Item End --> <!-- Isotope Item Start --> <!-- Isotope Item End --> <!-- Isotope Item Start --> <!-- Isotope Item End --> <!-- Isotope Item Start --> <!-- Isotope Item End --> </div> </div> <!-- End Isotope Gallery Grid --> </div> </div> </div> </div> </div> </section> <!-- Start Divider --> <!-- <section class="bg-theme-colored1"> <div class="container pt-15 pb-15"> <div class="section-content"> <div class="row"> <div class="col-sm-12"> <div class="tm-sc tm-sc-clients tm-sc-clients-carousel owl-dots-light-skin owl-dots-center"> <div class="owl-carousel owl-theme tm-owl-carousel-6col" data-autoplay="true" data-loop="true" data-duration="6000" data-smartspeed="300" data-margin="30" data-stagepadding="0" data-laptop="4"> <div class="item"> <a target="_blank" href="#"> <img src='images/clients/w1.png' alt='Image' /> </a></div> <div class="item"> <a target="_blank" href="#"> <img src='images/clients/w2.png' alt='Image' /> </a></div> <div class="item"> <a target="_blank" href="#"> <img src='images/clients/w3.png' alt='Image' /> </a></div> <div class="item"> <a target="_blank" href="#"> <img src='images/clients/w4.png' alt='Image' /> </a></div> <div class="item"> <a target="_blank" href="#"> <img src='images/clients/w5.png' alt='Image' /> </a></div> <div class="item"> <a target="_blank" href="#"> <img src='images/clients/w6.png' alt='Image' /> </a></div> </div> </div> </div> </div> </div> </div> </section> --> </div> <?php include_once 'section/footer.php'; ?>