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.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?= $this->extend('templates/baseAdmin') ?>
  2. <?= $this->section('content') ?>
  3. <h2>lista de prestadores</h2>
  4. <script src="https://code.jquery.com/jquery-3.5.1.js"></script>
  5. <script src="https://cdn.datatables.net/1.12.1/js/jquery.dataTables.min.js"></script>
  6. <script src="https://cdn.datatables.net/1.12.1/js/dataTables.bootstrap5.min.js"></script>
  7. <div class="card">
  8. <div class="card-body">
  9. <table id="table-solicitudes" class="table table-bordered table-striped">
  10. <thead>
  11. <th>Nombre</th>
  12. <th>Tipo</th>
  13. <th>Email</th>
  14. <th>Celular</th>
  15. </thead>
  16. <tbody>
  17. <?php foreach ($prestadores as $prestador) : ?>
  18. <tr>
  19. <td><?= $prestador['nombre'] . ' ' . $prestador['apaterno'] . ' ' . $prestador['amaterno'] ?></td>
  20. <td><?= $prestador['tipo'] ?></td>
  21. <td><?= $prestador['email'] ?></td>
  22. <td><?= $prestador['celular'] ?></td>
  23. </tr>
  24. <?php endforeach ?>
  25. </tbody>
  26. </table>
  27. </div>
  28. </div>
  29. <script>
  30. document.addEventListener('DOMContentLoaded', function() {
  31. let table = new DataTable('#table-solicitudes', {
  32. 'searching': true,
  33. 'ordering': true,
  34. 'language': {
  35. "decimal": "",
  36. "emptyTable": "No hay información",
  37. "info": "Mostrando _START_ a _END_ de _TOTAL_ registros",
  38. "infoEmpty": "Mostrando 0 to 0 of 0 registros",
  39. "infoFiltered": "(Filtrado de _MAX_ total registros)",
  40. "infoPostFix": "",
  41. "thousands": ",",
  42. "lengthMenu": "Mostrar _MENU_ registros",
  43. "loadingRecords": "Cargando...",
  44. "processing": "Procesando...",
  45. "search": "Buscar:",
  46. "zeroRecords": "No se encontraron resultados",
  47. "paginate": {
  48. "first": "Primero",
  49. "last": "Ultimo",
  50. "next": "Siguiente",
  51. "previous": "Anterior"
  52. }
  53. },
  54. 'order': [],
  55. });
  56. });
  57. </script>
  58. <?= $this->endSection() ?>