header.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. function generate_password($length = 6){
  16. $chars = '0123456789';
  17. $str = '';
  18. $max = strlen($chars) - 1;
  19. for ($i=0; $i < $length; $i++)
  20. $str .= $chars[random_int(0, $max)];
  21. return $str;
  22. }
  23. ?>
  24. <!DOCTYPE html>
  25. <html lang="en" >
  26. <head>
  27. <meta charset="UTF-8">
  28. <title>Forward Staion Server</title>
  29. <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
  30. <link rel='stylesheet' href='http://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css'>
  31. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
  32. <!-- <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.css"> -->
  33. <!-- Bootstrap 3.3.7 -->
  34. <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
  35. <!-- Font Awesome -->
  36. <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css">
  37. <!-- Ionicons -->
  38. <link rel="stylesheet" href="bower_components/Ionicons/css/ionicons.min.css">
  39. <!-- Theme style -->
  40. <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
  41. <link rel="stylesheet" href="dist/css/style.css">
  42. <!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> -->
  43. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
  44. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
  45. <!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> -->
  46. <script src="bower_components/jquery/dist/jquery.min.js"></script>
  47. <script src="bower_components/raphael/raphael.min.js"></script>
  48. <script src="bower_components/morris.js/morris.min.js"></script>
  49. <script src="bower_components/moment/min/moment.min.js"></script>
  50. <script src="bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
  51. <!-- datepicker -->
  52. <script src="bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
  53. <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
  54. <!-- AdminLTE App -->
  55. <script src="dist/js/adminlte.min.js"></script>
  56. <link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
  57. <link href="https://cdn.datatables.net/r/bs-3.3.5/jq-2.1.4,dt-1.10.8/datatables.min.css" rel="stylesheet"/>
  58. <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/jq-3.3.1/jszip-2.5.0/dt-1.10.18/b-1.5.6/b-flash-1.5.6/b-html5-1.5.6/b-print-1.5.6/sl-1.3.0/datatables.min.css"/>
  59. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js"></script>
  60. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"></script>
  61. <script type="text/javascript" src="https://cdn.datatables.net/v/bs4/jq-3.3.1/jszip-2.5.0/dt-1.10.18/b-1.5.6/b-flash-1.5.6/b-html5-1.5.6/b-print-1.5.6/sl-1.3.0/datatables.min.js"></script>
  62. <script type="text/javascript">
  63. $(document).ready(function(){
  64. var $targetElement = $("#mainNavMenu li a");
  65. $targetElement.click(function() {
  66. $targetElement.removeClass("changeColor");
  67. $(this).addClass("changeColor");
  68. });
  69. });
  70. </script>
  71. <!-- <link rel="stylesheet" href="css/style.css"> -->
  72. <style type="text/css">
  73. td.details-control {
  74. background: url('resources/details_open.png') no-repeat center center;
  75. cursor: pointer;
  76. }
  77. tr.shown td.details-control {
  78. background: url('resources/details_close.png') no-repeat center center;
  79. }
  80. </style>
  81. <style type="text/css">
  82. #example {
  83. padding: 10px;
  84. }
  85. #example tbody tr:hover {
  86. background-color: cadetblue;
  87. cursor: pointer;
  88. }
  89. #example tr:hover td.sorting_1 {
  90. background-color: cadetblue;
  91. cursor: pointer;
  92. }
  93. #example th {
  94. background-color: #3C8DBC;
  95. color: white;
  96. font-size: 12px;
  97. }
  98. #example td {
  99. font-size: 12px;
  100. }
  101. #vehicle {
  102. padding: 10px;
  103. }
  104. #vehicle tbody tr:hover {
  105. background-color: cadetblue;
  106. cursor: pointer;
  107. }
  108. #vehicle tr:hover td.sorting_1 {
  109. background-color: cadetblue;
  110. cursor: pointer;
  111. }
  112. #vehicle th {
  113. background-color: #009688;
  114. }
  115. #vehicle td {
  116. font-size: 12px;
  117. }
  118. #suplier {
  119. padding: 10px;
  120. }
  121. #supplier tbody tr:hover {
  122. background-color: cadetblue;
  123. cursor: pointer;
  124. }
  125. #supplier tr:hover td.sorting_1 {
  126. background-color: cadetblue;
  127. cursor: pointer;
  128. }
  129. #supplier th {
  130. background-color: #009688;
  131. }
  132. #supplier td {
  133. font-size: 12px;
  134. }
  135. div.dt-buttons {
  136. float: right;
  137. margin:0 10px 0 10px;
  138. }
  139. </style>
  140. <style>
  141. iframe {
  142. /*float: left;*/
  143. height: 100vh; /* For 100% screen height */
  144. width: 100%; /* For 100% screen width */
  145. margin-right: 5px;
  146. border-style: none;
  147. /*border:1px solid green;*/
  148. }
  149. li.active >a{
  150. /*color: white;*/
  151. background: #009688;
  152. }
  153. </style>
  154. </head>