Upload New File

parent 273978d9
<?php
session_start();
include('../config.php');
include("template/header.php");
include("../common/function.php");
include("functions.php");
// include("../common/dbconfig.php");
open_page("Daftar Pembayaran Tiket");
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 != "user"){
echo "<script>alert('Anda bukan user');window.location='../index.php';</script>";
exit;
}
$id_akun = $_SESSION["id_akun"];
$nama = $_SESSION["nama"];
$username = $_SESSION["username"];
$data = query("SELECT p_pembayaran.id_pembayaran, p_pembayaran.kode_pembayaran, t_tiketsdia.harga, pmt_tiket.j_pemesanan, pmt_tiket.via_pembayaran, p_pembayaran.status, t_tiketsdia.kode_tiket
FROM ((pt_kategori INNER JOIN pt_trans ON pt_kategori.id_kategori = pt_trans.kategori_id) INNER JOIN (destinasi INNER JOIN t_tiketsdia ON destinasi.id_destinasi = t_tiketsdia.t_destinasi) ON pt_trans.id_transp = t_tiketsdia.t_kendaraan) INNER JOIN ((log_akun INNER JOIN pmt_tiket ON log_akun.id_akun = pmt_tiket.akun_id) INNER JOIN p_pembayaran ON pmt_tiket.id_pemesanan = p_pembayaran.id_ptiket) ON t_tiketsdia.ID = pmt_tiket.tiket_id
WHERE akun_id = $id_akun;
");
?>
<!-- ======= Breadcrumbs ======= -->
<section id="breadcrumbs" class="breadcrumbs">
<div class="container">
<div class="d-flex justify-content-between align-items-center">
<h2>Daftar Pembayaran Tiket</h2>
</div>
</div>
</section>
<!-- End Breadcrumbs -->
<!-- Start form search -->
<div class="container mt-2 ml-2">
<table class="table table-bordered mt-3 mb-2">
<thead class="thead-dark">
<tr align="center">
<th scope="col">Kode Pembayaran</th>
<th scope="col">Kode Tiket</th>
<th scope="col">Harga Tiket</th>
<th scope="col">Jumlah Tiket</th>
<th scope="col">Via Pembayaran</th>
<th scope="col">Status Pembayaran</th>
</tr>
</thead>
<?php
foreach($data as $list_bayar) { ?>
<tr align="center">
<td><?=$list_bayar['kode_pembayaran']?></td>
<td><?=$list_bayar['kode_tiket']?></td>
<td><?=$list_bayar['harga']?></td>
<td><?=$list_bayar['j_pemesanan']?></td>
<td><?=$list_bayar['via_pembayaran']?></td>
<td><?=$list_bayar['status']?></td>
</tr>
<?php } ?>
</table>
</div>
<!-- End form search -->
<?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