forked from gsanchit01/myfoundationbank
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprof.php
More file actions
183 lines (172 loc) · 5.19 KB
/
prof.php
File metadata and controls
183 lines (172 loc) · 5.19 KB
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
179
180
181
182
183
<?php
include('open.php');
$userid = $_GET['userid'];
$qur="SELECT * FROM `customers` WHERE userid='$userid'";
$result = $con->query($qur);
$row = $result->fetch_assoc();
?>
<!doctype html>
<html lang="en">
<head>
<title><?php echo $row["name"]; ?> - Profile</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.14.0/css/all.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="navbar navbar-dark navbar-expand-sm bg-dark fixed-top">
<div class="container">
<a href="./" class="navbar-brand">
<i class="fas fa-blog"></i>
Foundation Bank
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
<div id="navbarCollapse" class="collapse navbar-collapse">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a href="./" class="nav-link active">
Home
</a>
</li>
<li class="nav-item">
<a href="./newreg.php" class="nav-link active">
New Customers
</a>
</li>
<li class="nav-item">
<a href="./table.php" class="nav-link active">
All Customers
</a>
</li>
<li class="nav-item">
<a href="./transfer.php" class="nav-link active">
Transfer
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="backg">
<div class="contain">
<div class="content pt-6 pl-5 pr-5">
<div class="left">
<div>
<img class="med" src="https://static.vecteezy.com/system/resources/thumbnails/001/234/725/small/side-portrait-of-a-black-man.jpg" height="150px" alt="...">
</div>
<div>
<h3 class="pt-4"><?php echo $row["name"]; ?></h3>
</div><hr class="mr-2">
<div>
<a href="./" class="nav-link">
Home
</a>
<a href="./table.php" class="nav-link">
All Customers
</a>
<a href="./newreg.php" class="nav-link">
New Customers
</a>
<a href="./transfer.php" class="nav-link">
Transfer
</a>
</div>
</div>
<div class="right">
<div>
</div>
<div class="pt-4 pr-2 disp">
<div class="alig pt-2 pr-2">
<p><b>Email-</b> <?php echo $row["email"]; ?></p>
</div>
<div class="alig pt-2 pl-5 pr-2">
<p><b>Phone-</b> <?php echo $row["phone"]; ?></p>
</div>
</div>
<div class="alig pt-2 pl-1 pr-2 disp">
<p><b>Current Balance-</b> <?php echo $row["currbal"]; ?></p>
</div>
<hr>
<h5>Transactions</h5><br>
<div id="no-more-tables">
<table class="col-md-12 table-bordered table-dark table-hover table-sm pb-3 pt-3 table-striped table-condensed cf">
<thead class="cf ">
<tr>
<th>Sr No.</th>
<th class="numeric">Transaction ID</th>
<th class="numeric">Sender</th>
<th class="numeric">Reciver</th>
<th class="numeric">Amount</th>
</tr>
</thead>
<tbody>
<?php
include('open.php');
$qur="SELECT * FROM `transfers` WHERE sender='$userid'";
$result = $con->query($qur);
$count=mysqli_num_rows($result);
for ($i=1; $i<=$count;$i++) {
$rows = $result->fetch_assoc();
?>
<tr>
<td data-title=Sr No.>
<?php echo $i; ?>
</td>
<td data-title=Transaction ID>
<?php echo $rows["tranxid"]; ?>
</td>
<td data-title=Sender>
<?php echo $rows["sender"]; ?>
</td>
<td data-title=Reciver>
<?php echo $rows["reciver"]; ?>
</td>
<td data-title=Amount>
<?php echo $rows["amount"]; ?>
</td>
</tr>
<?php
}
$qur="SELECT * FROM `transfers` WHERE reciver='$userid'";
$result = $con->query($qur);
$count=mysqli_num_rows($result);
for ($i=1; $i<=$count;$i++) {
$rowr = $result->fetch_assoc();
?>
<tr>
<td data-title=Sr No.>
<?php echo $i; ?>
</td>
<td data-title=Transaction ID>
<?php echo $rowr["tranxid"]; ?>
</td>
<td data-title=Sender>
<?php echo $rowr["sender"]; ?>
</td>
<td data-title=Reciver>
<?php echo $rowr["reciver"]; ?>
</td>
<td data-title=Amount>
<?php echo $rowr["amount"]; ?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
</body>
</html>