<?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>
<!-- ****************************************** ROW START ******************************************** -->

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

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

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

		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>
</tr>

<!-- ****************************************** ROW END ******************************************** -->

<!-- ****************************************** ROW START ******************************************** -->

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

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

		echo "<td align=\"right\"><font color=\"$color\"><b> ".$ID['00302']." </b></font></td>";
	?>
<td><font color="#e0e0e0">PSI</font></td>

<td bgcolor="#2E2E2E" colspan="2"><font color="#e0e0e0"></font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0"></font></td>

<td colspan="2"><font color="#e0e0e0"></font></td>
<td align="right"><font color="00FF00"><b></b></font></td>
<td><font color="#e0e0e0"></font></td>
</tr>

</table>

<!-- ****************************************** ROW END ******************************************** -->

<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ START OF BOILERS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<table class="tftable5" border="1">
		<tr>
			<td colspan="4" bgcolor="#e06b04" align="center" width="25%"><font color="#000000">Boiler 1</font></td>
			<td colspan="4" bgcolor="#b36537" align="center" width="25%"><font color="#000000">Boiler 2</font></td>
			<td colspan="4" bgcolor="#e06b04" align="center" width="25%"><font color="#000000">Boiler 3</font></td>
			<td colspan="4" bgcolor="#b36537" align="center" width="25%"><font color="#000000">Boiler 4</font></td>
		</tr>
		<tr>
			<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
			<td align="left" width="100"><progress id="progressboilers" max="110" value="<?php echo $ID['00310']; ?>"></progress></td>
			<td align="right" width="80"><font color="#e60000"><?php echo $ID['00310']; ?></font></td>
			<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
			<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
			<td align="left" width="100"><progress id="progressboilers" max="105" value="<?php echo $ID['00314']; ?>"></progress></td>
			<td align="right" width="80"><font color="#e60000"><?php echo $ID['00314']; ?></font></td>
			<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
			<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
			<td align="left" width="100"><progress id="progressboilers" max="100" value="<?php echo $value['FT_301']; ?>"></progress></td>
			<td align="right" width="80"><font color="#e60000"><?php echo $value['FT_301']; ?></font></td>
			<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
			<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
			<td align="left" width="100"><progress id="progressboilers" max="60" value="<?php echo $value['FT_401']; ?>"></progress></td>
			<td align="right" width="80"><font color="#e60000"><?php echo $value['FT_401']; ?></font></td>
			<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
		</tr>
		<tr>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
			<td align="right" width="50"><font color="#12bd5a"><?php echo $value['LT_102']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">%</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
			<td align="right" width="50"><font color="#12bd5a"><?php echo $value['LT_202']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">%</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
			<td align="right" width="50"><font color="#12bd5a"><?php echo $value['LT_302']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">%</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
			<td align="right" width="50"><font color="#12bd5a"><?php echo $value['LT_402']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">%</font></td>
		</tr>
		<tr>
			<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
			<td align="right" width="50"><font color="#129dbd"><?php echo $value['FT_103']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
			<td align="right" width="50"><font color="#129dbd"><?php echo $value['FT_203']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
			<td align="right" width="50"><font color="#129dbd"><?php echo $value['FT_303']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
			<td align="right" width="50"><font color="#129dbd"><?php echo $value['FT_403']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
		</tr>
		<tr>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
			<td align="right" width="50"><font color="#e2c211"><?php echo $value['PT_105']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
			<td align="right" width="50"><font color="#e2c211"><?php echo $value['PT_205']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
			<td align="right" width="50"><font color="#e2c211"><?php echo $value['PT_305']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
			<td align="right" width="50"><font color="#e2c211"><?php echo $value['PT_405']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
		</tr>
		<tr>
			<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
			<td align="right" width="50"><font color="#0c7300"><?php echo $value['SIT_104']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
			<td align="right" width="50"><font color="#0c7300"><?php echo $value['SIT_204']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
			<td align="right" width="50"><font color="#0c7300"><?php echo $value['SIT_304']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
			<td align="right" width="50"><font color="#0c7300"><?php echo $value['SIT_404']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
		</tr>
</table>
<table class="tftable5" border="1">
		<tr>
			<td colspan="4" bgcolor="#b36537" align="center" width="25%"><font color="#000000">Boiler 5</font></td>
			<td colspan="4" bgcolor="#e06b04" align="center" width="25%"><font color="#000000">Boiler 6</font></td>
			<td colspan="4" bgcolor="#b36537" align="center" width="25%"><font color="#000000">Boiler 7</font></td>
			<td colspan="4" bgcolor="#e06b04" align="center" width="25%"><font color="#000000">Boiler 8</font></td>
		</tr>
		<tr>
			<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
			<td align="left" width="100"><progress id="progressboilers" max="55" value="<?php echo $value['FT_501']; ?>"></progress></td>
			<td align="right" width="80"><font color="#e60000"><?php echo $value['FT_501']; ?></font></td>
			<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
			<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
			<td align="left" width="100"><progress id="progressboilers" max="90" value="<?php echo $value['FT_601']; ?>"></progress></td>
			<td align="right" width="80"><font color="#e60000"><?php echo $value['FT_601']; ?></font></td>
			<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
			<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
			<td align="left" width="100"><progress id="progressboilers" max="270" value="<?php echo $ID['00048']; ?>"></progress></td>
			<td align="right" width="80"><font color="#e60000"><?php echo $ID['00048']; ?></font></td>
			<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
			<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
			<td align="left" width="100"><progress id="progressboilers" max="270" value="<?php echo $ID['00078']; ?>"></progress></td>
			<td align="right" width="80"><font color="#e60000"><?php echo $ID['00078']; ?></font></td>
			<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
		</tr>
		<tr>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
			<td align="right" width="50"><font color="#12bd5a"><?php echo $value['LT_502']; ?><font></td>
			<td align="left" width="50"><font color="#e0e0e0">%</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
			<td align="right" width="50"><font color="#12bd5a"><?php echo $value['LT_602']; ?><font></td>
			<td align="left" width="50"><font color="#e0e0e0">%</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
			<td align="right" width="50"><font color="#12bd5a"><?php echo $ID['00004']; ?><font></td>
			<td align="left" width="50"><font color="#e0e0e0">%</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
			<td align="right" width="50"><font color="#12bd5a"><?php echo $ID['00032']; ?><font></td>
			<td align="left" width="50"><font color="#e0e0e0">%</font></td>
		</tr>
		<tr>
			<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
			<td align="right" width="50"><font color="#129dbd"><?php echo $value['FT_503']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
			<td align="right" width="50"><font color="#129dbd"><?php echo $value['FT_603']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
			<td align="right" width="50"><font color="#129dbd"><?php echo $ID['00014']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
			<td align="right" width="50"><font color="#129dbd"><?php echo $ID['00042']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
		</tr>
		<tr>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
			<td align="right" width="50"><font color="#e2c211"><?php echo $value['PT_505']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
			<td align="right" width="50"><font color="#e2c211"><?php echo $value['PT_605']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
			<td align="right" width="50"><font color="#e2c211"><?php echo $ID['00010']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
			<td align="right" width="50"><font color="#e2c211"><?php echo $ID['00038']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
		</tr>
		<tr>
			<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
			<td align="right" width="50"><font color="#0c7300"><?php echo $value['SIT_504']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
			<td align="right" width="50"><font color="#0c7300"><?php echo $value['SIT_604']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
			<td align="right" width="50"><font color="#0c7300"><?php echo $ID['00020']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
			<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
			<td align="right" width="50"><font color="#0c7300"><?php echo $ID['00048']; ?></font></td>
			<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
		</tr>
</table>

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