From 0c5206a8689de85212b29ef39160a9858f2c9a40 Mon Sep 17 00:00:00 2001 From: harshita-2003 Date: Sat, 29 Jul 2023 18:40:00 +0530 Subject: [PATCH] admin panel --- Admins/ajax/settings_crud.php | 5 +++-- Admins/css/common.css | 4 ++-- Admins/inc/essentials.php | 2 +- Admins/inc/header.php | 2 +- Admins/rooms.php | 18 ++++++++++++++++++ Admins/settings.php | 18 ++++++++++++------ 6 files changed, 37 insertions(+), 12 deletions(-) create mode 100644 Admins/rooms.php diff --git a/Admins/ajax/settings_crud.php b/Admins/ajax/settings_crud.php index 862b777..4092c23 100644 --- a/Admins/ajax/settings_crud.php +++ b/Admins/ajax/settings_crud.php @@ -3,11 +3,12 @@ require('../inc/essentials.php'); adminlogin(); - if(isset($_POST['get_general'])){ + if(isset($_POST['get_general'])) + { $q = "SELECT * FROM `settings` WHERE `sr_no`=?"; $values = [1]; - $res = select($q,$values,"i"); + $res = select($q , $values , "i"); $data = mysqli_fetch_assoc($res); $json_data = json_encode($data); diff --git a/Admins/css/common.css b/Admins/css/common.css index 373a08f..54c9717 100644 --- a/Admins/css/common.css +++ b/Admins/css/common.css @@ -10,11 +10,11 @@ body{ box-shadow: 2px 3px 4px rgb(216, 216, 216); } -.custom-alert{ +/* .custom-alert{ position: fixed; top:25px; right:25px; -} +} */ #dashboard-bar{ position: fixed; diff --git a/Admins/inc/essentials.php b/Admins/inc/essentials.php index 3f1c43c..f7d6fe7 100644 --- a/Admins/inc/essentials.php +++ b/Admins/inc/essentials.php @@ -28,7 +28,7 @@ function alert($type,$msg){ $bs_class = ($type=="warning") ? "alert-warning" : "alert-danger"; echo << + diff --git a/Admins/inc/header.php b/Admins/inc/header.php index 997a77a..75482ca 100644 --- a/Admins/inc/header.php +++ b/Admins/inc/header.php @@ -17,7 +17,7 @@ Dashboard