-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview_packages_T.php
95 lines (71 loc) · 3.37 KB
/
view_packages_T.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
84
85
86
87
88
89
90
91
92
93
94
95
<?php
include_once 'header_T.php';
?>
<div>
<?php
require_once 'dbh.inc.php';
$select=mysqli_query($conn,"SELECT*FROM hotel_package");
?><br><br>
<div class="form-group">
<input type="text" id="myInput" onkeyup="searchTable()" placeholder="Search.." class="form-control">
</div>
<form action="./add_packages_T.php" method="post">
<div class="addbutton">
<button type="submit" class="addnew_T" name="add_T">ADD NEW</button>
</div>
</form>
<section class="View_Data_T2" >
<div class="content_package">
<p>
<table id="mySection" >
<?php
while($row=mysqli_fetch_assoc($select)){
?>
<tr>
<td>
<div class="image">
<img src="<?php echo $row['Image'];?>" height=100 alt="Package_image" class="image1">
</div>
</td>
<td><?php echo $row['Package_ID'];?></td>
<td>
<?php echo $row['Package_Name'];?>
</td>
<td> <?php echo $row['Administrator_ID'];?></td>
<td>
<?php echo $row['Package_Description'];?>
</td>
<td>
<?php echo $row['Package_Price'];?>
</td>
<td>
<?php echo $row['Hotel_ID'];?>
</td>
<td>
<?php echo $row['Room_Class_ID'];?>
</td>
<td>
<?php echo $row['Package_Type'];?>
</td>
<td>
<form action="edit_packages_T.php" method="GET">
<input type="hidden" name="edit" value="<?php echo $row['Package_ID']; ?>">
<button type="submit" class="edit_T"><i class="material-icons">edit</i></button>
</form>
</td>
<td>
<form action="delete_packages_T.inc.php" method="GET">
<input type="hidden" name="delete" value="<?php echo $row['Package_ID']; ?>">
<button type="submit" class="delete_T" onclick = "return deletePkg()"><i class="material-icons">delete</i></button>
</form>
</td>
</tr>
<?php };?>
</table>
</p>
</div>
</section>
</div>
<?php
include_once 'footer_T.php';
?>