Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

table.php 2.5KB

2 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <head>
  2. <link rel="stylesheet" href="https://cdn.datatables.net/1.12.1/css/jquery.dataTables.min.css">
  3. <script src="https://code.jquery.com/jquery-3.5.1.js"></script>
  4. <script src="https://cdn.datatables.net/1.12.1/js/jquery.dataTables.min.js"></script>
  5. </head>
  6. <!-- <div id="example_wrapper" class="dataTables_wrapper"> -->
  7. <table id="example" class="display dataTable" style="width:100%" aria-describedby="example_info">
  8. <thead>
  9. <tr>
  10. <th class="sorting sorting_asc" tabindex="0" aria-controls="example" rowspan="1" colspan="1" style="width: 128.867px;" aria-sort="ascending" aria-label="Name: activate to sort column descending">Fecha</th>
  11. <th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" style="width: 217.267px;" aria-label="Position: activate to sort column ascending">Horas</th>
  12. </tr>
  13. </thead>
  14. <tbody>
  15. <tr class="odd">
  16. <td class="sorting_1">=01/10/2022</td>
  17. <td>33</td>
  18. </tr>
  19. <tr class="even">
  20. <td class="sorting_1">01/10/2022</td>
  21. <td>47</td>
  22. </tr>
  23. <tr class="odd">
  24. <td class="sorting_1">01/10/2022</td>
  25. <td>66</td>
  26. </tr>
  27. <tr class="even">
  28. <td class="sorting_1">01/10/2022</td>
  29. <td>41</td>
  30. </tr>
  31. <tr class="odd">
  32. <td class="sorting_1">01/10/2022</td>
  33. <td>28</td>
  34. </tr>
  35. <tr class="even">
  36. <td class="sorting_1">01/10/2022</td>
  37. <td>61</td>
  38. </tr>
  39. <tr class="odd">
  40. <td class="sorting_1">01/10/2022</td>
  41. <td>38</td>
  42. </tr>
  43. <tr class="even">
  44. <td class="sorting_1">02/10/2022</td>
  45. <td>21</td>
  46. </tr>
  47. <tr class="odd">
  48. <td class="sorting_1">01/10/2022</td>
  49. <td>46</td>
  50. </tr>
  51. <tr class="even">
  52. <td class="sorting_1">01/10/2022</td>
  53. <td>22</td>
  54. </tr>
  55. </tbody>
  56. <tfoot>
  57. <tr>
  58. <th rowspan="1" colspan="1">Name</th>
  59. <th rowspan="1" colspan="1">Position</th>
  60. <th rowspan="1" colspan="1">Office</th>
  61. <th rowspan="1" colspan="1">Age</th>
  62. <th rowspan="1" colspan="1">Start date</th>
  63. <th rowspan="1" colspan="1">Salary</th>
  64. </tr>
  65. </tfoot>
  66. </table>
  67. <!-- </div> -->
  68. <script>
  69. document.addEventListener('DOMContentLoaded', function() {
  70. let table = new DataTable('#example');
  71. });
  72. </script>