Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

172 řádky
7.5KB

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