-
Notifications
You must be signed in to change notification settings - Fork 0
/
orders.php
91 lines (83 loc) · 3.04 KB
/
orders.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
<!DOCTYPE html>
<html>
<head>
<title>Students Space</title>
<?php include 'head.php'; ?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<style>
.container-fluid {
margin-top: 50px;
}
.container-fluid h1 {
font-size: 2.5rem;
margin-top: 2rem;
margin-bottom: 2rem;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.2rem;
}
th {
font-size: 20px;
font-weight: bold;
}
td {
font-size: 18px;
}
.text-danger,
.text-success {
font-size: 24px;
margin-right: 5px;
}
</style>
</head>
<body>
<?php include 'header.php'; ?>
<div class="container-fluid">
<h1>MY ORDERS</h1>
<div class="row justify-content-center">
<div class="col-md-12">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Course Name</th>
<th>Course Price</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<?php
$q = mysqli_query($con, "select * from tblcart,tblcourse where tblcourse.courseid=tblcart.courseid and uid='" . $_SESSION['uid'] . "' and status>=1");
while ($r = mysqli_fetch_array($q)) { ?>
<tr>
<td><?php echo $r['coursename']; ?></td>
<td>
₹<?php $z += $r['coursedprice'];
echo $r['coursedprice']; ?>/-
</td>
<td>
<?php if ($r['status'] == 1) { ?>
<i class="fas fa-times text-danger"></i> Not
Paid
<?php } else { ?>
<i class="fas fa-check text-success"></i>
Paid
<?php } ?>
</td>
</tr>
<?php
}
?>
<tr>
<td>Total Bill:</td>
<td>₹<?php echo $z; ?>/-</td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<?php include 'footer.php'; ?>
</body>
</html>