-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmincontactus.php
More file actions
112 lines (106 loc) · 4.6 KB
/
Copy pathadmincontactus.php
File metadata and controls
112 lines (106 loc) · 4.6 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<style>
a,th:hover{
background:yellow;
color:white;
}
#table tr {
height:auto;
width:100%;
border:5px inset;
background:violet;
}
th{
background:gray;
}
.ul{
background:gray;
}
</style>
</head>
<body>
<div class="container-fluid" style="background-color:gray;">
<div class="row">
<div class="col-sm-2">
<ul class="list-group">
<li class="list-group-item"><a href="#">Hotel Management</a></li>
<li class="list-group-item"><a href="#">Home</a></li>
<li class="list-group-item"><a href="#">About Us</a></li>
<li class="list-group-item"><a href="adminbookroom.php">Book Room</a></li>
<li class="list-group-item"><a href="room.php">Room List</a></li>
<li class="list-group-item"><a href="signupadmin.php">Sign Up</a></li>
<li class="list-group-item"><a href="#">Login</a></li>
<li class="list-group-item"><a href="admincontactus.php">Contact Us</a></li>
</ul>
</div>
<div class="col-sm-10">
<div class="row" style="height:50px;background:gray">
<div class="col-sm-10"></div>
<div class="col-sm-2">
<div class="dropdown">
<button class="btn btn-success dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown button
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</div>
</div>
<div class="row mt-5">
<table class="table table-bordered">
<thead>
<tr>
<th scope="col">id</th>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Email</th>
<th scope="col">Phone</th>
<th scope="col">Request or Query</th>
<th scope="col">Write us</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<?php
$conn=mysqli_connect("localhost","root","","hoteltbl");
$sel="select * from contactustbl";
$r=mysqli_query($conn,$sel);
while($k=mysqli_fetch_array($r,MYSQLI_BOTH))
{
?>
<tr>
<td><?php echo $k['0']?></td>
<td><?php echo $k['1']?></td>
<td><?php echo $k['2']?></td>
<td><?php echo $k['3']?></td>
<td><?php echo $k['4']?></td>
<td><?php echo $k['5']?></td>
<td><?php echo $k['6']?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</body>
</html>