-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavegacion.php
26 lines (25 loc) · 1.42 KB
/
navegacion.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php if (SesionService::obtenerIdUsuarioLogueado() !== NULL) { ?>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="<?php echo BASE_URL ?>">Cotizaciones</a>
<button class="navbar-toggler" type="button" id="botonMenu" aria-label="Mostrar / ocultar menú">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="menu">
<ul class="navbar-nav">
<li class="nav-item <?php echo (isset($_GET["p"]) && $_GET["p"] === "clientes") ? 'active' : '' ?>">
<a class="nav-link" href="<?php echo BASE_URL ?>/?p=clientes">Clientes</a>
</li>
<li class="nav-item <?php echo (isset($_GET["p"]) && $_GET["p"] === "cotizaciones") ? 'active' : '' ?>">
<a class="nav-link" href="<?php echo BASE_URL ?>/?p=cotizaciones">Cotizaciones</a>
</li>
<li class="nav-item <?php echo (isset($_GET["p"]) && $_GET["p"] === "editar_ajustes") ? 'active' : '' ?>">
<a class="nav-link" href="<?php echo BASE_URL ?>/?p=editar_ajustes">Ajustes</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo BASE_URL ?>/?p=logout">Salir</a>
</li>
</ul>
</div>
</nav>
<?php } ?>
<div class="container">