NavBar & SideBar Works... Kinda. Not Customized Yet.
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user