updated sidebar, setting, user query pagr
This commit is contained in:
parent
21bbb2f370
commit
49e3e9eb63
3 changed files with 43 additions and 43 deletions
|
@ -19,8 +19,8 @@
|
||||||
<li class="nav-item" id="dashboard">
|
<li class="nav-item" id="dashboard">
|
||||||
<a class="nav-link text-white" href="dashboard.php">Dashboard</a>
|
<a class="nav-link text-white" href="dashboard.php">Dashboard</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item" id="rooms">
|
<li class="nav-item" id="accomm">
|
||||||
<a class="nav-link text-white" href="rooms.php">Rooms</a>
|
<a class="nav-link text-white" href="accomm.php">Accommodation</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item" id="user_query">
|
<li class="nav-item" id="user_query">
|
||||||
<a class="nav-link text-white" href="user_query.php">User Query</a>
|
<a class="nav-link text-white" href="user_query.php">User Query</a>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Settings | Midtown Hotel</title>
|
<title>Admin Dashboard-settings | Midtown Hotel</title>
|
||||||
<?php require('components/link.php')?>
|
<?php require('components/link.php')?>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>User Query | Midtown Hotel</title>
|
<title>Admin Dashboard-user Query | Midtown Hotel</title>
|
||||||
<?php require('components/link.php')?>
|
<?php require('components/link.php')?>
|
||||||
<style>
|
<style>
|
||||||
.btn-seen{
|
.btn-seen{
|
||||||
|
@ -90,47 +90,47 @@
|
||||||
<a href="?del=all" class='btn-cancle'>Delete All</a>
|
<a href="?del=all" class='btn-cancle'>Delete All</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive-md" style="height: 450px; overflow-y: scroll;">
|
<div class="table-responsive-md" style="height: 450px; overflow-y: scroll;">
|
||||||
<table class="table table-hover border">
|
<table class="table table-hover border">
|
||||||
<thead class="sticky-top">
|
<thead class="sticky-top">
|
||||||
<tr style="background-color: #D3D3D3;">
|
<tr style="background-color: #D3D3D3;">
|
||||||
<th scope="col">#</th>
|
<th scope="col">#</th>
|
||||||
<th scope="col">Name</th>
|
<th scope="col">Name</th>
|
||||||
<th scope="col">Email</th>
|
<th scope="col">Email</th>
|
||||||
<th scope="col" width="20%">Subject</th>
|
<th scope="col" width="20%">Subject</th>
|
||||||
<th scope="col" width="30%">Message</th>
|
<th scope="col" width="30%">Message</th>
|
||||||
<th scope="col">Date</th>
|
<th scope="col">Date</th>
|
||||||
<th scope="col">Status</th>
|
<th scope="col">Status</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
$q = "SELECT * FROM `user_query` ORDER BY `sr_no` DESC";
|
$q = "SELECT * FROM `user_query` ORDER BY `sr_no` DESC";
|
||||||
$data = mysqli_query($con, $q);
|
$data = mysqli_query($con, $q);
|
||||||
$i = 1;
|
$i = 1;
|
||||||
|
|
||||||
while($row = mysqli_fetch_assoc($data)){
|
while($row = mysqli_fetch_assoc($data)){
|
||||||
$seen = '';
|
$seen = '';
|
||||||
if($row['seen'] != 1){
|
if($row['seen'] != 1){
|
||||||
$seen = "<a href='?seen=$row[sr_no]' class='btn-seen'>Read</a>";
|
$seen = "<a href='?seen=$row[sr_no]' class='btn-seen'>Read</a>";
|
||||||
|
}
|
||||||
|
$seen.="<a href='?del=$row[sr_no]' class='btn-cancle mx-1'>Delete</a>";
|
||||||
|
|
||||||
|
echo<<<query
|
||||||
|
<tr>
|
||||||
|
<td>$i</td>
|
||||||
|
<td>$row[name]</td>
|
||||||
|
<td>$row[email]</td>
|
||||||
|
<td>$row[subject]</td>
|
||||||
|
<td>$row[message]</td>
|
||||||
|
<td>$row[date]</td>
|
||||||
|
<td>$seen</td>
|
||||||
|
</tr>
|
||||||
|
query;
|
||||||
|
$i++;
|
||||||
}
|
}
|
||||||
$seen.="<a href='?del=$row[sr_no]' class='btn-cancle mx-1'>Delete</a>";
|
?>
|
||||||
|
</tbody>
|
||||||
echo<<<query
|
</table>
|
||||||
<tr>
|
|
||||||
<td>$i</td>
|
|
||||||
<td>$row[name]</td>
|
|
||||||
<td>$row[email]</td>
|
|
||||||
<td>$row[subject]</td>
|
|
||||||
<td>$row[message]</td>
|
|
||||||
<td>$row[date]</td>
|
|
||||||
<td>$seen</td>
|
|
||||||
</tr>
|
|
||||||
query;
|
|
||||||
$i++;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue