This repository has been archived by the owner on Jun 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathkonfirmasi.php
executable file
·91 lines (87 loc) · 3.14 KB
/
konfirmasi.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/*
| Source Code Aplikasi Rental Mobil PHP & MySQL
|
| @package : rental_mobil
| @file : konfirmasi.php
| @author : fauzan1892 / Fauzan Falah
| @copyright : Copyright (c) 2017-2021 Codekop.com (https://www.codekop.com)
| @blog : https://www.codekop.com/products/source-code-aplikasi-rental-mobil-php-mysql-7.html
|
|
|
|
*/
session_start();
require 'koneksi/koneksi.php';
include 'header.php';
if(empty($_SESSION['USER']))
{
echo '<script>alert("Harap Login");window.location="index.php"</script>';
}
$kode_booking = $_GET['id'];
$hasil = $koneksi->query("SELECT * FROM booking WHERE kode_booking = '$kode_booking'")->fetch();
$id = $hasil['id_mobil'];
$isi = $koneksi->query("SELECT * FROM mobil WHERE id_mobil = '$id'")->fetch();
?>
<br>
<br>
<div class="container">
<div class="row">
<div class="col-sm-4">
<div class="card">
<div class="card-body">
<center><h3>Pembayaran Dapat Melalui :</h3>
<hr/>
<p> BRI 2132131246 A/N Rental Dirga </p></center>
</div>
</div>
</div>
<div class="col-sm-8">
<div class="card">
<div class="card-body">
<form method="post" action="koneksi/proses.php?id=konfirmasi">
<table class="table">
<tr>
<td>Kode Booking </td>
<td> :</td>
<td><?php echo $hasil['kode_booking'];?></td>
</tr>
<tr>
<td>No Rekening </td>
<td> :</td>
<td><input type="text" name="no_rekening" required class="form-control"></td>
</tr>
<tr>
<td>Atas Nama </td>
<td> :</td>
<td><input type="text" name="nama" required class="form-control"></td>
</tr>
<tr>
<td>Nominal </td>
<td> :</td>
<td><input type="text" name="nominal" required class="form-control"></td>
</tr>
<tr>
<td>Tanggal Transfer</td>
<td> :</td>
<td><input type="date" name="tgl" required class="form-control"></td>
</tr>
<tr>
<td>Total yg Harus di Bayar </td>
<td> :</td>
<td>Rp. <?php echo number_format($hasil['total_harga']);?></td>
</tr>
</table>
<input type="hidden" name="id_booking" value="<?php echo $hasil['id_booking'];?>">
<button type="submit" class="btn btn-primary float-right">Kirim</button>
</form>
</div>
</div>
</div>
</div>
</div>
<br>
<br>
<br>
<?php include 'footer.php';?>