- add connection delete endpoint and update connection list handling - expand dashboard visualization behavior - update helpers/header and project TODO tracking
68 lines
2.0 KiB
PHP
68 lines
2.0 KiB
PHP
<?php
|
|
/**
|
|
* header.php
|
|
*
|
|
* HTML-Kopf, CSS / JS einbinden, Navigation
|
|
* Wird am Anfang jeder Seite eingebunden
|
|
*/
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="description" content="Netwatch - Netzwerk-Dokumentation und Verkabelungsverwaltung">
|
|
<title>Netzwerk-Dokumentation</title>
|
|
<link rel="icon" type="image/svg+xml" href="/assets/icons/favicon.svg">
|
|
|
|
<!-- CSS -->
|
|
<link rel="stylesheet" href="/assets/css/app.css">
|
|
<link rel="stylesheet" href="/assets/css/device-type-edit.css">
|
|
|
|
<!-- JS -->
|
|
<script src="/assets/js/app.js" defer></script>
|
|
<script src="/assets/js/dashboard.js" defer></script>
|
|
<script src="/assets/js/svg-editor.js" defer></script>
|
|
<script src="/assets/js/network-view.js" defer></script>
|
|
|
|
</head>
|
|
<body>
|
|
<header class="app-header">
|
|
<div class="app-header__brand">
|
|
<span class="app-header__eyebrow">Netzwerk</span>
|
|
<h1 class="app-header__title">Dokumentation</h1>
|
|
</div>
|
|
|
|
<?php
|
|
$currentModule = $_GET['module'] ?? 'dashboard';
|
|
|
|
$navItems = [
|
|
'dashboard' => 'Dashboard',
|
|
'locations' => 'Standorte',
|
|
'device_types' => 'Gerätetypen',
|
|
'port_types' => 'Porttypen',
|
|
'devices' => 'Geräte',
|
|
'racks' => 'Racks',
|
|
'floor_infrastructure' => 'Infrastruktur',
|
|
'connections' => 'Verbindungen',
|
|
];
|
|
?>
|
|
|
|
<nav class="main-nav">
|
|
<ul class="main-nav__list">
|
|
<?php foreach ($navItems as $navModule => $label): ?>
|
|
<?php
|
|
$active = ($currentModule === $navModule) ? 'active' : '';
|
|
?>
|
|
<li class="main-nav__item <?= $active ?>">
|
|
<a href="?module=<?= $navModule ?>&action=list" class="main-nav__link">
|
|
<?= $label ?>
|
|
</a>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
|
|
<main>
|