header.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. $i=null;
  3. function decimalAndNumberFormat1($number){
  4. $i = number_format(round($number,0));
  5. return $i;
  6. }
  7. function decimalAndNumberFormat2($number){
  8. $i = number_format(round($number,1),1);
  9. return $i;
  10. }
  11. function decimalAndNumberFormat3($number){
  12. $i = number_format(round($number,3));
  13. return $i;
  14. }
  15. ?>
  16. <link href="https://cdn.datatables.net/r/bs-3.3.5/jq-2.1.4,dt-1.10.8/datatables.min.css" rel="stylesheet"/>
  17. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
  18. <script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
  19. <script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap.min.js" charset="utf-8"></script>
  20. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
  21. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
  22. <style type="text/css">
  23. td.details-control {
  24. background: url('resources/details_open.png') no-repeat center center;
  25. cursor: pointer;
  26. }
  27. tr.shown td.details-control {
  28. background: url('resources/details_close.png') no-repeat center center;
  29. }
  30. </style>
  31. <style type="text/css">
  32. #example tbody tr:hover {
  33. background-color: cadetblue;
  34. cursor: pointer;
  35. }
  36. #example tr:hover td.sorting_1 {
  37. background-color: cadetblue;
  38. cursor: pointer;
  39. }
  40. #example th {
  41. background-color: #009688;
  42. }
  43. #vehicle tbody tr:hover {
  44. background-color: cadetblue;
  45. cursor: pointer;
  46. }
  47. #vehicle tr:hover td.sorting_1 {
  48. background-color: cadetblue;
  49. cursor: pointer;
  50. }
  51. #vehicle th {
  52. background-color: #009688;
  53. }
  54. </style>