Files
CSiCoDB2/app/Views/cmpnts/layout/bar_logins_ghost.php
T

39 lines
1.9 KiB
PHP
Raw Normal View History

2026-05-06 11:04:41 +02:00
<?php $uri = service('uri'); ?>
<!-- nav bar -->
<nav class="navbar navbar-dark bg-dark">
<!-- Left part -->
<div class="navbar-brand">
<!-- lbl CSiCoDB -->
<a class="navbar-brand" href="<?php echo base_url('/dashboard'); ?>/" data-toggle="tooltip" title="Home Page">
<img src="<?= base_url('assets/img/CSiCo_Ico.png'); ?>" width="32" height="32" alt="" loading="lazy">
CSiCoDB
</a>
</div><!-- Left part -->
<!-- Right part -->
<div class="navbar-text navbar-right">
<!-- Pb Login -->
<a class="navbar-text<?= ($uri->getSegment(2) == 'login' ? ' active' : '') ?>" href="<?php echo base_url('/Lavoratori/login'); ?>" data-toggle="tooltip" title="Pagina di login dell'utente" >
<svg class="bi bi-person-check-fill" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M1 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H1zm5-6a3 3 0 100-6 3 3 0 000 6zm9.854-2.854a.5.5 0 010 .708l-3 3a.5.5 0 01-.708 0l-1.5-1.5a.5.5 0 01.708-.708L12.5 7.793l2.646-2.647a.5.5 0 01.708 0z" clip-rule="evenodd"/></svg>
Login
</a> &nbsp;
<!-- Pb Register -->
<a class="navbar-text<?= ($uri->getSegment(2) == 'register' ? ' active' : '') ?>" href="<?php echo base_url('/Lavoratori/register'); ?>/" data-toggle="tooltip" title="Pagina per registrare un nuovo utente" >
<svg class="bi bi-person-plus-fill" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M1 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H1zm5-6a3 3 0 100-6 3 3 0 000 6zm7.5-3a.5.5 0 01.5.5v2a.5.5 0 01-.5.5h-2a.5.5 0 010-1H13V5.5a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M13 7.5a.5.5 0 01.5-.5h2a.5.5 0 010 1H14v1.5a.5.5 0 01-1 0v-2z" clip-rule="evenodd"/></svg>
Register
</a>
</div><!-- Right part -->
</nav>