This commit is contained in:
Ty Clifford
2026-07-03 17:42:16 -04:00
parent c1cb93083e
commit c5ec4f4c7e
18 changed files with 30 additions and 29 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ declare(strict_types=1);
require __DIR__ . '/../app/bootstrap.php';
app_db();
$pageTitle = 'Admin Dashboard | Neon Medical Tracker';
$pageTitle = 'Admin Dashboard | Medical Tracker';
$activePage = 'admin';
require __DIR__ . '/partials/site-header.php';
?>
+2 -2
View File
@@ -6,8 +6,8 @@ $pdo = app_db();
$condition = find_medical_condition_item($pdo, $_GET);
$pageTitle = $condition
? (string) $condition['name'] . ' | Condition Detail | Neon Medical Tracker'
: 'Condition Not Found | Neon Medical Tracker';
? (string) $condition['name'] . ' | Condition Detail | Medical Tracker'
: 'Condition Not Found | Medical Tracker';
$activePage = 'conditions';
$relatedSymptoms = [];
+1 -1
View File
@@ -4,7 +4,7 @@ declare(strict_types=1);
require __DIR__ . '/../app/bootstrap.php';
$pdo = app_db();
$pageTitle = 'Medical Reference Library | Neon Medical Tracker';
$pageTitle = 'Medical Reference Library | Medical Tracker';
$activePage = 'home';
$totalMedicines = (int) db_value($pdo, 'SELECT COUNT(*) FROM medication_catalog');
$totalTerms = (int) db_value($pdo, 'SELECT COUNT(*) FROM medical_terms');
+1 -1
View File
@@ -4,7 +4,7 @@ declare(strict_types=1);
require __DIR__ . '/../app/bootstrap.php';
$pdo = app_db();
$pageTitle = 'Medical Terminology Database | Neon Medical Tracker';
$pageTitle = 'Medical Terminology Database | Medical Tracker';
$activePage = 'terminology';
$searchQuery = trim((string) ($_GET['q'] ?? ''));
$library = library_search_payload(['q' => $searchQuery, 'limit' => 500]);
+2 -2
View File
@@ -6,8 +6,8 @@ $pdo = app_db();
$medicine = find_medication_catalog_item($pdo, $_GET);
$pageTitle = $medicine
? ucfirst((string) $medicine['generic_name']) . ' | Medicine Detail | Neon Medical Tracker'
: 'Medicine Not Found | Neon Medical Tracker';
? ucfirst((string) $medicine['generic_name']) . ' | Medicine Detail | Medical Tracker'
: 'Medicine Not Found | Medical Tracker';
$activePage = 'medicines';
$relatedStudies = [];
+1 -1
View File
@@ -4,7 +4,7 @@ declare(strict_types=1);
require __DIR__ . '/../app/bootstrap.php';
$pdo = app_db();
$pageTitle = 'Medicine Catalog | Neon Medical Tracker';
$pageTitle = 'Medicine Catalog | Medical Tracker';
$activePage = 'medicines';
$searchQuery = trim((string) ($_GET['q'] ?? ''));
$library = library_search_payload(['q' => $searchQuery, 'limit' => 500]);
+1 -1
View File
@@ -1,6 +1,6 @@
<footer class="site-footer">
<div>
<strong>Neon Medical Tracker</strong>
<strong>Medical Tracker</strong>
<p>Medication logs, vitals, lab results, terminology, NIH/NLM study links, and admin-managed profiles.</p>
</div>
<div class="footer-links">
+2 -2
View File
@@ -1,5 +1,5 @@
<?php
$pageTitle = $pageTitle ?? 'Neon Medical Tracker';
$pageTitle = $pageTitle ?? 'Medical Tracker';
$activePage = $activePage ?? '';
function site_active(string $page, string $activePage): string
{
@@ -18,7 +18,7 @@ function site_active(string $page, string $activePage): string
<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>
<span>Medical Tracker</span>
</a>
<nav class="site-nav" aria-label="Primary navigation">
<a<?= site_active('home', $activePage) ?> href="/">Home</a>
+1 -1
View File
@@ -4,7 +4,7 @@ declare(strict_types=1);
require __DIR__ . '/../app/bootstrap.php';
$pdo = app_db();
$pageTitle = 'NIH/NLM Research Links | Neon Medical Tracker';
$pageTitle = 'NIH/NLM Research Links | Medical Tracker';
$activePage = 'research';
$studies = db_all($pdo, 'SELECT * FROM research_studies ORDER BY category, related_medicine, title');
$photo = 'https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/Jogging_Woman_in_Grass.jpg/1280px-Jogging_Woman_in_Grass.jpg';
+2 -2
View File
@@ -6,8 +6,8 @@ $pdo = app_db();
$symptom = find_medical_symptom_item($pdo, $_GET);
$pageTitle = $symptom
? (string) $symptom['name'] . ' | Symptom Detail | Neon Medical Tracker'
: 'Symptom Not Found | Neon Medical Tracker';
? (string) $symptom['name'] . ' | Symptom Detail | Medical Tracker'
: 'Symptom Not Found | Medical Tracker';
$activePage = 'symptoms';
$relatedTerms = [];
+1 -1
View File
@@ -4,7 +4,7 @@ declare(strict_types=1);
require __DIR__ . '/../app/bootstrap.php';
$pdo = app_db();
$pageTitle = 'Symptom Database | Neon Medical Tracker';
$pageTitle = 'Symptom Database | Medical Tracker';
$activePage = 'symptoms';
$searchQuery = trim((string) ($_GET['q'] ?? ''));
$library = library_search_payload(['q' => $searchQuery, 'limit' => 500]);
+2 -2
View File
@@ -6,8 +6,8 @@ $pdo = app_db();
$term = find_medical_term_item($pdo, $_GET);
$pageTitle = $term
? (string) $term['term'] . ' | Medical Term | Neon Medical Tracker'
: 'Medical Term Not Found | Neon Medical Tracker';
? (string) $term['term'] . ' | Medical Term | Medical Tracker'
: 'Medical Term Not Found | Medical Tracker';
$activePage = 'terminology';
$relatedMedicines = [];
+2 -2
View File
@@ -9,7 +9,7 @@ app_db();
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Neon Medical Tracker</title>
<title>Medical Tracker</title>
<link rel="stylesheet" href="/assets/styles.css">
</head>
<body data-theme="dark" data-accent="green">
@@ -22,7 +22,7 @@ app_db();
<span></span>
</div>
<div>
<h1>Neon Medical Tracker</h1>
<h1>Medical Tracker</h1>
<p id="profileFocus">Loading profile</p>
</div>
</div>
+1 -1
View File
@@ -4,7 +4,7 @@ declare(strict_types=1);
require __DIR__ . '/../app/bootstrap.php';
$pdo = app_db();
$pageTitle = 'Condition Database | Neon Medical Tracker';
$pageTitle = 'Condition Database | Medical Tracker';
$activePage = 'conditions';
$searchQuery = trim((string) ($_GET['q'] ?? ''));
$library = library_search_payload(['q' => $searchQuery, 'limit' => 500]);