header.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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. function dateFormatChanger($datetime) {
  24. $getDateTime = $datetime;
  25. $date = explode(' ', $getDateTime);
  26. $newDate = date("d-M-Y", strtotime($date[0]));
  27. $timezone = explode('+', $date[1]);
  28. $time = explode('.', $timezone[0]);
  29. return($newDate." ".$time[0]);
  30. }
  31. ?>
  32. <!DOCTYPE html>
  33. <html lang="en" >
  34. <head>
  35. <meta charset="UTF-8">
  36. <title>Forward Staion Server</title>
  37. <link rel = "icon" href = "img/Autoleum Logo.jpg" type = "image/x-icon">
  38. <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
  39. <link rel='stylesheet' href='http://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css'>
  40. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
  41. <!-- <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.css"> -->
  42. <!-- Bootstrap 3.3.7 -->
  43. <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
  44. <!-- Font Awesome -->
  45. <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css">
  46. <!-- Ionicons -->
  47. <link rel="stylesheet" href="bower_components/Ionicons/css/ionicons.min.css">
  48. <!-- Theme style -->
  49. <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
  50. <link rel="stylesheet" href="dist/css/style.css">
  51. <!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> -->
  52. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
  53. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
  54. <!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> -->
  55. <script src="bower_components/jquery/dist/jquery.min.js"></script>
  56. <script src="bower_components/raphael/raphael.min.js"></script>
  57. <script src="bower_components/morris.js/morris.min.js"></script>
  58. <script src="bower_components/moment/min/moment.min.js"></script>
  59. <script src="bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
  60. <!-- datepicker -->
  61. <script src="bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
  62. <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
  63. <!-- AdminLTE App -->
  64. <script src="dist/js/adminlte.min.js"></script>
  65. <link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
  66. <link href="https://cdn.datatables.net/r/bs-3.3.5/jq-2.1.4,dt-1.10.8/datatables.min.css" rel="stylesheet"/>
  67. <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"/>
  68. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js"></script>
  69. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"></script>
  70. <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>
  71. <script type="text/javascript">
  72. $(document).ready(function(){
  73. var $targetElement = $("#mainNavMenu li a");
  74. $targetElement.click(function() {
  75. $targetElement.removeClass("changeColor");
  76. $(this).addClass("changeColor");
  77. });
  78. });
  79. $(document).ready(function(){
  80. var $targetElement = $("#mainSubMenu li a");
  81. $targetElement.click(function() {
  82. $targetElement.removeClass("change");
  83. $(this).addClass("change");
  84. });
  85. });
  86. </script>
  87. <!-- <link rel="stylesheet" href="css/style.css"> -->
  88. <style type="text/css">
  89. td.details-control {
  90. background: url('resources/details_open.png') no-repeat center center;
  91. cursor: pointer;
  92. }
  93. tr.shown td.details-control {
  94. background: url('resources/details_close.png') no-repeat center center;
  95. }
  96. td.delete{
  97. color:red;
  98. }
  99. td.delete i{
  100. /*color: red;*/
  101. font-size: 20px;
  102. }
  103. td.edit {
  104. color: rebeccapurple;
  105. }
  106. td.edit i{
  107. font-size: 15px;
  108. }
  109. </style>
  110. <style type="text/css">
  111. #example {
  112. padding: 10px;
  113. }
  114. #example tbody tr:hover {
  115. background-color: cadetblue;
  116. cursor: pointer;
  117. }
  118. #example tr:hover td.sorting_1 {
  119. background-color: cadetblue;
  120. cursor: pointer;
  121. }
  122. #example th {
  123. background-color: #3C8DBC;
  124. color: white;
  125. font-size: 12px;
  126. }
  127. #example td {
  128. font-size: 12px;
  129. }
  130. #vehicle {
  131. padding: 10px;
  132. }
  133. #vehicle tbody tr:hover {
  134. background-color: cadetblue;
  135. cursor: pointer;
  136. }
  137. #vehicle tr:hover td.sorting_1 {
  138. background-color: cadetblue;
  139. cursor: pointer;
  140. }
  141. #vehicle th {
  142. background-color: #3C8DBC;
  143. }
  144. #vehicle td {
  145. font-size: 12px;
  146. }
  147. #suplier {
  148. padding: 10px;
  149. }
  150. #supplier tbody tr:hover {
  151. background-color: cadetblue;
  152. cursor: pointer;
  153. }
  154. #supplier tr:hover td.sorting_1 {
  155. background-color: cadetblue;
  156. cursor: pointer;
  157. }
  158. #supplier th {
  159. background-color: #3C8DBC;
  160. }
  161. #supplier td {
  162. font-size: 12px;
  163. }
  164. div.dt-buttons {
  165. float: right;
  166. margin:0 10px 0 10px;
  167. }
  168. </style>
  169. <style>
  170. iframe {
  171. /*float: left;*/
  172. height: 100vh; /* For 100% screen height */
  173. width: 100%; /* For 100% screen width */
  174. margin-right: 5px;
  175. border-style: none;
  176. /*border:1px solid green;*/
  177. /*overflow: hidden;*/
  178. }
  179. </style>
  180. </head>