-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.php
More file actions
96 lines (66 loc) · 2.39 KB
/
dashboard.php
File metadata and controls
96 lines (66 loc) · 2.39 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
<?php
require "partials/header.php";
?>
<body>
<br>
<!-- navbar -->
<?php
include 'partials/navbar.php';
?>
<br>
<!-- navbar end -->
<!-- middleware file -->
<?php
// connection setup done
require "config/config.php";
// connect transfer files
require "sql/dashboardinfo.php";
?>
<!-- take the data from contacts db and then print the values -->
<div class="container">
<div class="jumbotron " style="background-color: #fff;">
<div class="p-4" style=" background-color:#fff">
<h6 class="display-4 font-weight-bold text-dark">Hi, Welcome Back <span style="color:#0eb1d2"> :)</span>
</h6>
<p class="lead font-weight-bold text-dark">Dev Haritwal</p>
<div class="w-25 " style="color: #8d99ae;" role="alert"> Completed Transactions</div>
</div>
<hr class="my-4">
<!-- all the transactions fetched from db -->
<div class="container-md p-1">
<table class="table border">
<thead>
<tr style="color: #fff; background-color: #6c7ae0; ">
<div class="row">
<div class="col-lg-6 md-3">
<th scope="col">Amount</th>
</div>
<div class="col-lg-6">
<th scope="col">UPI</th>
</div>
</div>
</tr>
</thead>
<tbody>
<?php
// sql statement to get the data from database
while ($row = mysqli_fetch_assoc($result)) {
$upis = $row['upi'];
$amount = $row['amount'];
echo " <tr>
<td> $amount </td>
<td> $upis </td>
</tr>";
}
?>
</tbody>
</table>
</div>
<hr class="my-4">
</div>
</div>
<!-- layout end -->
<!-- footer -->
<?php
include 'partials/footer.php';
?>