25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

baseAdmin.php 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. </ul>
  81. </li>
  82. <li class="nav-item">
  83. <a href="<?= route_to('admin_logout') ?>" class="nav-link">
  84. <i class="nav-icon fas fa-sign-out-alt"></i>
  85. Cerrar sesión
  86. </a>
  87. </li>
  88. </ul>
  89. <?php endif; ?>
  90. </nav>
  91. <!-- /.sidebar-menu -->
  92. </div>
  93. <!-- /.sidebar -->
  94. </aside>
  95. <!-- Content Wrapper. Contains page content -->
  96. <div class="content-wrapper">
  97. <?php if (session('msg')) : ?>
  98. <div class="alert alert-<?= session('msg')['type'] ?> alert-dismissible fade show" role="alert">
  99. <?= session('msg')['body'] ?>
  100. <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  101. <span aria-hidden="true">&times;</span>
  102. </button>
  103. </div>
  104. <?php endif ?>
  105. <!-- Content Header (Page header) -->
  106. <div class="content-header">
  107. <div class="container-fluid">
  108. <div class="row mb-2">
  109. <div class="col-sm-6">
  110. <h1 class="m-0"><?= isset($title) ? $title : '' ?></h1>
  111. </div><!-- /.col -->
  112. </div><!-- /.row -->
  113. </div><!-- /.container-fluid -->
  114. </div>
  115. <!-- /.content-header -->
  116. <!-- Main content -->
  117. <div class="content pb-5">
  118. <div class="container-fluid">
  119. <?= $this->renderSection('content') ?>
  120. </div><!-- /.container-fluid -->
  121. </div>
  122. <!-- /.content -->
  123. </div>
  124. <!-- /.content-wrapper -->
  125. <!-- Control Sidebar -->
  126. <aside class="control-sidebar control-sidebar-dark">
  127. <!-- Control sidebar content goes here -->
  128. <div class="p-3">
  129. <h5>Title</h5>
  130. <p>Sidebar content</p>
  131. </div>
  132. </aside>
  133. <!-- /.control-sidebar -->
  134. </div>
  135. <!-- ./wrapper -->
  136. <!-- REQUIRED SCRIPTS -->
  137. <!-- jQuery -->
  138. <script src="plugins/jquery/jquery.min.js"></script>
  139. <!-- Bootstrap 4 -->
  140. <script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
  141. <!-- AdminLTE App -->
  142. <script src="dist/js/adminlte.min.js"></script>
  143. </body>
  144. </html>