-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmoney.php
129 lines (108 loc) · 5.94 KB
/
money.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<title>SPARKS BANK</title>
<link rel="stylesheet" href="css/style2.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap" rel="stylesheet">
<body>
<?php
include 'connect.php';
$sql = "SELECT * FROM users";
$result = mysqli_query($conn, $sql);
?>
<!-- Nav bar -->
<nav class="navbar py-2 navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">SPARKS BANK <img src="logos/logo.webp" alt="Bank" width="50" height="50"></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-8 mb-lg-0">
<li class="nav-item py-3">
<a class="nav-link" aria-current="page" href="index.php"><strong>Home</strong></a>
</li>
<li class="nav-item dropdown py-3">
<a class="nav-link dropdown-toggle active" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Actions
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item py-3" href="#">Money Transfer</a></li>
<li><a class="dropdown-item py-3" href="history.php">Transaction History</a></li>
</ul>
</li>
<li class="nav-item py-3">
<a class="nav-link" href="index.php">About</a>
</li>
</ul>
</div>
</div>
</nav>
<class class="welcome">
<h2>
<img src="logos/m1.webp" alt="Bank" width="75" height="75" style="font-weight: bold;"> <strong>Money
Transfer</strong> <img src="logos/m2.webp" alt="Bank" width="75" height="75">
</h2>
</class>
<!-- options -->
<div class="d-grip gap-2 col-6 mx-auto text-center p-3 mb-2">
<a href="history.php"><button type="button" class="btn btn-primary btn-lg mb-3">See all Transaction History</button></a>
</div>
</div>
<div class="container">
<div class="row text-center">
<div class="col text-center">
<div class="table-responsive-sm">
<table class="table table-hover table-striped table-sm">
<thead style="color : black;" class="table-danger">
<tr>
<th scope="col" class="text-center py-2">S.No.</th>
<th scope="col" class="text-center py-2">Name</th>
<th scope="col" class="text-center py-2">E-Mail</th>
<th scope="col" class="text-center py-2">Balance</th>
<th scope="col" class="text-center py-2">Action</th>
</tr>
</thead>
<tbody>
<?php
while ($rows = mysqli_fetch_assoc($result)) {
?>
<tr style="color : black;">
<td class="text-center py-2">
<?php echo $rows['id'] ?>
</td>
<td class="text-center py-2">
<?php echo $rows['name'] ?>
</td>
<td class="text-center py-2">
<?php echo $rows['email'] ?>
</td>
<td class="text-center py-2">
<?php echo $rows['balance'] ?>
</td>
<td><a href="users.php?id= <?php echo $rows['id']; ?>"> <button class="btn btn-outline-dark btn">View and Transact</button></a></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
<!-- Option 2: Separate Popper and Bootstrap JS
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-q2kxQ16AaE6UbzuKqyBE9/u/KzioAlnx2maXQHiDX9d4/zp8Ok3f+M7DPm+Ib6IU" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-pQQkAEnwaBkjpqZ8RU1fF1AKtTcHJwFl3pblpTlHXybJjHpMYo79HY3hIi4NKxyj" crossorigin="anonymous"></script>
-->
</body>
</html>