-
Notifications
You must be signed in to change notification settings - Fork 2
/
feedbackmanage.php
64 lines (54 loc) · 2.2 KB
/
feedbackmanage.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
<?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>
<td>
<main>
<h1>Feedback Manage </h1>
<table class= "insList">
<tr>
<th>ID</th>
<th>User Name</th>
<th>Feedback</th>
<th>Action</th>
</tr>
<?php
include('dbconfig.php');
$records = mysqli_query($conn,"select * from userfeedback"); // fetch data from database
while($data = mysqli_fetch_array($records))
{
?>
<tr>
<td><?php echo $data['id']; ?></td>
<td><?php echo $data['username']; ?></td>
<td><?php echo $data['feedback']; ?></td>
<td><a href="deletefeedback.php?feedbackid=<?php echo $data['id']; ?>">Delete Feedback</a></td>
</tr>
<?php
}
?>
</table>
</main>
</td>
</tr>
</table>
<?php include('footer.php'); ?>