NavBar & SideBar Works... Kinda. Not Customized Yet.

This commit is contained in:
2026-09-03 19:51:44 -05:00
parent 41383b8fe7
commit faeab2134c
7 changed files with 134 additions and 36 deletions
+20 -1
View File
@@ -1,3 +1,4 @@
<?php include 'config.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
@@ -8,7 +9,25 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<?php include 'nav.php'; ?>
<?php
global $active_profession, $active_profession_title;
include 'nav.php';
include 'sidebar.php';
// Capture the active profession from the URL query safely
$current_prof = isset($_GET['prof']) ? $_GET['prof'] : '';
// Quick safety check mapping
if ($current_prof === 'alchemyIngredientPage' || $active_profession === 'alchemyIngredientPage') {
echo "<h1>Alchemy Market Prices</h1>";
// Run database query where profession = 'alchemy'
} elseif ($current_prof === 'blacksmithing' || $active_profession === 'blacksmithing') {
echo "<h1>Blacksmithing Market Prices</h1>";
// Run database query where profession = 'blacksmithing'
} else {
echo "<h1>Unknown Profession</h1>";
}
?>
</body>
</html>