-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.php
More file actions
181 lines (154 loc) · 6.91 KB
/
profile.php
File metadata and controls
181 lines (154 loc) · 6.91 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
<!-- This is the user's profile page -->
<?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);
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!-- Font Awesome icons -->
<!-- Font Awesome -->
<link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
<!-- digital fonts -->
<link href="http://fonts.cdnfonts.com/css/alarm-clock" rel="stylesheet">
<title>www.krismo.com</title>
</head>
<style>
@import url('http://fonts.cdnfonts.com/css/alarm-clock');
</style>
<!-- start of navbar-->
<?php include 'include/navbar.php'; ?>
<!-- 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">
<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">
<div class="col-md-4 mt-4 mb-3 mx-auto">
<img src="assets/img/body.jpg" style="width:100%;" alt="profile Image">
</div>
<br>
<table class="text-left">
<div class="row">
<tr>
<td class="bg-dark col-md-4 text-light">
First Name
</td>
<td class="col-md-8">
<h5><?php echo $row['fname']; ?></h5>
</td>
</tr>
<tr><td></td></tr>
<tr class="">
<td class="bg-dark text-light col-md-4">
Middle Name
</td>
<td class="col-md-8">
<h5><?php echo $row['mname']; ?></h5>
</td>
</tr>
<tr><td></td></tr>
<tr>
<td class="bg-dark text-light col-md-4">
Last Name
</td>
<td class="col-md-8">
<h5><?php echo $row['lname']; ?></h5>
</td>
</tr>
<tr><td></td></tr>
<tr>
<td class="bg-dark text-light col-md-4">
Email
</td>
<td class="col-md-8">
<h5><?php echo $row['email']; ?></h5>
</td>
</tr>
<tr><td></td></tr>
<tr>
<td class="bg-dark text-light col-md-4">
NIN
</td>
<td class="col-md-8">
<h5><?php echo $row['nin']; ?></h5>
</td>
</tr>
</div>
</table>
<br>
</div>
</div>
</div>
<!-- start of side navigation menu -->
<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 side navbar -->
<?php if ($row['role']=='1') {
include 'include/adminnav.php';
}
else
{
include 'include/customernav.php';
}
?>
<!-- end of side navbar -->
</div>
</div>
<section class="mt-3">
<div class="row">
</div>
</section>
<footer class="fixed-bottom 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 } ?>