diff --git a/hotel_booking/admin/accomm.php b/hotel_booking/admin/accomm.php
index 3de41dd..15e6b69 100644
--- a/hotel_booking/admin/accomm.php
+++ b/hotel_booking/admin/accomm.php
@@ -91,7 +91,7 @@
@@ -117,7 +117,7 @@
diff --git a/hotel_booking/admin/ajax/accomm.php b/hotel_booking/admin/ajax/accomm.php
index 9051437..50a1d7c 100644
--- a/hotel_booking/admin/ajax/accomm.php
+++ b/hotel_booking/admin/ajax/accomm.php
@@ -22,7 +22,7 @@
$i |
$row[name] |
-
+
|
data;
@@ -56,7 +56,7 @@
$row[name] |
$row[detail] |
-
+
|
data;
diff --git a/hotel_booking/admin/ajax/room.php b/hotel_booking/admin/ajax/room.php
index 816f1bc..16bec53 100644
--- a/hotel_booking/admin/ajax/room.php
+++ b/hotel_booking/admin/ajax/room.php
@@ -16,6 +16,7 @@
$flag = 1;
}
$room_id = mysqli_insert_id($con);
+
$q2 = "INSERT INTO `room_accommodation`(`room_id`, `accommodation_id`) VALUES (?, ?)";
if($stmt = mysqli_prepare($con, $q2)){
@@ -29,6 +30,24 @@
die('Query cannot be prepared - insert');
}
- //----->Next: create table for room additional accommodation and write function (same as accommodation)
+ //room additional accommodation
+ $q3 = "INSERT INTO `room_additionalAccom`(`room_id`, `additionalAccom_id`) VALUES (?, ?)";
+
+ if($stmt = mysqli_prepare($con, $q3)){
+ foreach($additional_accomm as $a){
+ mysqli_stmt_bind_param($stmt, 'ii', $room_id, $a);
+ mysqli_stmt_execute($stmt);
+ }
+ mysqli_stmt_close($stmt);
+ } else{
+ $flag = 0;
+ die('Query cannot be prepared - insert');
+ }
+
+ if($flag){
+ echo 1;
+ } else{
+ echo 0;
+ }
}
?>
\ No newline at end of file
diff --git a/hotel_booking/admin/common.css b/hotel_booking/admin/common.css
index 75c9e8a..f4aeecb 100644
--- a/hotel_booking/admin/common.css
+++ b/hotel_booking/admin/common.css
@@ -25,7 +25,7 @@
border-radius: 3px;
text-decoration: none;
}
-.btn-cancle{
+.btn-cancel{
background-color: #EE4E4E;
border: none;
color: white;
@@ -36,7 +36,7 @@
border-radius: 3px;
text-decoration: none;
}
-.btn-cancle:hover{
+.btn-cancel:hover{
background-color: #FF8080;
color: white;
transition: all 0.5s ease;
diff --git a/hotel_booking/admin/rooms.php b/hotel_booking/admin/rooms.php
index 27fadb1..24b2ab8 100644
--- a/hotel_booking/admin/rooms.php
+++ b/hotel_booking/admin/rooms.php
@@ -10,6 +10,14 @@
Admin Dashboard-rooms | Midtown Hotel
+
@@ -123,7 +131,7 @@
@@ -187,6 +195,8 @@
}
xhr.send(data);
}
+
+
diff --git a/hotel_booking/admin/settings.php b/hotel_booking/admin/settings.php
index 9054d11..fc5d264 100644
--- a/hotel_booking/admin/settings.php
+++ b/hotel_booking/admin/settings.php
@@ -43,7 +43,7 @@
@@ -202,7 +202,7 @@
@@ -238,7 +238,7 @@
diff --git a/hotel_booking/admin/user_query.php b/hotel_booking/admin/user_query.php
index ebb14c3..3251806 100644
--- a/hotel_booking/admin/user_query.php
+++ b/hotel_booking/admin/user_query.php
@@ -87,7 +87,7 @@
@@ -113,7 +113,7 @@
if($row['seen'] != 1){
$seen = "Read";
}
- $seen.="Delete";
+ $seen.="Delete";
echo<<