130 lines
6.9 KiB
PHP
130 lines
6.9 KiB
PHP
<?php
|
|
error_reporting(E_ERROR);
|
|
$username="corey";
|
|
$password="41945549";
|
|
$database="controls";
|
|
|
|
mysql_connect('127.0.0.1',$username,$password);
|
|
@mysql_select_db($database) or die( "Unable to select database");
|
|
$query = "(SELECT * FROM boilers ORDER BY id DESC LIMIT 1)";
|
|
$result=mysql_query($query);
|
|
|
|
$num=mysql_numrows($result);
|
|
|
|
mysql_close();
|
|
?>
|
|
|
|
<?php
|
|
$i=0;
|
|
while ($i < $num) {
|
|
$f103=mysql_result($result,$i,"boiler7drumlvla");
|
|
$f104=mysql_result($result,$i,"boiler7drumlvlb");
|
|
$f105=mysql_result($result,$i,"boiler7drumlvlc");
|
|
$f106=mysql_result($result,$i,"boiler7lvl");
|
|
$f107=mysql_result($result,$i,"boiler7drumpress");
|
|
$f108=mysql_result($result,$i,"boiler7feedwater");
|
|
$f111=mysql_result($result,$i,"boiler7feedwaterpres");
|
|
$f109=mysql_result($result,$i,"boiler7steamflow");
|
|
$f110=mysql_result($result,$i,"boiler7livesteam");
|
|
$f118=mysql_result($result,$i,"boiler8lvl");
|
|
$f119=mysql_result($result,$i,"boiler8drumpress");
|
|
?>
|
|
|
|
<!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv BOILERS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
|
|
<table class="tftable6" border="1">
|
|
<tr>
|
|
<td colspan="3" bgcolor="#121211" align="center" width="50%" style="color:#00BFFF; font-size: 80px;">BOILER 7</td>
|
|
<td colspan="3" bgcolor="#121211" align="center" width="50%" style="color:#00BFFF; font-size: 80px;">BOILER 8</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL A</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 80px;"><?php echo $f103; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL A</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 80px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL B</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 80px;"><?php echo $f104; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL B</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 80px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL C</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 80px;"><?php echo $f105; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL C</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 80px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL Avg</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:#00d145; font-size: 80px;"><?php echo $f106; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL Avg</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:#00d145; font-size: 80px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum Pressure</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:#00d145; font-size: 80px;"><?php echo $f107; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Psig</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum Pressure</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:#00d145; font-size: 80px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Psig</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Live Steam Pressure</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:#00d145; font-size: 80px;"><?php echo $f110; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">psi</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Live Steam Pressure</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:#00d145; font-size: 80px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">psi</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Feed Water Pressure</td>
|
|
<?php
|
|
$color = "#FFFFFF";
|
|
|
|
if (($f111 >= 0) && ($f111 <= 290))
|
|
$color = "#FF0000";
|
|
else if (($f111 >= 290) && ($f111 <= 300))
|
|
$color = "#FFFF00";
|
|
else if ($f111 >= 300)
|
|
$color = "#00d145";
|
|
|
|
echo "<td bgcolor=\"#242424\" align=\"center\" width=\"75\" style=\"color:$color; font-size: 80px;\"><b> $f111 </b></font></td>";
|
|
?>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Psig</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Feed Water Pressure</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:#19afff; font-size: 80px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Psig</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Feed Water Flow</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:#19afff; font-size: 80px;"><?php echo $f108; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">kpph</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Feed Water Flow</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:#19afff; font-size: 80px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">kpph</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Steam Flow</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:#19afff; font-size: 80px;"><?php echo $f109; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">kpph</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Steam Flow</td>
|
|
<td width="350" bgcolor="#242424" align="center" style="color:#19afff; font-size: 80px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">kpph</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF BOILERS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
|
|
|
|
<?php
|
|
$i++;
|
|
}
|
|
?>
|