1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?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');?>
- <?php if ($this->webApp()->getRole() == webApp::ROLE_ADMIN) { ?>
- <li>
- <a href="<?php echo $this->webApp()->getSite();?>usuario"><i class="fa fa-users fa-fw"></i> <span>Usuarios</span></a>
- </li>
- <?php } ?>
- <li>
- <a href="#" id="contract"></a>
- </li>
- </ul>
- </div>
- </div>
- </nav>
|