-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransactionshist.php
70 lines (66 loc) · 3.32 KB
/
transactionshist.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
<!DOCTYPE html>
<html lang="en">
<head>
<!--Required Meta Tag-->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Transaction History</title>
<!--MY CSS-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="scss/style.css">
</head>
<body>
<?php
include 'navbar.php';
?>
<div class="container transaction user-select-none ">
<h2 class="title pt-4 text-primary fw-bold text-center">Transaction History</h2>
<p class="lead text-gray-700 text-center">
View every transaction anytime.
</p>
<div class="table-responsive my-2">
<table class="table table-sm table-hover table-striped table-bordered">
<thead class="table-dark">
<tr>
<th scope="col" class="text-center py-2">Sr No.</th>
<th scope="col" class="text-center py-2">Sender</th>
<th scope="col" class="text-center py-2">Receiver</th>
<th scope="col" class="text-center py-2">Amount (INR)</th>
<th scope="col" class="text-center py-2">Date & Time</th>
</tr>
</thead>
<tbody>
<?php
include 'config.php';
$sql = "SELECT * from transactions";
$query = mysqli_query($conn, $sql);
while ($rows = mysqli_fetch_assoc($query)) {
?>
<tr>
<td class="text-center py-2"><?php echo $rows['sr no.']; ?></td>
<td class="text-center py-2"><?php echo $rows['sender']; ?></td>
<td class="text-center py-2"><?php echo $rows['receiver']; ?></td>
<td class="text-center text-success py-2"><?php echo "Rs. " . $rows['amount']; ?></td>
<td class="text-center py-2"><?php echo $rows['date_time']; ?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
<?php
include 'footer.html';
?>
<!--My Scripts-->
<script src="./js/app.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
</body>
</html>