-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaymentstatus.php
75 lines (70 loc) · 2.51 KB
/
paymentstatus.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
<?php
include('./dbConnection.php');
// Header Include from mainInclude
include('./mainInclude/header.php');
$ORDER_ID = "";
if (isset($_POST["ORDER_ID"]) && $_POST["ORDER_ID"] != "") {
$ORDER_ID = $_POST["ORDER_ID"];
}
?>
<div class="container-fluid bg-dark"> <!-- Start Course Page Banner -->
<div class="row">
<img src="./image/coursebanner.jpg" alt="courses" style="height:300px; width:100%; object-fit:cover; box-shadow:10px;"/>
</div>
</div> <!-- End Course Page Banner -->
<div class="container">
<h2 class="text-center my-4">Payment Status </h2>
<form method="post" action="">
<div class="form-group row">
<label class="offset-sm-3 col-form-label">Order ID: </label>
<div>
<input class="form-control mx-3" id="ORDER_ID" tabindex="1" maxlength="20" size="20" name="ORDER_ID" autocomplete="off" value="<?php echo $ORDER_ID ?>">
</div>
<div>
<input class="btn btn-primary mx-4" value="View" type="submit" onclick="">
</div>
</div>
</form>
</div>
<div class="container">
<?php
if (isset($_POST['ORDER_ID']))
{
$sql = "SELECT order_id FROM courseorder";
$result = $conn->query($sql);
while($row = $result->fetch_assoc()){
if($_POST["ORDER_ID"] == $row["order_id"]){ ?>
<div class="row justify-content-center">
<div class="col-auto">
<h2 class="text-center">Payment Receipt</h2>
<table class="table table-bordered">
<tbody>
<tr >
<td><label>Order ID</label></td>
<td><?php if (isset($row["order_id"])) echo $row["order_id"] ?></td>
</tr>
<tr >
<td><label>Status</label></td>
<td>Success</td>
</tr>
<tr>
<td></td>
<td><button class="btn btn-primary" onclick="javascript:window.print();">Print Receipt</button></td>
</tr>
</tbody>
</table>
</div>
</div>
<?php
} } } ?>
</div>
<div class="mt-5">
<?php
// Contact Us
include('./contact.php');
?>
</div>
<?php
// Footer Include from mainInclude
include('./mainInclude/footer.php');
?>