first_php_project/admin/menu_adm.php
2021-11-19 22:12:23 -03:00

48 lines
1.8 KiB
PHP
Executable File

<!-- Comentários do código -->
<!-- Começei hoje, 28/11, o menu administrativo -->
<style>
.hamburgmenu{
color: white;
border: none;
}
.navbar-wf{
color: white !important;
background-color: darkgreen !important;
border-radius: 0;
}
.navbar-wf #linksadm a{
color: white;
background-color: darkgreen !important;
}
.navbar-wf #linksadm a:hover{
color: darkgreen !important;
background-color: white !important;
}
</style>
<nav class="navbar navbar-wf">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed hamburgmenu" data-toggle="collapse" data-target="#linksadm" aria-expanded="false" id="botaomenu">
<span class="glyphicon glyphicon-menu-hamburger"></span>
</button>
<a href='index.php' target='_SELF'><img src="../imagens/sustentaitape2.png" width="200px" alt=""></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="linksadm">
<ul class="nav navbar-nav navbar-right">
<li><a href="../index.php"><span class="glyphicon glyphicon-home"></span>&nbsp;&nbsp;Home</a></li>
<?php if (basename($_SERVER['PHP_SELF']) == 'index.php'){
echo "<li><a data-toggle='modal' data-target='#modalusuarios'>Usuários</a></li>
<li><a data-toggle='modal' data-target='#modalcategoria'>Tipos de Eventos</a></li>
<li><a data-toggle='modal' data-target='#modallistareventos'>Eventos</a></li>";
}else{
echo "<li><a href='index.php' target='_SELF'>Voltar</a></li>";
}?>
<li><a href="logout.php"><span class="glyphicon glyphicon-log-out"></span>&nbsp;&nbsp;Sair</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>