0d492451c7
Added: New medical_symptoms SQLite catalog with 242 seeded symptom records, categories, body systems, tracking notes, urgency-context notes, search terms, and MedlinePlus links: [app/bootstrap.php (line 186)](/Users/tyemeclifford/Documents/GH/workout/app/bootstrap.php:186), [seed logic (line 635)](/Users/tyemeclifford/Documents/GH/workout/app/bootstrap.php:635) New searchable symptom directory: [public/symptoms.php (line 1)](/Users/tyemeclifford/Documents/GH/workout/public/symptoms.php:1) New dynamic per-symptom page, e.g. /symptom.php?id=24: [public/symptom.php (line 1)](/Users/tyemeclifford/Documents/GH/workout/public/symptom.php:1) Symptom helper/link lookup functions: [app/bootstrap.php (line 1473)](/Users/tyemeclifford/Documents/GH/workout/app/bootstrap.php:1473) medicalSymptoms added to the combined library search/API: [app/bootstrap.php (line 2024)](/Users/tyemeclifford/Documents/GH/workout/app/bootstrap.php:2024) Symptoms added to nav, homepage, and combined medical search: [site-header.php (line 27)](/Users/tyemeclifford/Documents/GH/workout/public/partials/site-header.php:27), [index.php (line 11)](/Users/tyemeclifford/Documents/GH/workout/public/index.php:11), [medical.php (line 13)](/Users/tyemeclifford/Documents/GH/workout/public/medical.php:13)
34 lines
1.4 KiB
PHP
34 lines
1.4 KiB
PHP
<?php
|
|
$pageTitle = $pageTitle ?? 'Neon Medical Tracker';
|
|
$activePage = $activePage ?? '';
|
|
function site_active(string $page, string $activePage): string
|
|
{
|
|
return $page === $activePage ? ' class="active"' : '';
|
|
}
|
|
?>
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title><?= htmlspecialchars($pageTitle, ENT_QUOTES) ?></title>
|
|
<link rel="stylesheet" href="/assets/site.css">
|
|
</head>
|
|
<body>
|
|
<header class="site-header">
|
|
<a class="site-logo" href="/">
|
|
<span class="site-logo-bars" aria-hidden="true"><i></i><i></i><i></i></span>
|
|
<span>Neon Medical Tracker</span>
|
|
</a>
|
|
<nav class="site-nav" aria-label="Primary navigation">
|
|
<a<?= site_active('home', $activePage) ?> href="/">Home</a>
|
|
<a<?= site_active('conditions', $activePage) ?> href="/workouts.php">Conditions</a>
|
|
<a<?= site_active('medicines', $activePage) ?> href="/nutrition.php">Medicines</a>
|
|
<a<?= site_active('symptoms', $activePage) ?> href="/symptoms.php">Symptoms</a>
|
|
<a<?= site_active('research', $activePage) ?> href="/recovery.php">Research</a>
|
|
<a<?= site_active('terminology', $activePage) ?> href="/medical.php">Terminology</a>
|
|
<a href="/tracker.php">Tracker</a>
|
|
<a href="/admin.php">Admin</a>
|
|
</nav>
|
|
</header>
|