<file_sep><?php namespace App\Controllers;

class Detail_Kapal extends BaseController
{
	public function index()
	{
		return view('Detail_Kapal');
	}

	//--------------------------------------------------------------------

}<file_sep><?php namespace App\Controllers;

use App\Models\TiketModel;

class Edit_Tiket extends BaseController
{
	// public function index()
	// {
	// 	return view('edit_tiket');
	// }

	public function edit($id)
	{
		$model = new TiketModel();
		$data = $model->find($id);
		return view("edit_tiket", ["data" => $data]);
	}

	//--------------------------------------------------------------------

}<file_sep><?php namespace App\Controllers;

class Bayar extends BaseController
{
	public function index()
	{
		return view('bayar');
	}

	//--------------------------------------------------------------------

}<file_sep><?php echo $this->include('User/header'); ?>
<?= $this->renderSection('content'); ?>
<?php echo $this->include('User/footer'); ?><file_sep><?= $this->extend('user/template'); ?>
<?= $this->section('content'); ?>
<div class="buttom"> 
<h1>TIKET TRAVEL</h1>
<span>Cek Dan Pesan Tiket Anda Disini</span>
<br>
</div>
<ul class="nav nav-tabs">
    <li class="nav-item">
    <a class="nav-link disabled" href="home" tabindex="-1" aria-disabled="true">Pesawat</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="detail_kereta" tabindex="-1" aria-disabled="true">Kereta</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="detail_kapal" tabindex="-1" aria-disabled="true">Kapal</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="detail_bus" tabindex="-1" aria-disabled="true">Bus</a>
  </li>
   <li class="nav-item">
    <a class="nav-link disabled" href="auth/login" tabindex="-1" aria-disabled="true">Login</a>
  </li>
  </li>
   <li class="nav-item">
    <a class="nav-link disabled" href="auth/register" tabindex="-1" aria-disabled="true">Register</a>
  </li>
</ul>

<div class="jumbotron">
<div class="container">
  <table class="table table-bordered">
  <thead>
    <tr bgcolor="#8e8eff">
      <th scope="col">Konfirmasi Pembayaran</th>
    </tr>
  </thead>
  <tbody>
     <tr>
      <th scope="row">
        <div class="mb-3">
          <label for="inputBooking" class="form-label">No. Booking</label>
          <input type="text" class="form-control" id="inputBooking" style="background-color: #e9ecef" disabled>
        </div>
        <div class="mb-3">
          <label for="inputBayar" class="form-label">Total Bayar</label>
          <input type="text" class="form-control" id="inputBayar" style="background-color: #e9ecef" disabled>
        </div>
        <div class="input-group mb-3">
          <label class="input-group-text" for="inputGroupFile01">Foto/Screenshot Bukti Transaksi</label>
          <input type="file" class="form-control" id="inputGroupFile01">
        </div>
      </th>
    </tr>
  </tbody>
</table>
<a href="checkout" class="btn btn-success">Konfirmasi</a>
</div>
</div>


<?= $this->endSection(); ?><file_sep><?php namespace App\Controllers;

class Detail_BUs extends BaseController
{
	public function index()
	{
		return view('Detail_Bus');
	}

	//--------------------------------------------------------------------

}<file_sep><?= $this->extend('user/template'); ?>
<?= $this->section('content'); ?>
<div class="buttom"> 
<h1>DASHBOARD</h1>
<span>Selamat Datang Di Tiket Travel</span>
<div class="jumbotron">
<div class="container">
<nav class="navbar navbar-light bg-light">
  <form class="container-fluid justify-content-start">
    <a href="home"><button class="btn btn-outline-success me-2" type="button">Home</button></a>
    <a href="auth/login"><button class="btn btn-outline-success me-2" type="button">Login</button></a>
    <a href="auth/register"><button class="btn btn-outline-success me-2" type="button">Register</button></a>
  </form>
</nav>
</div>
</div>
</div>
<br>
<div class="jumbotron">
<div class="container">
<table class="table table-bordered">
  <thead>
    <tr bgcolor="#8e8eff">
      <th scope="col">No</th>
      <th scope="col">Penyedia</th>
      <th scope="col">Waktu</th>
      <th scope="col">Jurusan</th>
      <th scope="col">Kelas</th>
      <th scope="col">Harga Tiket</th>
      <th scope="col">Kursi</th>
    </tr>
  </thead>
  <tbody>
     <tr>
      <th scope="row"></th>
      <?php $i=1; ?>
        <?php foreach($data as $b) : ?>
          <tr>
            <!-- <th scope="row"><?= $i++;?> </th> -->
            <td><?= $b['id'];?></td>
            <td><?= $b['penyedia'];?></td>
            <td><?= $b['waktu'];?></td>
            <td><?= $b['jurusan'];?></td>
            <td><?= $b['kelas'];?></td>
            <td><?= $b['harga'];?></td>
            <td><?= $b['kursi'];?></td>
          </tr>
        <?php endforeach; ?>
    </tr>
  </tbody>
