<!DOCTYPE html>
<html lang="de">
    <head>
        <title>Punktesystem</title>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="css/styles.css">
        <link rel="stylesheet" href="css/edit.css">
        <script src="js/navbar.js" defer></script>
        <script src="js/edit_table.js"></script>
        <script src="js/add_entries.js"></script>
    </head>
    <body>
        <header>
            <nav class="navbar">
                <div id="logo">
                    Punktesystem-Kreispokalwettbewerb
                </div>
                <a href="#" class="toggle-button">
                    <span class="bar"></span>
                    <span class="bar"></span>
                    <span class="bar"></span>
                </a>
                <div class="navbar-links">
                    <ul>
                        <li><a href="index.php">Home</a></li>
                        <?php
                            if(isset($_SESSION['user_group'])) {
                                if ($_SESSION['user_group'] == 'admin') {
                                    echo "<li><a href=\"manage_user.php\">Benutzerverwaltung</a></li>\n";
                                    echo "<li><a href=\"mannschaft.php\">Mannschaftsverwaltung</a></li>\n";
                                    echo "<li><a href=\"stationen.php\">Stationen</a></li>\n";
                                }
                                if ($_SESSION['user_group'] == 'statistics') {
                                    echo "<li><a href=\"statistik.php\">Ergebnis</a></li>";
                                } else {
                                    echo "<li><a href=\"statistik.php\">Ergebnis eintragen</a></li>";
                                }
                            }
                        ?>

                        <li><a href="logout.php">Logout</a></li>
                    </ul>
                </div>
            </nav>
        </header>