Upload New File

parent 88835ab3
<?php
session_start();
include('../config.php');
include("template/header.php");
include("../common/function.php");
open_page("Index");
if(! isset($_SESSION['is_login']))
{
header('location:../index.php');
}
if (!isset($_SESSION["username"])){
// echo "<script>alert('Login terlebih dahulu');window.location='../index.php';</script>";
// exit;
echo "Anda harus login dulu <br><a href='../index.php'>Klik disini</a>";
exit;
}
$role = $_SESSION["role"];
if($role != "admin"){
echo "<script>alert('Anda bukan admin');window.location='../index.php';</script>";
exit;
}
$id_akun = $_SESSION["id_akun"];
$nama = $_SESSION["nama"];
$username = $_SESSION["username"];
?>
<!-- ======= Hero Section ======= -->
<section id="hero">
<div id="heroCarousel" class="carousel slide carousel-fade" data-ride="carousel">
<ol class="carousel-indicators" id="hero-carousel-indicators"></ol>
<div class="carousel-inner" role="listbox">
<!-- Slide 1 -->
<div class="carousel-item active" style="background-image: url(<?=BASEURL?>public/img/view.jpg)">
<div class="carousel-container">
<div class="container">
<h2 class="animate__animated animate__fadeInDown">Welcome to <span>Travel <img src="<?= BASEURL; ?>public/img/logo4.png" alt="" width="75px;">K!</span></h2>
<p class="animate__animated animate__fadeInUp">Halo! <?= $_SESSION["nama"]?></p>
<a href="destinasi_admin.php" class="btn-get-started animate__animated animate__fadeInUp scrollto">Read More</a>
</div>
</div>
</div>
<!-- Slide 2 -->
<div class="carousel-item" style="background-image: url(<?=BASEURL?>public/img/slide1.jpg)">
<div class="carousel-container">
<div class="container">
<h2 class="animate__animated animate__fadeInDown">Udara <img src="<?= BASEURL; ?>public/img/logo4.png" alt="" width="75px;">K!</h2>
<p class="animate__animated animate__fadeInUp">Ut velit est quam dolor ad a aliquid qui aliquid. Sequi ea ut et est quaerat sequi nihil ut aliquam. Occaecati alias dolorem mollitia ut. Similique ea voluptatem. Esse doloremque accusamus repellendus deleniti vel. Minus et tempore modi architecto.</p>
<a href="transportasi_admin.php" class="btn-get-started animate__animated animate__fadeInUp scrollto">Read More</a>
</div>
</div>
</div>
<!-- Slide 3 -->
<div class="carousel-item" style="background-image: url(<?=BASEURL?>public/img/slide2.jpg)">
<div class="carousel-container">
<div class="container">
<h2 class="animate__animated animate__fadeInDown">Darat <img src="<?= BASEURL; ?>public/img/logo4.png" alt="" width="75px;">K!</h2>
<p class="animate__animated animate__fadeInUp">Ut velit est quam dolor ad a aliquid qui aliquid. Sequi ea ut et est quaerat sequi nihil ut aliquam. Occaecati alias dolorem mollitia ut. Similique ea voluptatem. Esse doloremque accusamus repellendus deleniti vel. Minus et tempore modi architecto.</p>
<a href="transportasi_admin.php" class="btn-get-started animate__animated animate__fadeInUp scrollto">Read More</a>
</div>
</div>
</div>
<!-- Slide 3 -->
<div class="carousel-item" style="background-image: url(<?=BASEURL?>public/img/slide3.jpg)">
<div class="carousel-container">
<div class="container">
<h2 class="animate__animated animate__fadeInDown">Laut <img src="<?= BASEURL; ?>public/img/logo4.png" alt="" width="75px;">K!</h2>
<p class="animate__animated animate__fadeInUp">Ut velit est quam dolor ad a aliquid qui aliquid. Sequi ea ut et est quaerat sequi nihil ut aliquam. Occaecati alias dolorem mollitia ut. Similique ea voluptatem. Esse doloremque accusamus repellendus deleniti vel. Minus et tempore modi architecto.</p>
<a href="transportasi_admin.php" class="btn-get-started animate__animated animate__fadeInUp scrollto">Read More</a>
</div>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#heroCarousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon icofont-simple-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#heroCarousel" role="button" data-slide="next">
<span class="carousel-control-next-icon icofont-simple-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</section><!-- End Hero -->
<?php
include("template/footer.php")
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment