-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanageinfo1.php
83 lines (76 loc) · 2.33 KB
/
manageinfo1.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
<!DOCTYPE html>
<?php
include("database.php");
?>
<html lang="en">
<head>
<title></title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="css/style1.css" />
</head>
<body>
<nav style="background-color:rgba(0, 0, 0, 0.1);" class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<h2 class="heading-title"> Online Hotel Reservation. </h2>
</div>
</div>
</nav>
<div class="home-packages">
<div class="content">
<div class="about">
<a class="btn btn-success" href="add_info.php"><i class="glyphicon glyphicon-plus"></i> Add package</a>
</div>
<table id="table" class="center">
<thead>
<tr>
<th>ID</th>
<th>pname</th>
<th>pdescription</th>
<th>pi_main</th>
<th>pi1</th>
<th>pi2</th>
<th>pi3</th>
<th>package</th>
</tr>
</thead>
<tbody>
<?php
$query = $db->query("SELECT * FROM `information`") or die(mysqli_error());
while ($fetch = $query->fetch_array()) {
?>
<tr>
<td><?php echo $fetch['id'] ?></td>
<td><?php echo $fetch['pname'] ?></td>
<td><?php echo $fetch['pdescription'] ?></td>
<td>
<center><img src="<?php echo $fetch['pi_main'] ?>" height="50" width="50" /></center>
</td>
<td>
<center><img src="image/<?php echo $fetch['pi1'] ?>" height="auto" width="auto" /></center>
</td>
<td>
<center><img src="image/<?php echo $fetch['pi2'] ?>" height="50" width="50" /></center>
</td>
<td>
<center><img src="image/<?php echo $fetch['pi3'] ?>" height="50" width="50" /></center>
</td>
<td><?php echo $fetch['package'] ?></td>
<td>
<center><a class="btn btn-warning" href="editinfo1.php?id=<?php echo $fetch['id'] ?>">Edit</a></br> <a class="btn btn-danger" onclick="confirmationDelete(this); return false;" href="delete_info.php?id=<?php echo $fetch['id'] ?>"></i> Delete</a></center>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
<br />
<br />
</br><a href="admin.php" onclick="myFunction(document.getElementById(this.id))">Back</a>
</body>
</html>