shiftPumpReport.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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>
  18. <head>
  19. <meta charset="utf-8">
  20. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  21. <title>Forward Station Server</title>
  22. <!-- Tell the browser to be responsive to screen width -->
  23. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  24. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
  25. <link href="https://cdn.datatables.net/r/bs-3.3.5/jq-2.1.4,dt-1.10.8/datatables.min.css" rel="stylesheet"/>
  26. <script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
  27. <script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap.min.js" charset="utf-8"></script>
  28. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
  29. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
  30. <!-- Bootstrap 3.3.7 -->
  31. <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
  32. <!-- Font Awesome -->
  33. <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css">
  34. <!-- Ionicons -->
  35. <link rel="stylesheet" href="bower_components/Ionicons/css/ionicons.min.css">
  36. <!-- Theme style -->
  37. <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
  38. <link rel="stylesheet" href="dist/css/style.css">
  39. <!-- <link rel="stylesheet" href="dist/css/skins/_all-skins.min.css"> -->
  40. <!-- Morris chart -->
  41. <link rel="stylesheet" href="bower_components/morris.js/morris.css">
  42. <!-- jvectormap -->
  43. <link rel="stylesheet" href="bower_components/jvectormap/jquery-jvectormap.css">
  44. <!-- Date Picker -->
  45. <link rel="stylesheet" href="bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
  46. <!-- Daterange picker -->
  47. <link rel="stylesheet" href="bower_components/bootstrap-daterangepicker/daterangepicker.css">
  48. <!-- bootstrap wysihtml5 - text editor -->
  49. <link rel="stylesheet" href="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
  50. <!-- Google Font -->
  51. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
  52. <link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
  53. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
  54. </head>
  55. <body class="hold-transition skin-blue sidebar-mini">
  56. <div class="wrapper">
  57. <?php include("main_header.php");?>
  58. <!-- Content Wrapper. Contains page content -->
  59. <div class="content-wrapper">
  60. <form>
  61. <input type="date" name="selectDateToFind">
  62. <input class="btn btn-primary" type="submit" value="Find">
  63. </form>
  64. <table id="example" class="table display table-striped table-bordered table-hover table-sm" cellspacing="0" width="100%">
  65. <?php include "api/v1/ShiftPumpReport/shiftPumpVw1.php" ?>
  66. <?php include "api/v1/ShiftPumpReport/shiftPumpReport1.php" ?>
  67. <?php include "api/v1/ShiftPumpReport/shiftPumpVw2.php" ?>
  68. <?php include "api/v1/ShiftPumpReport/shiftPumpReport2.php" ?>
  69. <tfoot>
  70. <tr>
  71. <th>Pump Number</th>
  72. <th>Fuel Grade</th>
  73. <th>Pump Opening Volume</th>
  74. <th>Pump Closing Volume</th>
  75. <th>Sale Volume (Closing Volume - Opening Volume)</th>
  76. <th>Unit Price</th>
  77. <th>Money (Sale Volume x Unit Price)</th>
  78. </tr>
  79. </tfoot>
  80. </table>
  81. </div>
  82. <!-- /.content-wrapper -->
  83. </div>
  84. <!-- ./wrapper -->
  85. <!-- jQuery 3 -->
  86. <script src="bower_components/jquery/dist/jquery.min.js"></script>
  87. <script>
  88. $.widget.bridge('uibutton', $.ui.button);
  89. </script>
  90. <!-- Bootstrap 3.3.7 -->
  91. <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
  92. <!-- Morris.js charts -->
  93. <script src="bower_components/raphael/raphael.min.js"></script>
  94. <script src="bower_components/morris.js/morris.min.js"></script>
  95. <script src="bower_components/moment/min/moment.min.js"></script>
  96. <script src="bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
  97. <!-- datepicker -->
  98. <script src="bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
  99. <!-- Bootstrap WYSIHTML5 -->
  100. <script src="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
  101. <!-- Slimscroll -->
  102. <!-- FastClick -->
  103. <script src="bower_components/fastclick/lib/fastclick.js"></script>
  104. <!-- AdminLTE App -->
  105. <script src="dist/js/adminlte.min.js"></script>
  106. <!-- AdminLTE dashboard demo (This is only for demo purposes) -->
  107. <script src="dist/js/pages/dashboard.js"></script>
  108. <!-- AdminLTE for demo purposes -->
  109. <script src="dist/js/demo.js"></script>
  110. </body>
  111. </html>
  112. <!-- -->