-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadmin-profile.php
64 lines (42 loc) · 1.49 KB
/
admin-profile.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
<?php include_once('session-active.php'); ?>
<?php include("../../service/admin_service.php");?>
<!--dashboard options -->
<?php include("admindashboard.php");?>
<title>index</title>
<hr/>
<div id="main" align="center">
<div id="Registration">
<h3 style="color:blue;">MY PROFILE</h3>
<hr/>
</div>
<div>
<?php
//get the username from session
$username=$_SESSION['user_name'];
$result = get_admin_profile($username);
//echo $username;
while($row = mysqli_fetch_assoc($result)){
echo '<div align="center" style="width:400px;">
<label style="color:green;">First Name</label> : '.$row['first_name'].
'<br/> <hr/>
<label style="color:green;">Last Name</label> : '.$row['last_name'].
'<br/><hr/>
<label style="color:green;">Sex</label> : '.$row['gender'].
'<br/><hr/>
<label style="color:green;">Designation</label> : '.$row['designation'].
'<br/><hr/>
<label style="color:green;">E-mail Address</label> : '.$row['email'].
'<br/><hr/>
<label style="color:green;">Address</label> : '.$row['address'].
'<br/><hr/>
<label style="color:green;">Contact No</label> : '.$row['contact_no'].
'<br/><hr/>
<label style="color:green;">Joined At</label> : '.$row['created_at'].
'<br/><hr/>
</div>';
}
?>
</div>
</div>
<!--Bottom options -->
<?php //include("bottomfotor.php");?>