67 lines
3.6 KiB
PHP
67 lines
3.6 KiB
PHP
|
|
<?php
|
|
include("../../dbinfo.php");
|
|
|
|
$con=mysqli_connect($host,$username,$password,$database);
|
|
$query = "(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
|
|
$result=mysqli_query($con,$query);
|
|
|
|
$row=mysqli_fetch_array($result,MYSQLI_ASSOC);
|
|
|
|
mysqli_close($con);
|
|
?>
|
|
|
|
<?php/*
|
|
$i=0;
|
|
while ($i < $num) {
|
|
|
|
$f66=mysql_result($result,$i,"juicetankbit");
|
|
$f67=mysql_result($result,$i,"juicelvl");
|
|
$f110=mysql_result($result,$i,"dmbeltrunning");
|
|
$f111=mysql_result($result,$i,"tdbeltscale");
|
|
$f112=mysql_result($result,$i,"tdbeltscaleonoff");
|
|
$f113=mysql_result($result,$i,"syrupoverflow");
|
|
$f114=mysql_result($result,$i,"molbreclvl");
|
|
$f115=mysql_result($result,$i,"syruprcvrlvl");
|
|
$f116=mysql_result($result,$i,"amollvl");
|
|
$f117=mysql_result($result,$i,"amoloverflow");
|
|
$f118=mysql_result($result,$i,"bmoloverflow");*/
|
|
?>
|
|
|
|
<table class="tftable2">
|
|
<tr>
|
|
<td width="1000%" align="center" colspan="6" border="0"><font color="#00BFFF"><i>TANK LEVELS</i></font></td>
|
|
</tr>
|
|
</table>
|
|
<table class="tftable1">
|
|
<tr>
|
|
<?php
|
|
if ($row['JUICETANKBIT'] == 0)
|
|
echo "<td colspan=\"\" width=\"12.5%\" align=\"center\"><font color=\"#e0e0e0\">One Juice Tank</font></td>";
|
|
if ($row['JUICETANKBIT'] == 1)
|
|
echo "<td colspan=\"\" width=\"12.5%\" align=\"center\"><font color=\"#e0e0e0\">Two Juice Tanks</font></td>";
|
|
?>
|
|
<td colspan="" width="12.5%" bgcolor="#2E2E2E" align="center"><font color="#e0e0e0" >Syrup RCVR</font></td>
|
|
<td colspan="" width="12.5%" align="center"><font color="#e0e0e0">Syrup Overflow</font></td>
|
|
<td colspan="" width="12.5%" bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">Total Syrup</font></td>
|
|
<td colspan="" width="12.5%" align="center"><font color="#e0e0e0">A RCVR</font></td>
|
|
<td colspan="" width="12.5%" bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">A Overflow</font></td>
|
|
<td colspan="" width="12.5%" align="center"><font color="#e0e0e0">B RCVR</font></td>
|
|
<td colspan="" width="12.5%" bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">B Overflow</font></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="12.5" align="left"><progress id="progresstanks" data-label="<?php echo $row['JUICELVL']; ?>%" max="100" value="<?php echo $row['JUICELVL']; ?>"></progress></td>
|
|
<td width="12.5" bgcolor="#2E2E2E" align="left"><progress id="progresstanks" data-label="<?php echo $row['SYRUPRCVRLVL']; ?>%" max="100" value="<?php echo $row['SYRUPRCVRLVL']; ?>"></progress></td>
|
|
<td width="12.5" align="left"><progress id="progresstanks" data-label="<?php echo $row['SYRUPOVERFLOW']; ?>%" max="100" value="<?php echo $row['SYRUPOVERFLOW']; ?>"></progress></td>
|
|
<td width="12.5" bgcolor="#2E2E2E" align="left"><progress id="progresstanks" data-label="<?php echo round(($row['SYRUPOVERFLOW']*.388)+($row['SYRUPRCVRLVL']*.612),0); ?>%" max="100" value="<?php echo round(($row['SYRUPOVERFLOW']*.388)+($row['SYRUPRCVRLVL']*.612),0); ?>"></meter></td>
|
|
<td width="12.5" align="left"><progress id="progresstanks" data-label="<?php echo $row['AMOLLVL']; ?>%" max="100" value="<?php echo $row['AMOLLVL']; ?>"></progress></td>
|
|
<td width="12.5" bgcolor="#2E2E2E" align="left"><progress id="progresstanks" data-label="<?php echo $row['AMOLOVERFLOW']; ?>%" max="100" value="<?php echo $row['AMOLOVERFLOW']; ?>"></progress></td>
|
|
<td width="12.5" align="left"><progress id="progresstanks" data-label="<?php echo $row['MOLBRECLVL']; ?>%" max="100" value="<?php echo $row['MOLBRECLVL']; ?>"></progress></td>
|
|
<td width="12.5" bgcolor="#2E2E2E" align="left"><progress id="progresstanks" data-label="<?php echo $row['BMOLOVERFLOW']; ?>%" max="100" value="<?php echo $row['BMOLOVERFLOW']; ?>"></progress></td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<?php
|
|
?>
|