- Added list, edit, and save functionalities for floors, locations, and racks. - Enhanced UI with search and filter options for better usability. - Implemented SVG upload for floor plans in the floors module. - Added validation for required fields in the save processes. - Improved navigation in the header to reflect new modules. - Styled forms and tables for a consistent look and feel across modules.
61 lines
1.4 KiB
PHP
61 lines
1.4 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">
|
|
<title>Netzwerk-Dokumentation</title>
|
|
|
|
<!-- CSS -->
|
|
<link rel="stylesheet" href="/assets/css/app.css">
|
|
|
|
<!-- JS -->
|
|
<script src="/assets/js/app.js" defer></script>
|
|
<script src="/assets/js/svg-editor.js" defer></script>
|
|
<script src="/assets/js/network-view.js" defer></script>
|
|
|
|
<!-- TODO: Meta-Tags, Favicon -->
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>Netzwerk-Dokumentation</h1>
|
|
|
|
<?php
|
|
$currentModule = $_GET['module'] ?? 'dashboard';
|
|
|
|
$navItems = [
|
|
'dashboard' => 'Dashboard',
|
|
'locations' => 'Standorte',
|
|
'buildings' => 'Gebäude',
|
|
'device_types' => 'Gerätetypen',
|
|
'devices' => 'Geräte',
|
|
'racks' => 'Racks',
|
|
'floors' => 'Stockwerke',
|
|
'connections' => 'Verbindungen',
|
|
];
|
|
?>
|
|
|
|
<nav class="main-nav">
|
|
<ul>
|
|
<?php foreach ($navItems as $module => $label): ?>
|
|
<?php
|
|
$active = ($currentModule === $module) ? 'active' : '';
|
|
?>
|
|
<li class="<?= $active ?>">
|
|
<a href="?module=<?= $module ?>&action=list">
|
|
<?= $label ?>
|
|
</a>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
|
|
<main>
|