diff --git a/hotel_booking/admin/ajax/settings_crud.php b/hotel_booking/admin/ajax/settings_crud.php index 629d62f..9b7fd89 100644 --- a/hotel_booking/admin/ajax/settings_crud.php +++ b/hotel_booking/admin/ajax/settings_crud.php @@ -31,4 +31,15 @@ echo $res; } + if(isset($_POST['get_contact'])){ + $q = "SELECT * FROM `contact_detail` WHERE `sr_no`=?"; + $values = [1]; + $res = select($q, $values, "i"); + $data = mysqli_fetch_assoc($res); + $json_data = json_encode($data); + + echo $json_data; + } + + ?> \ No newline at end of file diff --git a/hotel_booking/admin/components/utils.php b/hotel_booking/admin/components/utils.php index 3b13e61..23e5f67 100644 --- a/hotel_booking/admin/components/utils.php +++ b/hotel_booking/admin/components/utils.php @@ -6,14 +6,16 @@ echo""; + exit; } - session_regenerate_id(true); + //session_regenerate_id(true); } function redirect($url){ echo""; + exit; } function alert($type, $msg){ diff --git a/hotel_booking/admin/settings.php b/hotel_booking/admin/settings.php index 4636b2a..f20559c 100644 --- a/hotel_booking/admin/settings.php +++ b/hotel_booking/admin/settings.php @@ -31,7 +31,7 @@ @@ -73,13 +219,13 @@ diff --git a/hotel_booking/contact.php b/hotel_booking/contact.php index fb3ae7b..2836ceb 100644 --- a/hotel_booking/contact.php +++ b/hotel_booking/contact.php @@ -204,7 +204,7 @@

Phone

-

(123) 456-7891

+

+1 (123) 456-7891

Email

@@ -229,7 +229,7 @@

Phone

-

(123) 456-7892

+

+1 (123) 456-7892

Email

@@ -254,7 +254,7 @@

Phone

-

(123) 456-7890

+

+1 (123) 456-7890

Email

@@ -266,8 +266,8 @@
@@ -278,12 +278,16 @@

9:00am - 5:00pm

-

Jane Doe (Office manager)

-

(123) 456-7899 || jdoe@midtownhotel.com

+

Hotel Manager

+

Fakey McFaker

+
+
+

Phone

+

+1 (123) 456-7899

-

Fakey McFaker (General manager)

-

(123) 456-7898 || fmcfaker@midtownhotel.com

+

Email

+

officmanager@midtownhotel.com