-
Notifications
You must be signed in to change notification settings - Fork 4
/
success.php
42 lines (41 loc) · 1.34 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
42
<?php include 'inc/header.php';?>
<?php
$login = Session::get("cuslogin");
if ($login == false) {
header("Location:login.php");
}
?>
<style>
.psuccess{width:500px;min-height:200px;text-align:center;border:1px solid #ddd;margin:0 auto;padding: 20px;}
.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 style="color:red"> Total Payable Amount(including Vat) : tk
<?php
$vat = $sum * 0.05;
$total = $sum + $vat;
echo $total;
?>
</p>
<p>Thanks for purchase.Receive your order successfully.We will contact you as soon as possible with delivery details. Here is your order details...<a href="orderdetails.php">Visit here...</p>
</div>
</div>
</div>
</div>
<?php include 'inc/footer.php';?>