-
Notifications
You must be signed in to change notification settings - Fork 2
/
usermanage.php
66 lines (56 loc) · 2.27 KB
/
usermanage.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
<?php include('header.php'); ?>
<?php
session_start();
include("dbconfig.php");
include("adminfunctions.php");
$user_data = check_login($conn);
?>
<link rel="stylesheet" type="text/css" href="css/insStyles.css">
<link rel="stylesheet" type="text/css" href="css/adminNav.css"> <!--Admin vertical nav-->
<!--navi begin-->
<table class="content" >
<tr>
<td class="vertical">
<!--admin vertical navi-->
<nav>
<a href="usermanage.php"><i class="fa fa-group" style="font-size:24px"></i> User Details</a><br>
<a href="claimmanage.php"><i class="fa fa-angellist" style="font-size:24px"></i> Claim </a><br>
<a href="feedbackmanage.php"><i class="fa fa-comments-o" style="font-size:24px"></i> Feedback </a><br>
<a href="viewinsurancerequests.php"><i class="fa fa-handshake-o" style="font-size:24px"></i> Policy Holder </a><br>
<a href="insurancepolicy.php"><i class="fa fa-automobile" style="font-size:24px"></i> Insurance Policy</a><br>
<a href="adminlogout.php">Logout</a>
</nav>
</td>
<!--Insurance policy list-->
<td>
<main>
<h1>User Details </h1>
<table class= "insList">
<tr>
<th>Name</th>
<th>Email</th>
<th>User ID</th>
<th>Action</th>
</tr>
<?php
include('dbconfig.php');
$records = mysqli_query($conn,"select * from users"); // fetch data from database
while($data = mysqli_fetch_array($records))
{
?>
<tr>
<td><?php echo $data['user_name']; ?></td>
<td><?php echo $data['email']; ?></td>
<td><?php echo $data['user_id']; ?></td>
<td><a href="deleteuseradmin.php?deleteuser=<?php echo $data['user_id'] ?>">Delete Account</a></td>
</tr>
<?php
}
?>
</table>
</main>
</td>
</tr>
</table>
<!-- Footer -->
<?php include('footer.php'); ?>