test.php 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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. <!DOCTYPE html>
  17. <html lang="en">
  18. <head>
  19. <title>Forward Station Server</title>
  20. <meta charset="utf-8">
  21. <meta name="viewport" content="width=device-width, initial-scale=1">
  22. <link href="css/style.css" rel="stylesheet">
  23. <!-- <link rel="stylesheet" type="text/css" href="css/styles.css"> -->
  24. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
  25. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
  26. <link href="https://cdn.datatables.net/r/bs-3.3.5/jq-2.1.4,dt-1.10.8/datatables.min.css" rel="stylesheet"/>
  27. <script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
  28. <script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap.min.js" charset="utf-8"></script>
  29. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
  30. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
  31. </head>
  32. <style type="text/css">
  33. td.details-control {
  34. background: url('resources/details_open.png') no-repeat center center;
  35. cursor: pointer;
  36. }
  37. tr.shown td.details-control {
  38. background: url('resources/details_close.png') no-repeat center center;
  39. }
  40. </style>
  41. <style type="text/css">
  42. #example tbody tr:hover {
  43. background-color: cadetblue;
  44. cursor: pointer;
  45. }
  46. #example tr:hover td.sorting_1 {
  47. background-color: cadetblue;
  48. cursor: pointer;
  49. }
  50. #example th {
  51. background-color: #009688;
  52. }
  53. #vehicle tbody tr:hover {
  54. background-color: cadetblue;
  55. cursor: pointer;
  56. }
  57. #vehicle tr:hover td.sorting_1 {
  58. background-color: cadetblue;
  59. cursor: pointer;
  60. }
  61. #vehicle th {
  62. background-color: #009688;
  63. }
  64. </style>
  65. <style>
  66. * { box-sizing: border-box; }
  67. html, body {
  68. margin: 0;
  69. font-family: sans-serif;
  70. }
  71. .hamburger {
  72. position: fixed;
  73. z-index: 9999;
  74. padding: 15px;
  75. }
  76. .hamburger:hover { cursor: pointer; }
  77. .hamburger div {
  78. background-color: white;
  79. border-radius: 1px;
  80. height: 3px;
  81. width: 30px;
  82. }
  83. .hamburger div:not(:last-child) { margin-bottom: 5px; }
  84. nav {
  85. background-color: white;
  86. display: inline-block;
  87. position: fixed;
  88. height: 100vh;
  89. width: 225px;
  90. left: -225px;
  91. -webkit-transition: -webkit-transform 0.3s;
  92. transition: transform 0.3s;
  93. }
  94. nav .logo {
  95. margin: 12vh 0;
  96. text-align: center;
  97. }
  98. nav .logo p {
  99. font-weight: 100;
  100. font-size: 1em;
  101. }
  102. nav .logo img {
  103. /* border-radius: 70%; */
  104. width:50px;
  105. height:50px;
  106. margin-top:8px;
  107. }
  108. nav a {
  109. display: block;
  110. text-decoration: none;
  111. text-align: center;
  112. /* color: black; */
  113. padding: 5px 0;
  114. }
  115. nav a:visited { color: white; }
  116. nav footer {
  117. width: 225px;
  118. text-align: center;
  119. position: absolute;
  120. padding: 5px;
  121. bottom: 0;
  122. color: #959595;
  123. }
  124. nav footer p { font-size: 0.85em; }
  125. nav, .hamburger, .cover {
  126. -webkit-transition: -webkit-transform .3s;
  127. transition: transform .3s;
  128. }
  129. .sidenav-active nav, .sidenav-active .hamburger, .sidenav-active .cover {
  130. -webkit-transform: translateX(225px);
  131. -ms-transform: translateX(225px);
  132. transform: translateX(225px);
  133. }
  134. .main {
  135. -webkit-transition: margin-left .3s;
  136. transition: margin-left .3s;
  137. }
  138. .sidenav-active .main { margin-left: 225px; }
  139. section {
  140. color: white;
  141. height: 100vh;
  142. line-height: 100vh;
  143. text-align: center;
  144. }
  145. section h1 { font-size: 1.75em; }
  146. section h1, section p { margin: 0; }
  147. section:nth-child(1) { background-color: #34495E; }
  148. section:nth-child(2) { background-color: #3498DB; }
  149. section:nth-child(3) { background-color: #8E44AD; }
  150. </style>
  151. <!-- menu -->
  152. <style>
  153. /* Main content */
  154. .main {
  155. margin-left: 200px; /* Same as the width of the sidenav */
  156. font-size: 20px; /* Increased text to enable scrolling */
  157. padding: 0px 10px;
  158. }
  159. /* Add an active class to the active dropdown button */
  160. .active {
  161. background-color: #2a907e;
  162. color: white;
  163. }
  164. /* Dropdown container (hidden by default). Optional: add a lighter background color and some left padding to change the design of the dropdown content */
  165. .dropdown-container {
  166. display: none;
  167. background-color: #ffff;
  168. padding-left: 8px;
  169. margin-top: 7px;
  170. margin-bottom: 10px;
  171. margin-left: 10px;
  172. margin-right: 10px;
  173. border-radius: 0.5em
  174. }
  175. .dropdown-container a{
  176. color:black;
  177. }
  178. /* Optional: Style the caret down icon */
  179. .fa-caret-down {
  180. float: right;
  181. padding-right: 8px;
  182. }
  183. /* Some media queries for responsiveness */
  184. @media screen and (max-height: 450px) {
  185. .sidenav {padding-top: 15px;}
  186. .sidenav a {font-size: 18px;}
  187. }
  188. .dropdown-container a:hover{
  189. background:#d4d8d7;
  190. text-decoration: none;
  191. }
  192. .dropdown-container a{
  193. padding: 0.5rem 1rem;
  194. margin: 0 0.5rem;
  195. display: block;
  196. color: black ;
  197. text-decoration: none;
  198. border-radius: 0.35rem;
  199. white-space: nowrap;
  200. }
  201. .dropdown-btn{
  202. border-radius:0.5em;
  203. margin-top:19px;
  204. }
  205. .dropdown-btn:hover{
  206. background: #2a907e;
  207. color:white;
  208. text-decoration: none;
  209. }
  210. a {
  211. color: #1d969e;
  212. text-decoration: none;
  213. }
  214. </style>
  215. <style>
  216. .links {
  217. background: #dfe4e6;
  218. height: 625px;
  219. margin-top: -17px;
  220. -moz-box-shadow: 3px 3px 5px 6px #ccc;
  221. -webkit-box-shadow: 3px 3px 5px 6px #ccc;
  222. box-shadow: 3px 3px 5px 6px #ccc;
  223. overflow-y: scroll;
  224. scrollbar-color: green;
  225. }
  226. .header{
  227. -moz-box-shadow: 3px 3px 5px 6px #ccc;
  228. -webkit-box-shadow: 3px 3px 5px 6px #ccc;
  229. box-shadow: 3px 3px 5px 6px #ccc;
  230. margin-top:-86px;
  231. height:192px;
  232. }
  233. .collapse-inner{
  234. border-radius: 0.35rem;
  235. -webkit-box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  236. box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  237. padding: .5rem 0;
  238. min-width: 10rem;
  239. font-size: 12px;
  240. margin: 10 0 1rem 0;
  241. }
  242. .collapse-inner .collapse-item{
  243. padding: 0.7rem 1rem;
  244. margin: 0 0.5rem;
  245. display: block;
  246. color: rgb(5, 195, 172);
  247. text-decoration: none;
  248. border-radius: 0.35rem;
  249. white-space: nowrap;
  250. }
  251. i.fas.fa-gas-pump {
  252. margin-left: -30px;
  253. }
  254. i.fas.fa-fw.fa-chart-area {
  255. margin-left: -50px;
  256. }
  257. i.fas.fa-fw.fa-chart-area.config {
  258. margin-left: -5px;
  259. }
  260. i.fas.fa-fw.fa-table {
  261. margin-left: -95px;
  262. }
  263. i.fa.fa-caret-down {
  264. margin-top: 10px;
  265. margin-right: 15px;
  266. }
  267. </style>
  268. </head>
  269. <body class="sidenav-active">
  270. <?php //include("nav.php"); ?>
  271. <div class="main">
  272. <?php include "api/v1/Customers/customersDetails.php" ?>
  273. <?php include "api/v1/Customers/customersVw.php" ?>
  274. </div>
  275. <script>
  276. function toggleSidenav() {
  277. document.body.classList.toggle('sidenav-active');
  278. }
  279. </script>
  280. <!-- menu -->
  281. <script>
  282. /* Loop through all dropdown buttons to toggle between hiding and showing its dropdown content - This allows the user to have multiple dropdowns without any conflict */
  283. var dropdown = document.getElementsByClassName("dropdown-btn");
  284. var i;
  285. for (i = 0; i < dropdown.length; i++) {
  286. dropdown[i].addEventListener("click", function() {
  287. this.classList.toggle("active");
  288. var dropdownContent = this.nextElementSibling;
  289. if (dropdownContent.style.display === "block") {
  290. dropdownContent.style.display = "none";
  291. } else {
  292. dropdownContent.style.display = "block";
  293. }
  294. });
  295. }
  296. </script>
  297. </body>
  298. </html>