-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewusers.php
178 lines (178 loc) · 4.15 KB
/
viewusers.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<html>
<head>
<title>User Details</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src='https://kit.fontawesome.com/a076d05399.js' crossorigin='anonymous'></script>
<link rel="shortcut icon" href="sign.png">
<style>
body {
font-family: "Open Sans", sans-serif;
line-height: 1.25;
}
.logo-text, .nav-link1{
color: black;
padding-top: 25px;
font-size:25px;
font-weight: bold;
text-align: center;
}
.button {
background-color: royalblue;
order: none;
color: white;
padding: 5px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 20px;
margin: 4px 2px;
border-radius: 10px;
}
.button1{
background-color: royalblue;
border: none;
color: white;
padding: 5px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 13px;
margin: 4px 2px;
border-radius: 20px;
}
.button:hover, .button1:hover{
background-color: navy;
color: whitesmoke;
}
.button:active, .button11:active{
background-color: #02c39a;
}
table {
border: 1px solid #ccc;
border-collapse: collapse;
margin:auto;
padding: 0;
width:90%;
table-layout:auto;
}
table caption {
font-size: 1.5em;
margin: .5em 0 .75em;
}
table tr {
background-color: #f8f8f8;
border: 1px solid #ddd;
padding: .35em;
}
table th,
table td {
padding: .625em;
text-align: center;
}
table th {
font-size: .85em;
letter-spacing: .1em;
text-transform: uppercase;
}
@media screen and (max-width: 600px) {
table {
border: 0;
}
table caption {
font-size: 1.3em;
}
table thead {
border: none;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
table tr {
border-bottom: 3px solid #ddd;
display: block;
margin-bottom: .625em;
}
table td {
border-bottom: 1px solid #ddd;
display: block;
font-size: .8em;
text-align: right;
}
table td::before {
/*
* aria-label has no advantage, it won't be read inside a table
content: attr(aria-label);
*/
content: attr(data-label);
float: left;
font-weight: bold;
text-transform: uppercase;
}
table td:last-child {
border-bottom: 0;
}
}
</style>
</head>
<body style="background-color:#add8e6 ; ">
<?php
require 'config.php';
$query = "SELECT * FROM user_info";
$result = mysqli_query($conn,$query);
?>
<table>
<div >
<a href="index.php">
<button class="button1">HOME</button>
</a>
</div>
<nav class="navbar navbar-light" style="background-color:#8bbdd9;" >
<p class="logo-text">Flecca Bank</p>
</nav>
<caption>Customer Details</caption>
<thead>
<tr>
<th scope="col">Customer Id</th>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Email Id</th>
<th scope="col">Phone Number</th>
<th scope="col">Account Balance</th>
<th scope="col">Operation</th>
</tr>
</thead>
<tbody>
<?php
while($rows=mysqli_fetch_array($result)){
?>
<tr>
<td scope="row" data-label="Customer Id"><?php echo $rows['id'] ?></td>
<td scope="row" data-label="First Name"><?php echo $rows['firstname']?></td>
<td scope="row" data-label="Last Name"><?php echo $rows['lastname']?></td>
<td scope="row" data-label="Email Id"><?php echo $rows['email_id']?></td>
<td scope="row" data-label="Phone Number"><?php echo $rows['phone_number']?></td>
<td scope="row" data-label="Account Balance"><?php echo $rows['account_Balance']?></td>
<td><a href="selecteduser.php?id= <?php echo $rows['id'] ;?>"> <button type="button" class="button">Transfer</button></a></td>
</tr>
<?php
}
?>
</tbody>
</table>
<center><div >
<a href="index.php">
<button class="button">HOME</button>
</a>
</div></center>
<footer class="footer1" align="center"> <br>
<div style="height:auto" >
<p>© 2021 Made by <b>Dhaval Mandaliya</b></p>
</div>
</footer>
</body>
</html>