123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?php
- $cuenta = $this->webApp()->getCuenta();
- ?>
- <!-- Navigation -->
- <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
- <div class="navbar-header">
- <a class="navbar-brand" href="<?php echo $this->webApp()->getSite();?>">
- <?php echo $this->webApp()->getConfig('TITULO');?>
- </a>
- </div>
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <!-- Top Navigation: Right Menu -->
- <ul class="nav navbar-right navbar-top-links">
- <li class="dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">
- <i class="fa fa-line-chart fa-fw"></i> <?php echo !$cuenta ? 'Seleccionar cuenta...' : $cuenta->cuenta;?> <b class="caret"></b>
- </a>
- <ul class="dropdown-menu dropdown-cuenta">
- <?php $usu = new app\models\Usuario(); foreach ($usu->getCuentas() as $c) { ?>
- <li><a href="cuenta/select?id=<?php echo $c->id;?>"><?php echo $c->cuenta;?></a></li>
- <?php } ?>
- </ul>
- </li>
- <li class="dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">
- <i class="fa fa-user fa-fw"></i> <?php echo $this->webApp()->getUsuarioNombre();?> <b class="caret"></b>
- </a>
- <ul class="dropdown-menu dropdown-user">
- <li class="divider"></li>
- <li><a href="usuario/miperfil"><i class="fa fa-user fa-fw"></i> Mi perfil</a></li>
- <li class="divider"></li>
- <li><a href="site/logout"><i class="fa fa-sign-out fa-fw"></i> Cerrar sesión</a></li>
- </ul>
- </li>
- </ul>
- <!-- Sidebar -->
- <div class="navbar-default sidebar" role="navigation">
- <div class="sidebar-nav navbar-collapse">
- <ul class="nav" id="side-menu">
- <?php $this->renderBusinessInclude('menu');?>
- <li>
- <a href="<?php echo $this->webApp()->getSite();?>usuario"><i class="fa fa-users fa-fw"></i> <span>Usuarios</span></a>
- </li>
- <li>
- <a href="#" id="contract"></a>
- </li>
- </ul>
- </div>
- </div>
- </nav>
|