</table>
</div>
</div>


<?= $this->endSection(); ?><file_sep><?= $this->extend('User/template'); ?>
<?= $this->section('content'); ?>
<div class="buttom"> 
<h1>TIKET TRAVEL</h1>
<span>Cek Dan Pesan Tiket Anda Disini</span>
</div>
<ul class="nav nav-tabs">
    <li class="nav-item">
    <a class="nav-link disabled" href="home" tabindex="-1" aria-disabled="true">Pesawat</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="detail_kereta" tabindex="-1" aria-disabled="true">Kereta</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="detail_kapal" tabindex="-1" aria-disabled="true">Kapal</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="detail_bus" tabindex="-1" aria-disabled="true">Bus</a>
  </li>
   <li class="nav-item">
    <a class="nav-link disabled" href="auth/login" tabindex="-1" aria-disabled="true">Login</a>
  </li>
  </li>
   <li class="nav-item">
    <a class="nav-link disabled" href="auth/register" tabindex="-1" aria-disabled="true">Register</a>
  </li>
</ul>
<div class="jumbotron">
<div class="container">
<form>
  <div class="row mb-3">
    <label for="inputPesawat" class="col-sm-1 col-form-label">Penyedia</label>
    <div class="col-sm-6">
      <input type="jenis pesawat" class="form-control" id="inputPesawat" style="background-color: #e9ecef" disabled>
    </div>
  </div>
    <div class="row mb-3">
    <label for="inputWaktu" class="col-sm-1 col-form-label">Waktu</label>
    <div class="col-sm-6">
      <input type="Waktu" class="form-control" id="inputWaktu" style="background-color: #e9ecef" disabled>
    </div>
  </div>
    <div class="row mb-3">
    <label for="inputJurusan" class="col-sm-1 col-form-label">Jurusan</label>
    <div class="col-sm-6">
      <input type="Jurusan" class="form-control" id="inputJurusan" style="background-color: #e9ecef" disabled>
    </div>
  </div>
    <div class="row mb-3">
    <label for="inputKelas" class="col-sm-1 col-form-label">Kelas</label>
    <div class="col-sm-6">
      <input type="Kelas" class="form-control" id="inputKelas" style="background-color: #e9ecef" disabled>
    </div>
  </div>
  <div class="row mb-3">
    <label for="inputPenumpang" class="col-sm-1 col-form-label">Jumlah Penumpang</label>
    <div class="col-sm-6">
      <input type="Jumlah Penumpang" class="form-control" id="inputPenumpang" style="background-color: #e9ecef" disabled>
    </div>
  </div>
  <div class="row mb-3">
    <label for="inputTotal" class="col-sm-1 col-form-label">Total Harga</label>
    <div class="col-sm-6">
      <input type="Total Hrga" class="form-control" id="inputTotal" style="background-color: #e9ecef" disabled>
    </div>
  </div>
  <ul type="disc">
    <li><font color="blue"> reservasi dapat dilakukan 1x24 jam sebelum armada berangkat
  </font>
    </li>
    <li>
       <font color="blue">Harga dan ketersediaan tempat duduk sewaktu waktu dapat berubah</font>
    </li>
  </ul>
  <br>
  <div class="row mb-3">
    <div class="col-sm-10 offset-sm-2">
      <div class="form-check">
        <input class="form-check-input" type="checkbox" id="gridCheck1">
        <label class="form-check-label" for="gridCheck1">
         Saya menyetujui ketentuan dan persyaratan diatas
        </label>
      </div>
    </div>
  </div>
 <a href="detail_pesan" class="btn btn-success">Selanjutnya</a>
</form>
</div>
</div>


<?= $this->endSection(); ?><file_sep>-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 15, 2021 at 04:20 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.2.34

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `tiket`
--

-- --------------------------------------------------------

--
-- Table structure for table `tiket`
--

