From ddd37d01cfd913efb6858a819fb64b49efd37dd7 Mon Sep 17 00:00:00 2001 From: Juthatip McDevitt Date: Thu, 13 Jun 2024 22:17:32 -0500 Subject: [PATCH] created setting page, sidebar component, and ajax file --- hotel_booking/admin/ajax/settings_crud.php | 24 +++++ hotel_booking/admin/common.css | 64 ++++++++++++ hotel_booking/admin/components/sidebar.php | 35 +++++++ hotel_booking/admin/settings.php | 108 +++++++++++++++++++++ 4 files changed, 231 insertions(+) create mode 100644 hotel_booking/admin/ajax/settings_crud.php create mode 100644 hotel_booking/admin/common.css create mode 100644 hotel_booking/admin/components/sidebar.php create mode 100644 hotel_booking/admin/settings.php diff --git a/hotel_booking/admin/ajax/settings_crud.php b/hotel_booking/admin/ajax/settings_crud.php new file mode 100644 index 0000000..ea483bc --- /dev/null +++ b/hotel_booking/admin/ajax/settings_crud.php @@ -0,0 +1,24 @@ + \ No newline at end of file diff --git a/hotel_booking/admin/common.css b/hotel_booking/admin/common.css new file mode 100644 index 0000000..90d9c52 --- /dev/null +++ b/hotel_booking/admin/common.css @@ -0,0 +1,64 @@ +.btn-second{ + background-color: #B6C2C2; + border: none; + color: #112E2E; + padding: 6px 12px; + text-align: center; + font-size: 18px; + font-weight: 500; + border-radius: 3px; + text-decoration: none; +} +.btn-second:hover, .btn-third:hover{ + background-color: lightgray; + color: black; + transition: all 0.5s ease; +} +.btn-third{ + background-color: #135D66; + border: none; + color: #E3FEF7; + padding: 5px 12px; + text-align: center; + font-size: 16px; + font-weight: 500; + border-radius: 3px; + text-decoration: none; +} +.btn-cancle{ + background-color: #EE4E4E; + border: none; + color: white; + padding: 5px 12px; + text-align: center; + font-size: 16px; + font-weight: 500; + border-radius: 3px; + text-decoration: none; +} +.btn-cancle:hover{ + background-color: #FF8080; + color: white; + transition: all 0.5s ease; +} +#dashboard-menu{ + position: fixed; + height: 100%; + background-color: #194141; + color: white; +} +.custom-alert-t{ + position: fixed; + top: -220px; + right: 20px; + width: 320px; +} +@media (max-width:992px) { + #dashboard-menu{ + width: 100%; + height: auto; + } + #dashboard-body{ + margin-top: 60px; + } +} \ No newline at end of file diff --git a/hotel_booking/admin/components/sidebar.php b/hotel_booking/admin/components/sidebar.php new file mode 100644 index 0000000..2cdfd09 --- /dev/null +++ b/hotel_booking/admin/components/sidebar.php @@ -0,0 +1,35 @@ + +
+
+ logo +
Admin Dashboard
+
+ Logout +
+ +
+ +
\ No newline at end of file diff --git a/hotel_booking/admin/settings.php b/hotel_booking/admin/settings.php new file mode 100644 index 0000000..49215be --- /dev/null +++ b/hotel_booking/admin/settings.php @@ -0,0 +1,108 @@ + + + + + + + Settings | Midtown Hotel + + + + + +
+
+
+

Settings

+ +
+
+
+
General Settings
+ +
+
Site Title
+

+
+
+ + +
+
+
+ + + + + + + + \ No newline at end of file