You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

168 lines
7.3KB

  1. <!DOCTYPE html>
  2. <!--
  3. This is a starter template page. Use this page to start your new project from
  4. scratch. This page gets rid of all links and provides the needed markup only.
  5. -->
  6. <html lang="en">
  7. <head>
  8. <meta charset="utf-8">
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10. <title><?= isset($title) ? $title : 'Administrador' ?></title>
  11. <base href="/">
  12. <!-- Google Font: Source Sans Pro -->
  13. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  14. <!-- Font Awesome Icons -->
  15. <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
  16. <!-- Theme style -->
  17. <link rel="stylesheet" href="dist/css/adminlte.min.css">
  18. </head>
  19. <body class="hold-transition sidebar-mini">
  20. <div class="wrapper">
  21. <!-- Main Sidebar Container -->
  22. <aside class="main-sidebar sidebar-dark-primary elevation-4">
  23. <!-- Brand Logo -->
  24. <a href="<?= route_to('admin_home') ?>" class="brand-link">
  25. <img src="dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
  26. <span class="brand-text font-weight-light">COPARMEX</span>
  27. </a>
  28. <!-- Sidebar -->
  29. <div class="sidebar">
  30. <!-- Sidebar user panel (optional) -->
  31. <!-- Sidebar Menu -->
  32. <nav class="mt-2">
  33. <?php $session = session();
  34. if ($session->is_logged) : ?>
  35. <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
  36. <!-- Add icons to the links using the .nav-icon class
  37. with font-awesome or any other icon font library -->
  38. <li class="nav-item menu-open">
  39. <a href="" class="nav-link">
  40. <i class="nav-icon fas fa-users"></i>
  41. Prestadores
  42. <i class="right fas fa-angle-left"></i>
  43. </a>
  44. <ul class="nav nav-treeview">
  45. <li class="nav-item">
  46. <a href="<?= route_to('admin_prestadores') ?>" class="nav-link">
  47. <i class="far fa-circle nav-icon"></i>
  48. Activos
  49. </a>
  50. </li>
  51. <li class="nav-item">
  52. <a href="<?= route_to('admin_solicitudes') ?>" class="nav-link">
  53. <i class="far fa-circle nav-icon"></i>
  54. Solicitudes
  55. </a>
  56. </li>
  57. </ul>
  58. </li>
  59. <li class="nav-item menu-open">
  60. <a href="#" class="nav-link">
  61. <i class="nav-icon fas fa-chart-bar"></i>
  62. <p>
  63. Encuestas
  64. <i class="right fas fa-angle-left"></i>
  65. </p>
  66. </a>
  67. <ul class="nav nav-treeview">
  68. <li class="nav-item">
  69. <a href="<?= route_to('admin_encuesta_nueva') ?>" class="nav-link">
  70. <i class="far fa-circle nav-icon"></i>
  71. <p>Nueva encuesta</p>
  72. </a>
  73. </li>
  74. <li class="nav-item">
  75. <a href="<?= route_to('admin_encuestas') ?>" class="nav-link">
  76. <i class="far fa-circle nav-icon"></i>
  77. <p>Lista</p>
  78. </a>
  79. </li>
  80. <li class="nav-item">
  81. <a href="<?= route_to('admin_respuestas') ?>" class="nav-link">
  82. <i class="far fa-circle nav-icon"></i>
  83. <p>Respuestas</p>
  84. </a>
  85. </li>
  86. </ul>
  87. </li>
  88. <li class="nav-item">
  89. <a href="<?= route_to('admin_logout') ?>" class="nav-link">
  90. <i class="nav-icon fas fa-sign-out-alt"></i>
  91. Cerrar sesión
  92. </a>
  93. </li>
  94. </ul>
  95. <?php endif; ?>
  96. </nav>
  97. <!-- /.sidebar-menu -->
  98. </div>
  99. <!-- /.sidebar -->
  100. </aside>
  101. <!-- Content Wrapper. Contains page content -->
  102. <div class="content-wrapper">
  103. <?php if (session('msg')) : ?>
  104. <div class="alert alert-<?= session('msg')['type'] ?> alert-dismissible fade show" role="alert">
  105. <?= session('msg')['body'] ?>
  106. <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  107. <span aria-hidden="true">&times;</span>
  108. </button>
  109. </div>
  110. <?php endif ?>
  111. <!-- Content Header (Page header) -->
  112. <div class="content-header">
  113. <div class="container-fluid">
  114. <div class="row mb-2">
  115. <div class="col-sm-6">
  116. <h1 class="m-0"><?= isset($title) ? $title : '' ?></h1>
  117. </div><!-- /.col -->
  118. </div><!-- /.row -->
  119. </div><!-- /.container-fluid -->
  120. </div>
  121. <!-- /.content-header -->
  122. <!-- Main content -->
  123. <div class="content pb-5">
  124. <div class="container-fluid">
  125. <?= $this->renderSection('content') ?>
  126. </div><!-- /.container-fluid -->
  127. </div>
  128. <!-- /.content -->
  129. </div>
  130. <!-- /.content-wrapper -->
  131. <!-- Control Sidebar -->
  132. <aside class="control-sidebar control-sidebar-dark">
  133. <!-- Control sidebar content goes here -->
  134. <div class="p-3">
  135. <h5>Title</h5>
  136. <p>Sidebar content</p>
  137. </div>
  138. </aside>
  139. <!-- /.control-sidebar -->
  140. </div>
  141. <!-- ./wrapper -->
  142. <!-- REQUIRED SCRIPTS -->
  143. <!-- jQuery -->
  144. <script src="plugins/jquery/jquery.min.js"></script>
  145. <!-- Bootstrap 4 -->
  146. <script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
  147. <!-- AdminLTE App -->
  148. <script src="dist/js/adminlte.min.js"></script>
  149. </body>
  150. </html>