CREATE TABLE `tiket` (
  `id` int(4) NOT NULL,
  `penyedia` varchar(50) NOT NULL,
  `waktu` date NOT NULL,
  `jurusan` varchar(50) NOT NULL,
  `kelas` varchar(50) NOT NULL,
  `harga` int(15) NOT NULL,
  `kursi` int(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `tiket`
--

INSERT INTO `tiket` (`id`, `penyedia`, `waktu`, `jurusan`, `kelas`, `harga`, `kursi`) VALUES
(14, 'sriwijaya', '2021-01-01', 'bali', 'ekonomi', 5000, 500),
(15, 'garuda', '2021-01-08', 'jogjkarta', 'ekonomi', 100, 12),
(16, 'first travel', '2021-01-16', 'jakarta', 'bisnis', 1000, 30);

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `user_id` int(11) NOT NULL,
  `user_level` int(1) NOT NULL DEFAULT 2,
  `user_name` varchar(100) DEFAULT NULL,
  `user_email` varchar(100) DEFAULT NULL,
  `user_password` varchar(200) DEFAULT NULL,
  `user_created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`user_id`, `user_level`, `user_name`, `user_email`, `user_password`, `user_created_at`) VALUES
(1, 1, 'admin', '<EMAIL>', <PASSWORD>', '2020-12-07 07:59:01'),
(3, 2, 'asep', '<EMAIL>', <PASSWORD>', '2020-12-07 08:01:19'),
(4, 2, 'buds', '<EMAIL>', <PASSWORD>', '2020-12-08 03:26:22'),
(5, 2, 'asd', '<EMAIL>', <PASSWORD>', '2021-01-05 07:53:32'),
(6, 2, 'budi su budu', '<EMAIL>', '$2y$10$iewfcypPi1WHiO2UzHMhHOm/f0Hm77.14vTOS4iJRbDTJzMHxzow.', '2021-01-15 07:28:03'),
(7, 2, 'praktek', '<EMAIL>', <PASSWORD>1/O0ve7rf.dgHom<PASSWORD>com0<PASSWORD>4YcVB3m', '2021-01-15 10:21:36');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `tiket`
--
ALTER TABLE `tiket`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`user_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<file_sep><?= $this->extend('user/template'); ?>
<?= $this->section('content'); ?>
<div class="buttom"> 
<h1>TIKET TRAVEL</h1>
<span>Cek Dan Pesan Tiket Anda Disini</span>
<br>
</div>
<ul class="nav nav-tabs">
    <li class="nav-item">
    <a class="nav-link disabled" href="home" tabindex="-1" aria-disabled="true">Pesawat</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="detail_kereta" tabindex="-1" aria-disabled="true">Kereta</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="detail_kapal" tabindex="-1" aria-disabled="true">Kapal</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="detail_bus" tabindex="-1" aria-disabled="true">Bus</a>
  </li>
   <li class="nav-item">
    <a class="nav-link disabled" href="auth/login" tabindex="-1" aria-disabled="true">Login</a>
  </li>
  </li>
   <li class="nav-item">
    <a class="nav-link disabled" href="auth/register" tabindex="-1" aria-disabled="true">Register</a>
  </li>
</ul>

<div class="jumbotron">
<div class="container">
  <table class="table table-bordered">
  <thead>
    <tr bgcolor="#8e8eff">
      <th scope="col">Info perjalanan</th>
    </tr>
  </thead>
  <tbody>
     <tr>
      <th scope="row">
        <div class="mb-3">
          <label for="inputPesawat" class="form-label">Penyedia</label>
          <input type="text" class="form-control" id="inputPesawat" style="background-color: #e9ecef" disabled>
        </div>
        <div class="mb-3">
          <label for="inputWaktu" class="form-label">Waktu</label>
          <input type="text" class="form-control" id="inputWaktu" style="background-color: #e9ecef" disabled>
        </div>
        <div class="mb-3">
          <label for="inputJurusan" class="form-label">Jurusan</label>
          <input type="text" class="form-control" id="inputJurusan" style="background-color: #e9ecef" disabled>
        </div>
        <div class="mb-3">
          <label for="inputKelas" class="form-label">Kelas</label>
          <input type="text" class="form-control" id="inputKelas" style="background-color: #e9ecef" disabled>
        </div>
        <div class="mb-3">
          <label for="inputPenumpang" class="form-label">Jumlah penumpang</label>
          <input type="text" class="form-control" id="inputPenumpang" style="background-color: #e9ecef" disabled>
        </div>
      </th>
    </tr>
  </tbody>
<table class="table table-bordered">
  <p><b>Penumpang</b></p>
  <thead>
    <tr bgcolor="#8e8eff">
      <th scope="col">No</th>
      <th scope="col">Nama</th>
      <th scope="col">Nik</th>
    </tr>
  </thead>
  <tbody>
     <tr>
      <th scope="row">1</th>
      <td> 
        <input type="Nama" class="form-control" id="inputNama">
      </td>
      <td><input type="IdKTP" class="form-control" id="inputKtp"></td>
    </tr>
    <tr>
      <th scope="row">3</th>
      <td> 
        <input type="Nama" class="form-control" id="inputNama">
      </td>
      <td><input type="IdKTP" class="form-control" id="inputKtp"></td>
    </tr>
  </tbody>
</table>
<a href="checkout" class="btn btn-success">checkout</a>
</div>
</div>


<?= $this->endSection(); ?><file_sep><?php echo $this->include('Detail/header'); ?>
<?php echo $this->include('Detail/navbar'); ?>
<?= $this->renderSection('content'); ?>
<?php echo $this->include('Detail/footer'); ?>
<file_sep><nav class="navbar navbar-expand-lg navbar-light bg-light">
  <a class="navbar-brand" href<?=base_url("") ?>/="#"></a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>

  <div class="collapse navbar-collapse" id="navbarSupportedContent">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item">
        <a class="nav-link" href="<?=base_url("") ?>/index.php">Pesawat</a>
      </li>
       <li class="nav-item">
        <a class="nav-link" href="<?=base_url("") ?>/detail_kereta">Kereta</a>
      </li>
       <li class="nav-item">
        <a class="nav-link" href="<?=base_url("") ?>/detail_kapal">Kapal <span class="sr-only">(current)</span></a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="<?=base_url("") ?>/detail_bus">Bus</a>
      </li>
      <!-- <li class="nav-item">
        <a class="nav-link" href="<?=base_url("/auth") ?>/login">Login</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="<?=base_url("/auth") ?>/register">Register</a>
      </li> -->
      <li class="nav-item">
      <a class="nav-link" href="<?=base_url("/auth") ?>/logout">Logout</a></li>
    </ul>
  
  </div>
</nav><file_sep><?php namespace App\Controllers;

use App\Models\TiketModel;

class Dashboard extends BaseController
{
	public function index()
	{
		$model = new TiketModel();
		$data = $model->findAll();
		return view("dashboard", ['data' => $data]);
	}

	//--------------------------------------------------------------------

}<file_sep><!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Admin Travel</title>

  <!-- Google Font: Source Sans Pro -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Tempusdominus Bootstrap 4 -->
  <link rel="stylesheet" href="plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css">
  <!-- iCheck -->
  <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css">
  <!-- JQVMap -->
  <link rel="stylesheet" href="plugins/jqvmap/jqvmap.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/adminlte.min.css">
  <!-- overlayScrollbars -->
  <link rel="stylesheet" href="plugins/overlayScrollbars/css/OverlayScrollbars.min.css">
  <!-- Daterange picker -->
  <link rel="stylesheet" href="plugins/daterangepicker/daterangepicker.css">
  <!-- summernote -->
  <link rel="stylesheet" href="plugins/summernote/summernote-bs4.min.css">
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a class="brand-link">
      <span class="brand-text font-weight-light">Tiket Travel</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">

      <!-- Sidebar Menu -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
          <li class="nav-item menu-open">
            <a href="admin" class="nav-link">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
                Dashboard
              </p>
            </a>
          </li>
          <li class="nav-item">
            <a href="data_tiket" class="nav-link active">
              <i class="nav-icon fas fa-copy"></i>
              <p>
                Data Tiket
              </p>
            </a>
        </ul>
      </nav>
    </div>
  </aside>
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
      </div><!-- /.container-fluid -->
    </div>
    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="jumbotron">
        <?php if(isset($validation)):?>
        <div class="alert alert-danger"><?= $validation->listErrors() ?></div>
        <?php endif;?>
<div class="container">
   <h1 class="mt-2">Tambah Data Tiket</h1>
<form action="<?=base_url("")?>\tambah\save" method="post">
  <div class="row mb-3">
    <label for="inputPesawat" class="col-sm-1 col-form-label">No</label>
    <div class="col-sm-6">
      <input type="jenis pesawat" class="form-control" id="notiket" name="notiket">
    </div>
  </div>
  <div class="row mb-3">
    <label for="inputPesawat" class="col-sm-1 col-form-label">Penyedia</label>
    <div class="col-sm-6">
      <input type="jenis pesawat" class="form-control" id="inputPesawat" name="inputPesawat">
    </div>
  </div>
    <div class="row mb-3">
    <label for="inputWaktu" class="col-sm-1 col-form-label">Waktu</label>
    <div class="col-sm-6">
      <input type="Date" class="form-control" id="inputWaktu" name="inputWaktu">
    </div>
  </div>
    <div class="row mb-3">
    <label for="inputJurusan" class="col-sm-1 col-form-label">Jurusan</label>
    <div class="col-sm-6">
      <input type="Jurusan" class="form-control" id="inputJurusan" name="inputJurusan">
    </div>
  </div>
    <div class="row mb-3">
    <label for="inputKelas" class="col-sm-1 col-form-label">Kelas</label>
    <div class="col-sm-6">
      <input type="Kelas" class="form-control" id="inputKelas" name="inputKelas">
    </div>
  </div>
  <div class="row mb-3">
    <label for="inputPenumpang" class="col-sm-1 col-form-label">Harga Tiket</label>
    <div class="col-sm-6">
      <input type="Jumlah Penumpang" class="form-control" id="inputPenumpang" name="inputPenumpang">
    </div>
  </div>
  <div class="row mb-3">
    <label for="inputTotal" class="col-sm-1 col-form-label">Kursi</label>
    <div class="col-sm-6">
      <input type="Total Hrga" class="form-control" id="inputTotal" name="inputTotal">
    </div>
  </div>
  <button type="submit" class="btn btn-primary btn-block">Tambah</button>
</form>
  <div>
 <!-- <a href="data_tiket" class="btn btn-success">Tambah</a> -->
 <a href="data_tiket" class="btn btn-success">Kembali</a>
</div>
</div>
</div>


</div>
</section>
</div>
  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->

<!-- jQuery -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="plugins/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
  $.widget.bridge('uibutton', $.ui.button)
</script>
<!-- Bootstrap 4 -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- ChartJS -->
<script src="plugins/chart.js/Chart.min.js"></script>
<!-- Sparkline -->
<script src="plugins/sparklines/sparkline.js"></script>
<!-- JQVMap -->
<script src="plugins/jqvmap/jquery.vmap.min.js"></script>
<script src="plugins/jqvmap/maps/jquery.vmap.usa.js"></script>
<!-- jQuery Knob Chart -->
<script src="plugins/jquery-knob/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="plugins/moment/moment.min.js"></script>
<script src="plugins/daterangepicker/daterangepicker.js"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Summernote -->
<script src="plugins/summernote/summernote-bs4.min.js"></script>
<!-- overlayScrollbars -->
<script src="plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="dist/js/pages/dashboard.js"></script>
</body>
</html>






<file_sep><?php namespace App\Controllers;

class Cetak extends BaseController
{
	public function index()
	{
		return view('cetak');
	}

	//--------------------------------------------------------------------

}<file_sep><?php namespace App\Controllers;

class Cek extends BaseController
{
	public function index()
	{
		return view('cek');
	}

	//--------------------------------------------------------------------

}<file_sep>
<?= $this->extend('User/template'); ?>
<?= $this->section('content'); ?>
  <!-- header-section-starts -->
        <div class="header">
          <div class="top-header">
            <div class="logo">
              <p>TIKET TRAVEL</p>
            </div>
            <div class="clearfix"></div>
          </div>
        </div>
        <div class="footer">
          <div class="product-list-container">
              <div class="product-list-title">
                <span> Hey, Kamu </span>
                  <br>
                  <span class="bold-title"> Mau Kemana?</span>
              </div>
          <div class="product-list-content">
            <div class="col-md-3">
              <div class="product-box active" tabindex="-1">
                <div class="product-logo">
                  <a href="index.php">
                    <img src="https://s-light.tiket.photos/t/01E25EBZS3W0FY9GTG6C42E1SE/original/vertical/2020/12/17/db5f8398-5b3f-46ea-974b-6ec2e27434a3-1608204389521-8431fc3743b2bc5282d5e90d589a1a01.png" alt="Pesawat" height="56" width="76">
                      <div class="active-product"></div>
                    </a>
                </div>
                      <span class="product-label">Pesawat</span>
                </div>
            </div>
            <div class="col-md-3">
              <a href="detail_kereta">
              <div class="product-box active" tabindex="-1">
                <div class="product-logo">
                  <img src="https://s-light.tiket.photos/t/01E25EBZS3W0FY9GTG6C42E1SE/original/vertical/2020/12/17/10f6f8c5-bc53-4199-afc4-cd4555eb3f24-1608204459625-52651b070043c8e97b9155dd0f48d8e0.png" alt="Kereta Api" height="56" width="76">
                </div>
                    <span class="product-label">Kereta Api</span>
              </div>
            </a>
            </div>
              <div class="col-md-3">
                <a href="detail_kapal">
                <div class="product-box active" tabindex="-1">
                  <div class="product-logo">
                    <img src="images/kapal.png" alt="mobil" height="56" width="76">
                  </div>
                    <span class="product-label">Kapal</span>
                </div>
              </a>
              </div>
              <div class="col-md-3">
                <a href="detail_bus">
                <div class="product-box active" tabindex="-1">
                  <div class="product-logo">
                    <img src="/images/bus.png" alt="bus" height="56" width="76">
                  </div>
                    <span class="product-label">Bus</span>
                </div>
              </a>
              </div>
          </div>
        </div>

        <div class="top-main">
    <div class="card-group">
       <div class="row"><center>
        <span class="product-form-subtitle">Cek Ketersediaan Tiket Disini</span>
      </center>
</div>
<center>
<div class="row">
        <div class="col-md-3">
          <div class="card" style="width: 35rem;"><div class="jumbotron" >
              <div class="widget-input-container">
              <div class="form-group row">
                    <label for="tanggal" class="col-sm-2 col-form-label">Tanggal</label>
                    <div class="col-sm-5">
                        <input type="Date" class="form-control" id="tanggal" name="tanggal" value="<?= old('tanggal') ?>">
                    </div>
                </div>
                </div>
              </div>
            </div>
          </div>
    
      <div class="col-md-3">
        <div class="card" style="width: 35rem;"><div class="jumbotron" >
              <div class="widget-input-container">
                <div class="form-group row">
                    <label for="jam" class="col-sm-2 col-form-label">Jam</label>
                <div class="col-sm-5">
                    <input type="Time" class="form-control" id="jam" name="jam" value="<?= old('jam') ?>">
                </div>
              </div>
            </div>
        </div>
      </div>
    </div>
    <div class="col-md-3">
        <div class="card" style="width: 35rem;"><div class="jumbotron" >
           <div class="widget-input-container">
          <div class="form-group row">
                    <label for="jalur" class="col-sm-2 col-form-label">Kelas Kabin</label>
                    <div class="col-sm-5">
                        <select class="form-control" aria-label=".form-select-lg example">
                        <option selected>pilih</option>
                        <option value="1">Ekonomi</option>
                        <option value="2">Premium Ekonomi</option>
                        <option value="3">Bisnis</option>
                        <option value="3">First</option>
                        </select>
                    </div>
                </div>
        </div>
      </div>
    </div>
  </div>
  <div class="col-md-3">
    <div class="card" style="width: 35rem;"><div class="jumbotron" >
      <div class="widget-input-container">
        <div class="form-group row">
          <label for="kursi" class="col-sm-2 col-form-label">Jumlah Kursi</label>
        <div class="col-sm-5">
          <input type="text" class="control" id="kursi" name="kursi" value="<?= old('kursi') ?>">
        </div>
        </div>
      </div>
    </div> 
  </div>
</div>
<div class="col-sm-4">
      <center>
           <a href="cek">CEK TIKET</a>
         </center>
  </div>
</div>
</center>
    </div>
</div>
</div>
</div>


<?= $this->endSection(); ?>
<file_sep><?php namespace App\Controllers;

use App\Models\UserModel;

class Auth extends BaseController
{
	public function login()
	{
		
		if(session()->get('logged_in')){
            return redirect()->to('/dashboard');
        }else{
			helper(['form']);
			return view("auth/login");
        }
	}

	public function check()
	{
		$session = session();
        $model = new UserModel();
        $email = $this->request->getVar('email');
        $password = $this->request->getVar('password');
        $data = $model->where('user_email', $email)->first();
        if($data){
            $pass = $data['user_password'];
            $verify_pass = password_verify($password, $pass);
            if($verify_pass){
                $ses_data = [
                    'user_id'       => $data['user_id'],
                    'user_level'    => $data['user_level'],
                    'user_name'     => $data['user_name'],
                    'user_email'    => $data['user_email'],
                    'logged_in'     => TRUE
                ];
                $session->set($ses_data);
                if($data['user_level'] == 1){
                    return redirect()->to('/admin');
                } else {
                    return redirect()->to('/dashboard');
                }
            }else{
                $session->setFlashdata('msg', 'Wrong Password');
                return redirect()->to('/auth/login');
            }
        }else{
            $session->setFlashdata('msg', 'Email not Found');
            return redirect()->to('/auth/login');
        }
	}
	public function register()
	{
		if(session()->get('logged_in')){
            return redirect()->to('/');
        }else{
            //include helper form
            helper(['form']);
			$data = [];
			return view("auth/register");
        }
	}

	public function save()
    {
        //include helper form
        helper(['form']);
        //set rules validation form
        $rules = [
            'name'          => 'required|min_length[3]|max_length[20]',
            'email'         => 'required|min_length[6]|max_length[50]|valid_email|is_unique[users.user_email]',
            'password'      => '<PASSWORD>]',
            'confpassword'  => '<PASSWORD>]'
        ];
         
        if($this->validate($rules)){
            $model = new UserModel();
            $data = [
                'user_name'     => $this->request->getVar('name'),
                'user_email'    => $this->request->getVar('email'),
                'user_password' => password_hash($this->request->getVar('password'), PASSWORD_DEFAULT)
            ];
            $model->save($data);
            return redirect()->to('/auth/login');
        }else{
            $data['validation'] = $this->validator;
            echo view('/auth/register', $data);
        }
	}

	//--------------------------------------------------------------------

	public function logout()
	{
		session()->destroy();
		return redirect()->to('/auth/login');
	}

}<file_sep>
<?= $this->extend('detail/template'); ?>
<?= $this->section('content'); ?>
  <!-- header-section-starts -->
  <div class="footer-main">
  <div class="container">
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
    <ol class="carousel-indicators">
    <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
    <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
    <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
  </ol>
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img src="images/kereta.jpg" class="d-block w-100" alt="kereta"  width="500px" height="500px">
    </div>
    <div class="carousel-item">
      <img src="images/kereta1.jpg" class="d-block w-100" alt="travel" width="500px" height="500px">
    </div>
     <div class="carousel-item">
      <img src="images/kereta2.jpg" class="d-block w-100" alt="travel" width="500px" height="500px">
    </div>
  </div>
  <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
  </a>
  <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
  </a>
</div>
</div>
</div>
         <div class="footer">
          <div class="product-list-container">
             <img src="https://s-light.tiket.photos/t/01E25EBZS3W0FY9GTG6C42E1SE/original/vertical/2020/12/17/10f6f8c5-bc53-4199-afc4-cd4555eb3f24-1608204459625-52651b070043c8e97b9155dd0f48d8e0.png" alt="Kereta Api" height="56" width="76">
              <div class="product-list-title">
                  <br>
                  <span class="bold-title"> Cek Ketersediaan Tiket Disini</span>
              </div>

        </div>


        <div class="top-main">
    <div class="card-group">
       <div class="row">
        <div class="col-md-3">
            <div class="container">
             <div class="widget-input-container">
             <div class="form-group row">
                    <label for="tanggal" class="col-sm-2 col-form-label">Tanggal</label>
                    <div class="col-sm-5">
                        <input type="Date" class="form-control" id="tanggal" name="tanggal" value="<?= old('tanggal') ?>">
                    </div>
                </div>
            </div>
        </div>
  </div>
      <div class="col-md-3">
        <div class="container">
              <div class="widget-input-container">
                <div class="form-group row">
                    <label for="jam" class="col-sm-2 col-form-label">Jam</label>
                <div class="col-sm-5">
                    <input type="Time" class="form-control" id="jam" name="jam" value="<?= old('jam') ?>">
                </div>
              </div>
            </div>
        </div>
      </div>
    <div class="col-md-3">
        <div class="container">
           <div class="widget-input-container">
          <div class="form-group row">
                    <label for="jalur" class="col-sm-2 col-form-label">Kelas</label>
                    <div class="col-sm-5">
                        <select class="form-control" aria-label=".form-select-lg example">
                        <option selected>pilih</option>
                        <option value="1">Eksekutif</option>
                        <option value="2">Ekonomi</option>
                        <option value="3">Bisnis</option>
                        <option value="3">Premium</option>
                        </select>
                    </div>
                </div>
        </div>
      </div>
    </div>
  <div class="col-md-3">
    <div class="container">
      <div class="widget-input-container">
        <div class="form-group row">
          <label for="kursi" class="col-sm-2 col-form-label">jumlah penumpang</label>
        <div class="col-sm-5">
          <input type="text" class="control" id="kursi" name="kursi" value="<?= old('kursi') ?>">
        </div>
        </div>
      </div>
    </div> 
  </div>
  <div class="col-sm-4">
      <center>
           <a href="cek">CEK TIKET</a>
         </center>
  </div>
</div>
</div>
</div>
</div>




<?= $this->endSection(); ?>
<file_sep><?= $this->extend('user/template'); ?>
<?= $this->section('content'); ?>
<div class="buttom"> 
<h1>TIKET TRAVEL</h1>
<span>Cek Dan Pesan Tiket Anda Disini</span>
<br>
<br>
<ul class="nav nav-tabs">
    <li class="nav-item">
    <a class="nav-link disabled" href="<?= base_url("") ?>/home" tabindex="-1" aria-disabled="true">Pesawat</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="<?= base_url("") ?>/detail_kereta" tabindex="-1" aria-disabled="true">Kereta</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="<?= base_url("") ?>/detail_kapal" tabindex="-1" aria-disabled="true">Kapal</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="<?= base_url("") ?>/detail_bus" tabindex="-1" aria-disabled="true">Bus</a>
  <!-- </li>
   <li class="nav-item">
    <a class="nav-link disabled" href="<?= base_url("") ?>/auth/login" tabindex="-1" aria-disabled="true">Login</a>
  </li>
  </li>
   <li class="nav-item">
    <a class="nav-link disabled" href="<?= base_url("") ?>/auth/register" tabindex="-1" aria-disabled="true">Register</a>
  </li> -->
  </li>
   <li class="nav-item">
    <a class="nav-link disabled" href="<?= base_url("") ?>/auth/logout" tabindex="-1" aria-disabled="true">Logout</a>
  </li>
</ul>
</div>
<div class="jumbotron">
<div class="container">
<table class="table table-bordered">
  <thead>
    <tr bgcolor="#8e8eff">
      <th scope="col">No</th>
      <th scope="col">Penyedia</th>
      <th scope="col">Waktu</th>
      <th scope="col">Jurusan</th>
      <th scope="col">Kelas</th>
      <th scope="col">Harga Tiket</th>
      <th scope="col">Kursi</th>
      <th scope="col">Aksi</th>
    </tr>
  </thead>
  <tbody>
     <tr>
      <th scope="row"></th>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td><a href="<?= base_url("") ?>/pesan" class="btn btn-success">Pilih</a></td>
    </tr>
  </tbody>
</table>
</div>
</div>


<?= $this->endSection(); ?><file_sep><?php namespace App\Controllers;

use App\Models\TiketModel;

class Tambah extends BaseController
{
	public function index()
	{
		return view("tambah");
	}

	public function save()
	{
		helper(['form']);
		$rules = [
			'notiket' => 'required',
			'inputPesawat' => 'required',
			'inputWaktu' => 'required',
			'inputJurusan' => 'required',
			'inputKelas' => 'required',
			'inputPenumpang' => 'required',
			'inputTotal' => 'required'
		];
		
		if($this->validate($rules)){
            $model = new TiketModel();
            $data = [
				'id' 		=> $this->request->getVar('notiket'),
				'penyedia'	=> $this->request->getVar('inputPesawat'),
				'waktu'		=> $this->request->getVar('inputWaktu'),
				'jurusan'	=> $this->request->getVar('inputJurusan'),
				'kelas'		=> $this->request->getVar('inputKelas'),
				'harga'		=> $this->request->getVar('inputPenumpang'),
				'kursi'		=> $this->request->getVar('inputTotal')
            ];
            $model->insert($data);
            return redirect()->to('/data_tiket');
        }else{
            $data['validation'] = $this->validator;
            echo view('/tambah', $data);
        }
	}

	//--------------------------------------------------------------------

}<file_sep><?php namespace App\Controllers;

class Checkout extends BaseController
{
	public function index()
	{
		return view('checkout');
	}

	//--------------------------------------------------------------------

}<file_sep><?= $this->extend('user/template'); ?>
<?= $this->section('content'); ?>
<div class="buttom"> 
<h1>TIKET TRAVEL</h1>
<span>Cek Dan Pesan Tiket Anda Disini</span>
</div>
<ul class="nav nav-tabs">
    <li class="nav-item">
    <a class="nav-link disabled" href="home" tabindex="-1" aria-disabled="true">Pesawat</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="detail_kereta" tabindex="-1" aria-disabled="true">Kereta</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="detail_kapal" tabindex="-1" aria-disabled="true">Kapal</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="detail_bus" tabindex="-1" aria-disabled="true">Bus</a>
  </li>
   <li class="nav-item">
    <a class="nav-link disabled" href="auth/login" tabindex="-1" aria-disabled="true">Login</a>
  </li>
  </li>
   <li class="nav-item">
    <a class="nav-link disabled" href="auth/register" tabindex="-1" aria-disabled="true">Register</a>
  </li>
</ul>

<div class="jumbotron">
<div class="container">
  <div class="col-lg-3 col-6">
    <div class="small-box bg-success">
      <center>
      <img src="images/bri.png" width="200px">
      <br>
      <br>
      <span><font color="blue"> No.Rekening   : 5951-01-014122-xx-x </font></span>
      <br>
      <span> <font color="blue">Atas nama     : Tiket Travel </font></span>
    </center>
    </div>
  </div>
    <div class="col-lg-3 col-6">
    <div class="small-box bg-success">
      <center>
      <img src="images/bca.png" width="200px">
      <br>
      <br>
      <span><font color="blue"> No.Rekening   : 5220304xxx </font></span>
      <br>
      <span> <font color="blue">Atas nama     : Tiket Travel </font></span>
    </center>
    </div>
  </div>
<table class="table table-bordered">
  <thead>
    <tr bgcolor="#8e8eff">
      <th scope="col">No</th>
      <th scope="col">Nomor Booking</th>
      <th scope="col">Penyedia</th>
      <th scope="col">Waktu</th>
      <th scope="col">Pemesan</th>
      <th scope="col">Jumlah Penumpang</th>
      <th scope="col">Total Harga</th>
      <th scope="col">Status Booking</th>
      <th scope="col">Aksi</th>
    </tr>
  </thead>
  <tbody>
     <tr>
      <th scope="row"></th>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td>
        <a href="bayar" class="btn btn-success">Bayar</a>
        <a href="" class="btn btn-success">Batal</a>
      </td>
    </tr>
  </tbody>
</table>
</div>
</div>


<?= $this->endSection(); ?><file_sep><?php namespace App\Controllers;

class Home extends BaseController
{
	public function index()
	{
		if(!session()->get('logged_in')){
			return redirect()->to('/auth/login');
		} else {
			return view('home');
		}
	}

	//--------------------------------------------------------------------

}
<file_sep><?php namespace App\Models;
 
use CodeIgniter\Model;
 
class TiketModel extends Model{
    protected $table = 'tiket';
    protected $primary = 'id';
    protected $allowedFields = ['id', 'penyedia', 'waktu','jurusan','kelas','harga', 'kursi'];
}<file_sep><?php namespace App\Controllers;

class Detail_Bayar extends BaseController
{
	public function index()
	{
		return view('detail_bayar');
	}

	//--------------------------------------------------------------------

}