File "menu.php"
Full path: /var/www/html/respaldoR/menu.php
File size: 2.09 KiB (2140 bytes)
MIME-type: text/x-php
Charset: utf-8
<?php //include 'inc.php'; ?>
<style>
.buscar{
width: 300px;
}
</style>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="index.php"><img src="img/logo%20renacer.png" alt="Logotiporenacer" id="logo"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-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 mr-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
CATEGORIAS
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">NIÑOS</a>
<a class="dropdown-item" href="#">CIENCIAS</a>
<a class="dropdown-item" href="#">CLÁSICOS</a>
<a class="dropdown-item" href="#">ARTE</a>
<a class="dropdown-item" href="#">CIENCIA FICCIÓN</a>
</div>
</li>
</ul>
<form class="form-inline my-2 my-lg-0 form" method="post" action="busqueda.php">
<input class="form-control mr-sm-2 buscar" type="search" placeholder="Buscar por ISBN, nombre, o autor" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Buscar</button>
</form>
<i>|</i>
<?php
if(isset($_SESSION['nombre'])){
echo "<a href='usuario.php' class='btn btn-info'>Ir a mi panel</a>";
}
else{
echo "<a href='login_altas.php' class='btn btn-info'>Iniciar sesión</a>";
}
?>
</div>
</nav>