-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsuccess.php
41 lines (40 loc) · 1.32 KB
/
success.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
<?php include 'inc/header.php'; ?>
<?php
$login = Session::get("cuslogin");
if ($login == false) {
header("Location:login.php");
}
?>
<style type="text/css">
.psuccess{width: 500px; min-height: 200px; text-align: center; border: 1px solid #ddd; margin: 0 auto; padding:50px;}
.psuccess h2{border-bottom: 1px solid #ddd; margin-bottom: 20px; padding-bottom: 10px;}
.psuccess p{line-height:25px; font-size:18px; text-align: left; }
</style>
<div class="main">
<div class="content">
<div class="section group">
<div class="psuccess">
<h2>Success</h2>
<?php
$cmrId = Session::get("cmrId");
$amount = $ct->payableAmount($cmrId);
if ($amount) {
$sum = 0;
while ($result = $amount->fetch_assoc()) {
$price = $result['price'];
$sum = $sum + $price;
}
}
?>
<p>Total Payable Amount (Including VAT) : $
<?php
$vat = $sum * 0.1;
$total = $sum + $vat;
echo $total;
?>
</p>
<p>Thanks for Purchage. Receive Your Order Successfully. We will contact you ASAP with delivery details. Here is your order details....<a href="orderdetails.php">Visit Here....</a></p>
</div>
</div>
</div>
<?php include 'inc/footer.php'; ?>