header.php

Datoteka header.php vsebuje ukaze za prikaz glave spletne aplikacije z menijsko vrstico.

 

Slika 4 Glava z menijsko vrstico

<nav class="navbar navbar-expand-lg navbar-light alert-dark">
    <div class="container-fluid">
        <a class="navbar-brand" href="index.php">eRedovalnica</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                <li class="nav-item">
                    <a class="nav-link" href="index.php"><i class="fas fa-home"></i></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="index.php?ukaz=redovalnica">Redovalnica</a>
                </li>
            </ul>
            <ul class="navbar-nav justify-content-end">
                <?php
                if ($_SESSION["user"] != null)
                {
                    ?>
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                            <i class='fas fa-user-circle'></i>
                            <?php
                            echo "&nbsp;".$_SESSION["user"];
                            ?>
                        </a>
                        <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                            <li><a class="dropdown-item" href="index.php?odjava=1"><i class="fas fa-sign-out-alt"></i> Odjava</a></li>
                        </ul>
                    </li>
                    <?php
                }
                ?>
            </ul>
        </div>
    </div>
</nav>



Created with an evaluation copy of HelpSmith.
To remove this notice, you should purchase the full version of the product.