-
Notifications
You must be signed in to change notification settings - Fork 0
/
payment.php
41 lines (41 loc) · 1.21 KB
/
payment.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
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap.css">
<?php
include 'connect.php';
//mysql_select_db($database); //connect to database
?>
<h1>Payment</h1>
<p>No. Transaksi</p>
<form method="post" action="">
<input type="text" class="form-control" id="nopjl" placeholder="Masukkan nomor transaksi..." name="nopjl"><br>
<button type="submit" class="btn btn-default" name="submit">Ok</button>
</form><br>
<table width="100%" height="50px" class="table table-striped">
<thead>
<tr>
<th>NO. TRANSAKSI</th>
<th>ID BARANG</th>
<th>HARGA</th>
<th>QUANTITY</th>
</tr>
</thead>
<tbody>
<?php
if(isset($_POST['nopjl'])) {
$nopjl = $_POST['nopjl'];
$dtpjl = mysqli_query($conn, "select * from jual where nopjl = '$nopjl'");
while($data=mysqli_fetch_assoc($dtpjl)) {
?>
<tr>
<td><?php echo $data['nopjl']; ?></td>
<td><?php echo $data['idbarang']; ?></td>
<td><?php echo $data['harga']; ?></td>
<td><?php echo $data['jumlah']; ?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<a class="btn btn-lg btn-primary" style="margin: 3% auto;" href="index.php?page=confirmPayment&nopjl=<?php echo $nopjl;?>" role="button">Confirm Payment »</a>