<?php
include("../includes/items.php");
?>

<!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv BOILERS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
<table class="tftable2">
<tr>
<td width="1000%" align="center" colspan="6" border="0"><font color="#00BFFF"><i>BOILERS</i></font></td>
</tr>
</table>

<table class="tftable1" border="1">
		<tr>
			<td colspan="2" bgcolor="#DF9401" align="center" width="12.5%"><font color="#000000">Boiler 1</font></td>
			<td colspan="2" bgcolor="#DF9401" align="center" width="12,5%"><font color="#000000">Boiler 2</font></td>
			<td colspan="2" bgcolor="#DF9401" align="center" width="12.5%"><font color="#000000">Boiler 3</font></td>
			<td colspan="2" bgcolor="#DF9401" align="center" width="12.5%"><font color="#000000">Boiler 4</font></td>
			<td colspan="2" bgcolor="#DF9401" align="center" width="12.5%"><font color="#000000">Boiler 5</font></td>
			<td colspan="2" bgcolor="#DF9401" align="center" width="12.5%"><font color="#000000">Boiler 6</font></td>
			<td colspan="2" bgcolor="#DF9401" align="center" width="12.5%"><font color="#000000">Boiler 7</font></td>
			<td colspan="2" bgcolor="#DF9401" align="center" width="12.5%"><font color="#000000">Boiler 8</font></td>
		</tr>
		<tr>
			<td bgcolor="#DF9401" align="center"><font color="#000000">Steam Flow</font></td>
			<td width="40" bgcolor="#DF9401" align="center"><font color="#009900"><?php echo round(($ID['00252']),0); ?></font></td>
			<td bgcolor="#DF9401" align="center"><font color="#000000">Steam Flow</font></td>
			<td width="40" bgcolor="#DF9401" align="center"><font color="#009900"><?php echo round(($ID['00256']),0); ?></font></td>
			<td bgcolor="#DF9401" align="center"><font color="#000000">Steam Flow</font></td>
			<td width="40" bgcolor="#DF9401" align="center"><font color="#009900"><?php echo round(($value['FT_301']),0); ?></font></td>
			<td bgcolor="#DF9401" align="center"><font color="#000000">Steam Flow</font></td>
			<td width="40" bgcolor="#DF9401" align="center"><font color="#009900"><?php echo round(($value['FT_401']),0); ?></font></td>
			<td bgcolor="#DF9401" align="center"><font color="#000000">Steam Flow</font></td>
			<td width="40" bgcolor="#DF9401" align="center"><font color="#009900"><?php echo round(($value['FT_501']),0); ?></font></td>
			<td bgcolor="#DF9401" align="center"><font color="#000000">Steam Flow</font></td>
			<td width="40" bgcolor="#DF9401" align="center"><font color="#009900"><?php echo round(($value['FT_601']),0); ?></font></td>
			<td bgcolor="#DF9401" align="center"><font color="#000000">Steam Flow</font></td>
			<td width="40" bgcolor="#DF9401" align="center"><font color="#009900"><?php echo round(($ID['00050']),0); ?></font></td>
			<td bgcolor="#DF9401" align="center"><font color="#000000">Steam Flow</font></td>
			<td width="40" bgcolor="#DF9401" align="center"><font color="#009900"><?php echo round(($ID['00078']),0); ?></font></td>
		</tr>
</table>

<table class="tftable1">
<tr>
<td bgcolor="#2E2E2E" colspan="2"><font color="#e0e0e0">Total Steam Flow:</font></td>
<td bgcolor="#2E2E2E" align="right" width="75"><font color="00FF00"><b><?php echo round(($value['TTL_STEAMFLOW2']),0); ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Kpph</font></td>

<td colspan="2"><font color="#e0e0e0">Live Steam Pressure:</font></td>
<?php
		$color = "#FFFFFF";

		if (($value['PT_001'] >= 0) && ($value['PT_001'] <= 155))
		$color = "#FF0000";
		else if (($value['PT_001'] >= 156) && ($value['PT_001'] <= 165))
		$color = "#FFFF00";
		else if ($value['PT_001'] >= 165)
		$color = "#00FF00";

		echo "<td align=\"right\" width=\"75\"><font color=\"$color\"><b>". $value['PT_001'] ."</b></font></td>";
	?>
<td><font color="#e0e0e0">PSI</font></td>

<td bgcolor="#2E2E2E"><font color="#e0e0e0">Exhaust Pressure:</font></td>
	<?php
		if ($value['ExhaustAM'] == 0)
		echo "<td align=\"center\" bgcolor=\"#0B3B17\"><font color=\"#e0e0e0\">A</font></td>";
		if ($value['ExhaustAM'] == 1)
		echo "<td bgcolor=\"#2E2E2E\" align=\"center\" bgcolor=\"#8A0808\"><font color=\"#e0e0e0\">M</font></td>";
	?>
	<?php
		$color = "#FFFFFF";

		if (($ID['00302'] >= 0) && ($ID['00302'] <= 9))
		$color = "#FF0000";
		else if (($ID['00192'] >= 6) && ($ID['00302'] <= 13))
		$color = "#FFFF00";
		else if ($ID['00192'] >= 14)
		$color = "#00FF00";

		echo "<td bgcolor=\"#2E2E2E\" align=\"right\" width=\"75\"><font color=\"$color\"><b>". $ID['V'] ."</b></font></td>";
	?>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">PSI</font></td>


<td colspan="2"><font color="#e0e0e0">Vapor Header Pressure:</font></td>
<td align="right" width="75" id="lsp"><font color="00FF00"><b><?php echo $value['VAPOR HDR PRES']; ?></b></font></td>
<td><font color="#e0e0e0">PSI</font></td>

</tr>

<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF BOILERS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->

<?php

?>
