-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.php
87 lines (85 loc) · 2.02 KB
/
user.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
<?php
include 'include/navbar.php';
include 'include/connect.php';
?>
<script>
$(document).ready(function () {
$("#use").click(function () {
window.location.href="user.php";
});
$("#cat").click(function () {
window.location.href="adminkapage.php";
});
});
</script>
<style>
th{
font-family: tahoma;
font-weight: 100;
font-size: 20px;
text-align: left;
}
</style>
<table width="100% ">
<tr>
<th>
Name
</th>
<th>
Contact
</th>
<th>
Email
</th>
<th>
Address
</th>
<th>
Dob
</th>
<th>
Date Created
</th>
<th>
Activate
</th>
<th>
Ban User
</th>
</tr>
<?php
$rw = mysqli_query($link, "select * from registration");
while ($r = mysqli_fetch_array($rw)) {
?>
<tr>
<td><?php echo $r['name'] ?></td>
<td><?php echo $r['contact']; ?></td>
<td><?php echo $r['email'] ?></td>
<td><?php echo $r['address'] ?></td>
<td><?php echo $r['dob'] ?></td>
<td><?php echo $r['datecreated'] ?></td>
<td><?php if ($r['flag'] == 0) {
?>
<a href="activate.php?rid=<?php echo$r['rid'] ?>">Activate</a>
<?php
} elseif ($r['flag'] == 1) {
?>
Active
<?php
}
?></td>
<td><?php
if($r['flag']==1){
?>
<a href="ban.php?rid=<?php echo $r['rid']?>">Ban</a>
<?php
}else{
?>Not Active
<?php
}
?></td>
</tr>
<?php
}
?>
</table>