-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
180 lines (141 loc) · 6.96 KB
/
admin.php
File metadata and controls
180 lines (141 loc) · 6.96 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
<!-- This is the admin home dashboard -->
<?php
session_start();
include 'config/database.php';
if ($_SESSION['id']=='') {
header('Location:index.php');
}
else{
$id=$_SESSION['id'];
$sql="SELECT * FROM user WHERE id='$id'";
$qry=mysqli_query($conn,$sql);
$row=mysqli_fetch_array($qry);
include 'include/header.php'; ?>
<!-- start of navbar-->
<nav class="navbar navbar-expand-lg navbar-dark m-0 " style="background-color: rgb(2, 96, 112);">
<a class="navbar-brand" href="#"><b><i>Krismo</i><i class="text-danger">.com</i></b></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" >
<!-- right navigation -->
<ul class="order-1 order-md-3 navbar-nav navbar-no-expand ml-auto">
<li class="nav-item">
<a href="profile.html" class="nav-link text-danger " style="font-weight:bolder;"><i class="fa fa-circle text-success"></i> <?php echo $row['fname'].' '.$row['lname']; ?></a>
</li>
<li class="nav-item">
<a href="config/logout.php" class="nav-link text-light" style="font-weight: bolder;"><i class="fas fa-sign-out-alt "></i> Log Out</a>
</li>
</ul>
</div>
</nav>
<!-- End of navbar -->
<body class="bg-light p-0" >
<div class="wrapper navbar-expand-lg ">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="row mx-auto">
<div class="col-md-8 mx-auto text-center" id="home">
<div class="p-2">
<h4 class="text-bold" style=" color: rgb(2, 96, 112);font-weight:bold;"><i class="fa fa-user-tie"></i> Welcome Back <?php echo $row['fname']; ?> To Krismo Microfinance</h4>
<hr>
<div class="row">
<!-- Small boxes (Stat box) -->
<!-- Earnings -->
<div class="col-md-12 text-center ">
<!-- small box -->
<div class="card bg-success">
<div class="card-body">
<br>
<h3>***********</h3>
<p>Remaining Float</p>
</div>
<div class="card-footer">
<a href="savings.php" class="small-box-footer text-dark">View <i class="fas fa-arrow-circle-right"></i></a>
</div>
</div>
</div>
<!-- ./col -->
<br>
<div class="col-md-12 text-center mt-2">
<!-- small box -->
<div class="card bg-warning">
<div class="card-body">
<br>
<h3>*************</h3>
<p>Offered Loans</p>
</div>
<div class="card-footer">
<a href="savings.php" class="small-box-footer text-dark">View <i class="fas fa-arrow-circle-right"></i></a>
</div>
</div>
</div>
<!-- ./col -->
<div class="col-md-12 mt-1 text-center ">
<!-- small box -->
<div class="card bg-danger">
<div class="card-body">
<br>
<h3>************</h3>
<p>Total Profit</p>
</div>
<div class="card-footer">
<a href="savings.php" class="small-box-footer text-dark">View <i class="fas fa-arrow-circle-right"></i></a>
</div>
</div>
</div>
<!-- ./col -->
</div>
</div>
<div class="collapse p-2 a" id="collapseExample1" data-toggle="collapse" href=".a #navbarNav" role="button" aria-expanded="false ">
<div class="card mx-auto ">
Notifications
</div>
</div>
<div class="row collapse p-2 a" id="collapseExample" id="collapseExample1" data-toggle="collapse" href=".a" role="button" aria-expanded="false">
<div class="col-lg-12 mx-auto p-4 ">
<div class="col-md-12 mx-auto">
<div class="card bg-dark p-2" style=" color: rgb(2, 96, 112);border:1px solid red;" >
<div class="card-header" style="background-color: rgb(2, 96, 112);"></div>
<div class="card-body bg-light">
<p class="text-left " style="font-weight: bold;"><i class="fas fa-user-tie text-danger "></i> Owner :<hr></p>
<p class="text-left " style="font-weight: bold;"><i class="fas fa-credit-card text-danger "></i> Account No: <hr></p>
<p class="text-left " style="font-weight: bold;"><i class="far fa-money-bill-alt text-danger "></i> Account Balance: <hr></p>
<hr>
</div>
<div class="card-footer bg-secondary"></div>
</div>
</div>
<br>
<a href="" class="btn float-left text-light" style="background-color: rgb(2, 96, 112);"><i class="fa fa-pen"></i> Update Card</a>
</div>
</div>
</div>
<!-- start of admin side nav -->
<?php include 'include/adminnav.php'; ?>
<!-- end of admin side nav -->
</div>
</div>
<section class="mt-3">
<div class="row">
</div>
</section>
<footer class=" bg-dark text-light text-center mt-2 mb-0" style="height:100px;">
<br>
<strong class="text-light">Copyright © 2022 <a class="text-danger">TazarChriss</a>.</strong>
All rights reserved.
<div class="float-right d-none d-sm-inline-block">
</div>
<br>
<h1> </h1>
</footer>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.14.7/dist/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>
<?php
}?>