shiftTankReport3.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. require "connectionDb.php";
  3. $date = $_GET['selectDateToFind'];
  4. $date = str_replace('-', '_', $date);
  5. $shiftnum = 3;
  6. $shiftTankReport3 = $db->query("SELECT * FROM shift_tank_vw WHERE date='$date'");
  7. while ($row = $shiftTankReport3->fetchArray()) {
  8. if ($row['number']==$shiftnum) {
  9. echo "<div style='display: none;'>".
  10. print_r("<tr>
  11. <th>Tank Number</th>
  12. <th>Product Text</th>
  13. <th>Open Volume</th>
  14. <th>Close Volume</th>
  15. <th>Open Water Volume</th>
  16. <th>Close Water Volume</th>
  17. <th>Open Level</th>
  18. <th>Close Level</th>
  19. </tr>")
  20. ."</div>";
  21. }
  22. if ($row['number']==$shiftnum) {
  23. print_r(
  24. "<tr>"
  25. ."<td>".$row['tank_id']."</td>"
  26. ."<td>".$row['product_text']."</td>"
  27. ."<td>".decimalAndNumberFormat1($row['open_vol'])."</td>"
  28. ."<td>".decimalAndNumberFormat1($row['close_vol'])."</td>"
  29. ."<td>".decimalAndNumberFormat1($row['open_water_vol'])."</td>"
  30. ."<td>".decimalAndNumberFormat1($row['close_water_vol'])."</td>"
  31. ."<td>".decimalAndNumberFormat2($row['open_level'])."</td>"
  32. ."<td>".decimalAndNumberFormat2($row['close_level'])."</td>"
  33. ."</tr>"
  34. );
  35. }
  36. }
  37. ?>