102 lines
4.2 KiB
PHP
102 lines
4.2 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);
|
|
|
|
$row2=mysqli_fetch_array($result, MYSQLI_ASSOC);
|
|
|
|
mysqli_close($con);
|
|
?>
|
|
|
|
<?php /*
|
|
$i=0;
|
|
while ($i < $num) {
|
|
|
|
$f61=mysql_result($result,$i,"runhrstoday");
|
|
$f62=mysql_result($result,$i,"prevtons");
|
|
$f63=mysql_result($result,$i,"prevtime");
|
|
$f64=mysql_result($result,$i,"canetot");
|
|
$f65=mysql_result($result,$i,"avgtcd");
|
|
$f81=mysql_result($result,$i,"losstime");
|
|
$f1=mysql_result($result,$i,"tonshr");
|
|
$f2=mysql_result($result,$i,"wtonshr"); */
|
|
?>
|
|
|
|
<table class="tftable1">
|
|
|
|
<!-- ****************************************** ROW START ******************************************** -->
|
|
|
|
<tr>
|
|
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Today's Tons In:</font></td>
|
|
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php include("tonsin.php");?></b></font></td>
|
|
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
|
|
|
|
<td colspan=""><font color="#e0e0e0">Total Tons Ground:</font></td>
|
|
<td align="right"><font color="00FF00"><b><?php include("../data/totground.php");?></b></font></td>
|
|
<td><font color="#e0e0e0">Tons</font></td>
|
|
|
|
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Run Hours:</font></td>
|
|
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $row2['RUNHRSTODAY']; ?></b></font></td>
|
|
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Hours</font></td>
|
|
</tr>
|
|
|
|
<!-- ****************************************** ROW END ******************************************** -->
|
|
|
|
<!-- ****************************************** ROW START ******************************************** -->
|
|
|
|
<tr>
|
|
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons Ground:</font></td>
|
|
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $row2['CANETOT']; ?></b></font></td>
|
|
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
|
|
|
|
<td colspan=""><font color="#e0e0e0">Prev Tons Ground:</font></td>
|
|
<td align="right"><font color="00FF00"><b><?php echo $row2['PREVTONS']; ?></b></font></td>
|
|
<td><font color="#e0e0e0">Tons</font></td>
|
|
|
|
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Prev Run Hours:</font></td>
|
|
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $row2['PREVTIME']; ?></b></font></td>
|
|
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Hours</font></td>
|
|
|
|
</tr>
|
|
|
|
<!-- ****************************************** ROW END ******************************************** -->
|
|
|
|
<!-- ****************************************** ROW START ******************************************** -->
|
|
|
|
<tr>
|
|
<td bgcolor="#2E2E2E"><font color="#e0e0e0">E Average Tons/Day:</font></td>
|
|
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $row2['AVGTCD']; ?></b></font></td>
|
|
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
|
|
|
|
<td rowspan="2" colspan="" align="center"><font size="6" color="#e0e0e0">Total Tons/Hr:</font></td>
|
|
<td rowspan="2" colspan="2" align="center"><font size="6" color="00FFFF"><b><?php echo ($row2['TONSHR'] + $row2['WTONSHR']); ?></b></font></td>
|
|
|
|
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Today's Loss Time:</font></td>
|
|
<td bgcolor="#2E2E2E" align="right" id="lsp"><font color="00FF00"><b><?php echo $row2['LOSSTIME']; ?></b></font></td>
|
|
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Hours</font></td>
|
|
</tr>
|
|
|
|
<!-- ****************************************** ROW END ******************************************** -->
|
|
|
|
<!-- ****************************************** ROW START ******************************************** -->
|
|
|
|
<tr>
|
|
<td bgcolor="#2E2E2E"><font color="#e0e0e0">W Average Tons/Day:</font></td>
|
|
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php include("w24hravg.php");?></b></font></td>
|
|
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
|
|
|
|
|
|
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0"></font></td>
|
|
<td bgcolor="#2E2E2E" align="right" id="lsp"><font color="00FF00"><b></b></font></td>
|
|
<td bgcolor="#2E2E2E"><font color="#e0e0e0"></font></td>
|
|
</tr>
|
|
|
|
<!-- ****************************************** ROW END ******************************************** -->
|
|
|
|
</table>
|
|
|
|
|
|
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF PAGE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
|