diff --git a/hotel_booking/admin/ajax/settings_crud.php b/hotel_booking/admin/ajax/settings_crud.php index ea483bc..629d62f 100644 --- a/hotel_booking/admin/ajax/settings_crud.php +++ b/hotel_booking/admin/ajax/settings_crud.php @@ -21,4 +21,14 @@ echo $res; } + + if(isset($_POST['upd_shutdown'])){ + $frm_data = ($_POST['upd_shutdown']==0) ? 1 : 0; + $q = "UPDATE `settings` SET `shutdown`=? WHERE `sr_no`=?"; + $values = [$frm_data,1]; + $res = update($q, $values, 'ii'); + + echo $res; + } + ?> \ No newline at end of file diff --git a/hotel_booking/admin/common.css b/hotel_booking/admin/common.css index 90d9c52..45b101a 100644 --- a/hotel_booking/admin/common.css +++ b/hotel_booking/admin/common.css @@ -49,7 +49,7 @@ } .custom-alert-t{ position: fixed; - top: -220px; + top: 20px; right: 20px; width: 320px; } diff --git a/hotel_booking/admin/settings.php b/hotel_booking/admin/settings.php index 49215be..4636b2a 100644 --- a/hotel_booking/admin/settings.php +++ b/hotel_booking/admin/settings.php @@ -18,7 +18,7 @@
Customers will not be allowed to book rooms when the shutdown mode is on.
+