menu.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!-- Navigation -->
  2. <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  3. <div class="navbar-header">
  4. <a class="navbar-brand" href="<?php echo $this->webApp()->getSite();?>">
  5. <?php echo $this->webApp()->getConfig('TITULO');?>
  6. </a>
  7. </div>
  8. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  9. <span class="sr-only">Toggle navigation</span>
  10. <span class="icon-bar"></span>
  11. <span class="icon-bar"></span>
  12. <span class="icon-bar"></span>
  13. </button>
  14. <!-- Top Navigation: Right Menu -->
  15. <ul class="nav navbar-right navbar-top-links">
  16. <li class="dropdown">
  17. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  18. <i class="fa fa-line-chart fa-fw"></i> <?php echo !app\models\CuentaSel::getSelected()->id ? 'Seleccionar cuenta...' : app\models\CuentaSel::getSelected()->cuenta;?> <b class="caret"></b>
  19. </a>
  20. <ul class="dropdown-menu dropdown-cuenta">
  21. <?php $usu = new app\models\Usuario(); foreach ($usu->getCuentas() as $cuenta) { ?>
  22. <li><a href="cuenta/select?id=<?php echo $cuenta->id;?>"><?php echo $cuenta->cuenta;?></a></li>
  23. <?php } ?>
  24. </ul>
  25. </li>
  26. <li class="dropdown">
  27. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  28. <i class="fa fa-user fa-fw"></i> <?php echo $this->webApp()->getUsuario();?> <b class="caret"></b>
  29. </a>
  30. <ul class="dropdown-menu dropdown-user">
  31. <li class="divider"></li>
  32. <li><a href="usuario/miperfil"><i class="fa fa-user fa-fw"></i> Mi perfil</a></li>
  33. <li class="divider"></li>
  34. <li><a href="site/logout"><i class="fa fa-sign-out fa-fw"></i> Cerrar sesión</a></li>
  35. </ul>
  36. </li>
  37. </ul>
  38. <!-- Sidebar -->
  39. <div class="navbar-default sidebar" role="navigation">
  40. <div class="sidebar-nav navbar-collapse">
  41. <ul class="nav" id="side-menu">
  42. <?php $this->renderBusinessInclude('menu');?>
  43. <li>
  44. <a href="<?php echo $this->webApp()->getSite();?>usuario"><i class="fa fa-users fa-fw"></i> <span>Usuarios</span></a>
  45. </li>
  46. <li>
  47. <a href="#" id="contract"></a>
  48. </li>
  49. </ul>
  50. </div>
  51. </div>
  52. </nav>