Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PSW_II_PARIWISATA_TRANSPORTASI
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Proyek_PSW_II_PARIWISATA
PSW_II_PARIWISATA_TRANSPORTASI
Commits
f4d1fc38
Commit
f4d1fc38
authored
Jun 06, 2020
by
11319009_Pratiwi Sibarani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
273978d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
89 additions
and
0 deletions
+89
-0
bayar_tiket_user.php
transportasi/user/template/bayar_tiket_user.php
+89
-0
No files found.
transportasi/user/template/bayar_tiket_user.php
0 → 100644
View file @
f4d1fc38
<?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"
)
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment