-
Notifications
You must be signed in to change notification settings - Fork 0
/
adminuserblacklist.php
140 lines (93 loc) · 3.98 KB
/
adminuserblacklist.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
<?php
include("connection.php");
include("function.php");
include("menubar2.php");
?>
<html>
<head>
<title>E Wed</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/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 type="text/javascript">
$(document).ready(function() {
$('#example').DataTable();
});
</script>
</head>
<body>
<!-- <body style="background-color:#e8e8e8;"> -->
<!-- <form class="border border-2 border-dark rounded " style="margin-right:4%;margin-left:4%;background-color:cadetblue"> -->
<form class="rounded border border-info" style="margin-right:4%;margin-left:4%;background-color:#e2ebeb">
<br>
<center>
<h3 class="bg-dark rounded" style="color:blue;margin-right:1%;margin-left:1%;padding:1%">BLACKLISTED USERS</h3>
</center><br><br>
<div class="container">
<table id="example" class="table table-dark table-hover table-striped table-bordered">
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">User Name</th>
<th scope="col">Email</th>
<th scope="col">Password</th>
<th scope="col">View Profile</th>
<th scope="col">Confirm</th>
</tr>
</thead>
<?php
$table = "SELECT * from login where id in (SELECT cid from status where profilestatus = 5) ";
$result = mysqli_query($con, $table);
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_assoc($result)) {
?>
<tr>
<td>
<?php echo $row["id"]; ?>
</td>
<?php
?>
<td>
<?php echo $row["fname"] . " " . $row["lname"]; ?>
</td>
<?php
?>
<td>
<?php echo $row["email"]; ?>
</td>
<td>
<?php echo $row["password"]; ?>
</td>
<?php
?>
<td>
<!-- <?php echo $row["id"]; ?> -->
<!-- <input type="button" value="view" id=<?php $row["id"]; ?> name="view" style="border-radius:5px;color:black"/> -->
<a href="view.php?id=<?= $row["id"] ?>" class="btn btn-outline-secondary" style="color:whitesmoke" ;>View</a>
</td>
<?php
?>
<td>
<!-- <?php echo $row["id"]; ?> -->
<!-- <input type="button" value="confirm" id=<?php $row["id"]; ?> name="confirm" style="background:red;border-radius:5px;color:white"/> -->
<a href="confirmadmin.php?id=<?= $row["id"] ?>" class="btn btn-outline-primary" style="color:whitesmoke" ;>Confirm</a>
</td>
<?php
?>
<!-- <td> -->
<!-- <?php echo $row["id"]; ?> -->
<!-- <input type="button" value="remove" id=<?php $row["id"]; ?> name="remove" style="background:blue;border-radius:5px;color:white"/> -->
<!-- <a href="blacklist.php?id=<?= $row["id"] ?>" class="btn btn-outline-danger" style="color:whitesmoke";>Remove</a> -->
<!-- </td> -->
</tr>
<?php
}
}
?>
</table>
</div>
</form>
</body>
</html>