<?php
    $maestras       = '';
    $movimientos    = '';
    if($menu=='xco'||$menu=='xhc'||$menu=='xhc_n'||$menu=='xmo')
        $maestras   = 'active';
    if($menu=='xpn'||$menu=='xca'||$menu=='xca_nuevo'||$menu=='xan_pd')
        $movimientos= 'active';
?>
<br>
<div class="col-md-12">
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="<?= base_url()?>"><b>INICIO</b></a>
            </div>
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                            <span class="glyphicon glyphicon-lock"></span>
                            <b>Seguridad</b> <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu" role="menu">
                            <li <?php echo ($menu=='xpl')?'class="active"':'';?>>
                                <a href="#">
                                    <span class="glyphicon glyphicon-hand-right"></span>
                                    <b>Usuario</b>
                                </a>
                            </li>
                            <li <?php echo ($menu=='xppo')?'class="active"':'';?>>
                                <a href="#">
                                    <span class="glyphicon glyphicon-hand-right"></span>
                                    <b>Accesos</b>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="dropdown <?= $maestras?>">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                            <span class="glyphicon glyphicon-th-list"></span>
                            <b>Maestras</b> <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu" role="menu">
                            <li <?php echo ($menu=='xhc_n')?'class="active"':'';?>>
                                <a href="<?= base_url('maestras/xhc/nuevo')?>">
                                    <span class="glyphicon glyphicon-hand-right"></span>
                                    <b>Nueva Historia Clínica</b>
                                </a>
                            </li>
                            <li <?php echo ($menu=='xhc')?'class="active"':'';?>>
                                <a href="<?= base_url('maestras/xhc')?>">
                                    <span class="glyphicon glyphicon-hand-right"></span>
                                    <b>Historia Clínica</b>
                                </a>
                            </li>
                            <li role="separator" class="divider"></li>
                            <li <?php echo ($menu=='xco')?'class="active"':'';?>>
                                <a href="<?= base_url('maestras/xco')?>">
                                    <span class="glyphicon glyphicon-hand-right"></span>
                                    <b>Consultorio</b>
                                </a>
                            </li>
                            <li <?php echo ($menu=='xmo')?'class="active"':'';?>>
                                <a href="<?= base_url('maestras/xmo')?>">
                                    <span class="glyphicon glyphicon-hand-right"></span>
                                    <b>Medicamento</b>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="dropdown <?= $movimientos?>">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                            <span class="glyphicon glyphicon-cog"></span>
                            <b>Movimientos</b> <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu" role="menu">
                            <li <?php echo ($menu=='xan_pd')?'class="active"':'';?>>
                                <a href="<?= base_url('movimientos/xan/pdiario')?>">
                                    <span class="glyphicon glyphicon-hand-right"></span>
                                    <b>Parte Diario</b>
                                </a>
                            </li>
                            <li role="separator" class="divider"></li>
                            <li <?php echo ($menu=='xca_nuevo')?'class="active"':'';?>>
                                <a href="<?= base_url('movimientos/xca/nuevo')?>">
                                    <span class="glyphicon glyphicon-hand-right"></span>
                                    <b>Nueva Cita</b>
                                </a>
                            </li>
                            <li <?php echo ($menu=='xca')?'class="active"':'';?>>
                                <a href="<?= base_url('movimientos/xca')?>">
                                    <span class="glyphicon glyphicon-hand-right"></span>
                                    <b>Citas</b>
                                </a>
                            </li>
                            <li <?php echo ($menu=='xpn')?'class="active"':'';?>>
                                <a href="<?= base_url('movimientos/xpn')?>">
                                    <span class="glyphicon glyphicon-hand-right"></span>
                                    <b>Programación</b>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                            <span class="glyphicon glyphicon-signal"></span>
                            <b>Información</b> <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu" role="menu">
                            <li>
                                <a href="#">
                                    <span class="glyphicon glyphicon-hand-right"></span>
                                    <b>Parte Diario</b>
                                </a>
                            </li>
                            <li role="separator" class="divider"></li>
                            <li>
                                <a href="#">
                                    <span class="glyphicon glyphicon-hand-right"></span>
                                    <b>Citas</b>
                                </a>
                            </li>
                            <li>
                                <a href="#">
                                    <span class="glyphicon glyphicon-hand-right"></span>
                                    <b>Programación</b>
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a href="<?= base_url('main/salir')?>">
                            <span class="glyphicon glyphicon-log-out"></span>
                            <b>Cerrar Sesión</b>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
</div>