-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathManage_user.php
More file actions
142 lines (114 loc) · 3.52 KB
/
Manage_user.php
File metadata and controls
142 lines (114 loc) · 3.52 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
<?php
include("connection.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>User Profile</title>
</head>
<body>
<!-- Include Dashboard -->
<?php include("user_dashboard.php"); ?>
<!-- Include Dashboard -->
<div id="page-wrapper" class="gray-bg dashbard-1">
<div class="content-main">
<!--banner-->
<div class="banner">
<h2>
<a href="user_dash.php">Dashboard</a>
<i class="fa fa-angle-right"></i>
<span>Profile</span>
</h2>
</div>
<!--//banner-->
<!--gallery-->
<div class=" profile">
<div class="profile-bottom">
<h3><i class="fa fa-user"></i>Profile</h3>
<div class="profile-bottom-top">
<div class="col-md-4 profile-bottom-img">
<img src="images/<?php echo $_SESSION['img']?>" height="130px;" width="130px;" style="margin-left:20px;margin-top:-10px;">
<div class="profile-fo" style="margin-top:15px; margin-left:8px;">
<!-- PHP Start -->
<?php
if($_SESSION['user'] == "Majid")
{
$fetch = "select * from user_info where id = 1001";
$row = mysqli_query($con,$fetch);
while($data = mysqli_fetch_assoc($row))
{
echo "
<a href='Edit_user.php?id=$data[id]'><i class='fa fa-user'></i>Edit Profile</a>
</div>
";
}
}
else if($_SESSION['user'] == "umair")
{
$fetch = "select * from user_info where id = 2";
$row = mysqli_query($con,$fetch);
while($data = mysqli_fetch_assoc($row))
{
echo "
<a href='Edit_user.php?id=$data[id]'><i class='fa fa-user'></i>Edit Profile</a>
</div>
";
}
}
else if($_SESSION['user'] == "Wajid")
{
$fetch = "select * from user_info where id = 41";
$row = mysqli_query($con,$fetch);
while($data = mysqli_fetch_assoc($row))
{
echo "
<a href='Edit_user.php?id=$data[id]'><i class='fa fa-user'></i>Edit Profile</a>
</div>
";
}
}
else if($_SESSION['user'] == "Sarfaraz")
{
$fetch = "select * from user_info where id = 42";
$row = mysqli_query($con,$fetch);
while($data = mysqli_fetch_assoc($row))
{
echo "
<a href='Edit_user.php?id=$data[id]'><i class='fa fa-user'></i>Edit Profile</a>
</div>
";
}
}
?>
<!-- End Here -->
</div>
<div class="col-md-8 profile-text">
<h6 style="text-decoration:underline;">User Profile</h6>
<table>
<tr><td>Name</td>
<td>:</td>
<td><?php echo $_SESSION['user'];?></td></tr>
<tr>
<td>Email</td>
<td> :</td>
<td><a href=""><?php echo $_SESSION['gmail'];?></a></td>
</tr>
<td>Password</td>
<td>:</td>
<td><?php echo $_SESSION['pas']?></td>
</tr>
<tr>
</table>
</div>
<div class="clearfix"></div>
</div>
<div class="profile-bottom-bottom">
</div>
</div>
<!--//gallery End Here-->
</body>
</html>