-
Notifications
You must be signed in to change notification settings - Fork 0
/
managing_users.php
208 lines (126 loc) · 5.25 KB
/
managing_users.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
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<?php
include("connection.php");
include("function.php");
include("menubar3.php");
?>
<html>
<head>
<title>E Wed</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://cdn.datatables.net/1.11.3/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.11.3/js/dataTables.bootstrap4.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#example').DataTable();
});
</script>
</head>
<body style="background-color:#e8eff4">
<form class="border border-2 border-info rounded " style="margin-right:4%;margin-left:4%;background-color:white">
<br>
<center>
<h3 class="rounded" style="color:white;margin-right:1%;margin-left:1%;padding:1%;background-color:blue">VERIFIED USERS</h3>
</center><br>
<div class="container">
<table id="example" class="table table-dark table-hover table-striped table-bordered">
<thead>
<tr>
<th scope="col" style="color:whitesmoke">ID</th>
<th scope="col" style="color:whitesmoke">Image</th>
<th scope="col" style="color:whitesmoke">User Name</th>
<th scope="col" style="color:whitesmoke">Email</th>
<th scope="col" style="color:whitesmoke">KYC Status</th>
<th scope="col" style="color:whitesmoke">View Profile</th>
<th scope="col" style="color:whitesmoke">Remove</th>
</tr>
</thead>
<?php
$table = "SELECT * from profiledata where cid in (SELECT cid from status where profilestatus = 1) ";
$result = mysqli_query($con, $table);
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_assoc($result)) {
?>
<tr>
<td style="color:blue">
<?php echo $row["cid"]; ?>
</td>
<?php
$cid = $row["cid"];
$table_cid = "SELECT * from photos where cid = $cid";
$result_cid = mysqli_query($con, $table_cid);
$data_cid = mysqli_fetch_assoc($result_cid);
?>
<td>
<center>
<?php $profile = $data_cid["profiles"]; ?>
<img src="image_upload/images/<?php echo $profile; ?>" style="width: 40px;height: 40px;border-radius:20px;border:2px solid blue;" alt="No_Image" />
</center>
</td>
<?php
?>
<?php
?>
<td>
<?php echo $row["fname"] . " " . $row["lname"]; ?>
</td>
<?php
?>
<td>
<?php echo $row["email"]; ?>
</td>
<td>
<?php
$fetch_proof_status = "SELECT proof_status FROM status where cid = $cid";
$fetch_proof_status_result = mysqli_query($con, $fetch_proof_status);
$data_fetch_proof_status_result = mysqli_fetch_assoc($fetch_proof_status_result);
if ($data_fetch_proof_status_result["proof_status"] == 0) {
?>
<input type="button" readonly value="KYC To Be Processed" class="btn btn-outline-primary " style="color:white;" />
<?php
} elseif ($data_fetch_proof_status_result["proof_status"] == 2) {
?>
<input type="button" readonly value="KYC Rejected" class="btn btn-outline-danger " style="color:white;" />
<?php
} else {
?>
<input type="button" readonly value="KYC Approved" class="btn btn-outline-primary " style="color:white;" />
<?php
}
?>
</td>
<td>
<a href="managing_view.php?id=<?= $row["cid"] ?>" class="btn btn-outline-secondary" style="color:whitesmoke" ;>View</a>
</td>
<?php
?>
<?php
?>
<td>
<a href="managing_blacklist_remove.php?id=<?= $row["cid"] ?>" class="btn btn-outline-danger" style="color:whitesmoke" ;>Remove</a>
</td>
</tr>
<?php
}
} else {
?>
<tr>
<td colspan="7">
<center>
No New Entry
</center>
</td>
</tr>
<?php
}
?>
</table>
</div>
</form>
<script>
feather.replace()
</script>
</body>
</html>