<br />

<?php if($this->layout()->utente['ruolo'] == \Application\Model\Ruoli::RUOLO_SUPER_AMMINISTRATORE || $this->layout()->utente['ruolo'] == \Application\Model\Ruoli::RUOLO_AMMINISTRATORE): ?>
<div class="row">
    <div class="span12">
        <div class="navbar">
            <div class="navbar-inner">
                <a class="brand" href="<?php echo $this->url('get-dashboard'); ?>">EliminaCode</a>
                <ul class="nav">
                    <li class="<?= $menu == 'dashboard' ? 'active' : ''?>"><a href="<?php echo $this->url('get-dashboard'); ?>"><i class="icon-home"></i> Dashboard</a></li>
                    <li class="dropdown <?= $menu == 'utenti' ? 'active' : ''?>">
                        <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user"></i> Utenti <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li><a href="<?php echo $this->url('admin_utenti/default', array('action' => 'aggiungi')); ?>">Aggiungi nuovo</a></li>
                            <li><a href="<?php echo $this->url('admin_utenti'); ?>">Modifica / Cancella</a></li>
                        </ul>
                    </li>
                    <li class="dropdown <?= $menu == 'modalita' ? 'active' : ''?>">
                        <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-th"></i> Modalità <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li><a href="<?php echo $this->url('admin_modalita/default', array('action' => 'aggiungi')); ?>">Aggiungi nuovo</a></li>
                            <li><a href="<?php echo $this->url('admin_modalita'); ?>">Modifica / Cancella</a></li>
                        </ul>
                    </li>
                </ul>
                <ul class="nav pull-right">
                    <li class="dropdown <?= $menu == 'impostazioni' ? 'active' : ''?>">
                        <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-wrench"></i> Impostazioni <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li><a href="#"><i class="icon-envelope"></i> Voce Uno</a></li>
                        </ul>
                    </li>
                    <li class="divider-vertical"></li>
                    <li><a role="button" href="#logoutModal" data-toggle="modal"><i class="icon-off"></i> Logout</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
<?php endif; ?>


<?php if($this->layout()->utente['ruolo'] == \Application\Model\Ruoli::RUOLO_OPERATORE): ?>
    <div class="row">
        <div class="span12">
            <div class="navbar">
                <div class="navbar-inner">
                    <a class="brand" href="<?php echo $this->url('get-dashboard'); ?>">EliminaCode</a>
                    <ul class="nav">
                        <li class="<?= $menu == 'dashboard' ? 'active' : ''?>"><a href="<?php echo $this->url('get-dashboard'); ?>"><i class="icon-home"></i> Dashboard</a></li>
                    </ul>
                    <ul class="nav pull-right">
                        <li class="dropdown <?= $menu == 'impostazioni' ? 'active' : ''?>">
                            <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-wrench"></i> Impostazioni <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="#"><i class="icon-envelope"></i> Voce Uno</a></li>
                            </ul>
                        </li>
                        <li class="divider-vertical"></li>
                        <li><a role="button" href="#logoutModal" data-toggle="modal"><i class="icon-off"></i> Logout</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
<?php endif; ?>

<?php if($this->layout()->utente['ruolo'] == \Application\Model\Ruoli::RUOLO_INFERMIERE): ?>
    <div class="row">
        <div class="span12">
            <div class="navbar">
                <div class="navbar-inner">
                    <a class="brand" href="<?php echo $this->url('get-dashboard'); ?>">EliminaCode</a>
                    <ul class="nav">
                        <li class="<?= $menu == 'dashboard' ? 'active' : ''?>"><a href="<?php echo $this->url('get-dashboard'); ?>"><i class="icon-home"></i> Dashboard</a></li>
                    </ul>
                    <ul class="nav pull-right">
                        <li class="dropdown <?= $menu == 'impostazioni' ? 'active' : ''?>">
                            <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-wrench"></i> Impostazioni <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="#"><i class="icon-envelope"></i> Voce Uno</a></li>
                            </ul>
                        </li>
                        <li class="divider-vertical"></li>
                        <li><a role="button" href="#logoutModal" data-toggle="modal"><i class="icon-off"></i> Logout</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
<?php endif; ?>

<?php if($this->layout()->utente['ruolo'] == \Application\Model\Ruoli::RUOLO_MEDICO): ?>
    <div class="row">
        <div class="span12">
            <div class="navbar">
                <div class="navbar-inner">
                    <a class="brand" href="<?php echo $this->url('get-dashboard'); ?>">EliminaCode</a>
                    <ul class="nav">
                        <li class="<?= $menu == 'dashboard' ? 'active' : ''?>"><a href="<?php echo $this->url('get-dashboard'); ?>"><i class="icon-home"></i> Dashboard</a></li>
                    </ul>
                    <ul class="nav pull-right">
                        <li class="dropdown <?= $menu == 'impostazioni' ? 'active' : ''?>">
                            <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-wrench"></i> Impostazioni <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="#"><i class="icon-envelope"></i> Voce Uno</a></li>
                            </ul>
                        </li>
                        <li class="divider-vertical"></li>
                        <li><a role="button" href="#logoutModal" data-toggle="modal"><i class="icon-off"></i> Logout</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
<?php endif; ?>

<?php if($this->layout()->utente['ruolo'] == \Application\Model\Ruoli::RUOLO_COMUNICAZIONE): ?>
    <div class="row">
        <div class="span12">
            <div class="navbar">
                <div class="navbar-inner">
                    <a class="brand" href="<?php echo $this->url('get-dashboard'); ?>">EliminaCode</a>
                    <ul class="nav">
                        <li class="<?= $menu == 'dashboard' ? 'active' : ''?>"><a href="<?php echo $this->url('get-dashboard'); ?>"><i class="icon-home"></i> Dashboard</a></li>
                    </ul>
                    <ul class="nav pull-right">
                        <li class="dropdown <?= $menu == 'impostazioni' ? 'active' : ''?>">
                            <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-wrench"></i> Impostazioni <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="#"><i class="icon-envelope"></i> Voce Uno</a></li>
                            </ul>
                        </li>
                        <li class="divider-vertical"></li>
                        <li><a role="button" href="#logoutModal" data-toggle="modal"><i class="icon-off"></i> Logout</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
<?php endif; ?>

<div id="logoutModal" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
        <h3 id="myModalLabel">Logout</h3>
    </div>
    <div class="modal-body">
        <p>Sei sicuro di voler eseguire il Logout?</p>
    </div>
    <div class="modal-footer">
        <a class="btn btn-danger" href="<?php echo $this->url('logout'); ?>">SI</a>
    </div>
</div>