Initialized migrating modals into entity folders and modals out of ajax and start working on moving admin items to new admin directory

This commit is contained in:
johnnyq
2025-07-27 21:24:14 -04:00
parent 699546f531
commit 4906e06bf1
37 changed files with 2046 additions and 37 deletions

View File

@@ -1,8 +1,8 @@
<?php
require_once "../config.php";
require_once "../functions.php";
require_once "check_login.php";
require_once "../../config.php";
require_once "../../functions.php";
require_once "../../includes/check_login.php";
header('Content-Type: application/json');

View File

@@ -0,0 +1,9 @@
<script src="js/app.js"></script>
<script src="plugins/Show-Hide-Passwords-Bootstrap-4/bootstrap-show-password.min.js"></script>
<?php
$content = ob_get_clean();
// Return the title and content as a JSON response
echo json_encode(['content' => $content]);
?>

13
includes/modal_header.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
require_once "../../config.php";
require_once "../../functions.php";
require_once "../../includes/check_login.php";
header('Content-Type: application/json');
// Check for the 'id' parameter
//if (!isset($_GET['id'])) {
// echo json_encode(['error' => 'ID missing.']);
// exit;
//}