<?php
include("../includes/itemsAI.php");
?>
<table class="tftable1">
<tr>
    <td width="100%" align="center" colspan="10" border="0"><font color="#00BFFF"><i>EVAPORATORS/HEATERS</i></font></td>
</tr>
<tr>
    <td colspan="2" bgcolor="#000000" align="center"><font color="#FFFFFF"></font></td>
    <td colspan="2" bgcolor="#404040" align="center"><font color="#FFFFFF">Pre 1 South</font></td>
    <td colspan="2" bgcolor="#404040" align="center"><font color="#FFFFFF">Pre 2 North</font></td>
    <td colspan="2" bgcolor="#404040" align="center"><font color="#FFFFFF">Pre 3 35K</font></td>
    <td colspan="2" bgcolor="#404040" align="center"><font color="#FFFFFF">Pre 4 45K</font></td>
</tr>
<tr>
    <td colspan="2" width="15%" bgcolor="#404040" align="center"><font color="#FFFFFF">Level</font></td>
    <td colspan="2"><progress id="progresstanks" data-label="<?php echo $value['Pre1SouthLVL']; ?>%" max="100" value="<?php echo $value['Pre1SouthLVL']; ?>"></progress></font></td>
    <td colspan="2"><progress id="progresstanks" data-label="<?php echo $value['Pre2NorthLVL']; ?>%" max="100" value="<?php echo $value['Pre2NorthLVL']; ?>"></progress></font></td>
    <td colspan="2"><progress id="progresstanks" data-label="<?php echo $value['Pre335kLVL']; ?>%" max="100" value="<?php echo $value['Pre335kLVL']; ?>"></progress></font></td>
    <td colspan="2"><progress id="progresstanks" data-label="<?php echo $value['Pre445kLVL']; ?>%" max="100" value="<?php echo $value['Pre445kLVL']; ?>"></progress></font></td>
</tr>
<tr>
    <td colspan="2" bgcolor="#404040" align="center"><font color="#FFFFFF">Level SP</font></td>
    <td colspan="2" bgcolor="#272727" align="center"><font color="#FFFFFF" id="sum-count"><?php echo $value['Pre1SouthSP']; ?>%</font></td>
    <td colspan="2" bgcolor="#272727" align="center"><font color="#FFFFFF" id="sum-count"><?php echo $value['Pre2NorthSP']; ?>%</font></td>
    <td colspan="2" bgcolor="#272727" align="center"><font color="#FFFFFF" id="sum-count"><?php echo $value['Pre335kSP']; ?>%</font></td>
    <td colspan="2" bgcolor="#272727" align="center"><font color="#FFFFFF" id="sum-count"><?php echo $value['Pre445kSP']; ?>%</font></td>
</tr>
<tr>
    <td width="10%" colspan="1" bgcolor="#000000" align="center"><font color="#FFFFFF"></font></td>
    <td width="30%" colspan="3" bgcolor="#5B2227" align="center"><font color="#FFFFFF">Evaporators Set A</font></td>
    <td width="30%" colspan="3" bgcolor="#466F46" align="center"><font color="#FFFFFF">Evaporators Set B</font></td>
    <td width="30%" colspan="3" bgcolor="#4E5A7A" align="center"><font color="#FFFFFF">Evaporators Set C</font></td>
</tr>
<tr>
    <td width="10%" colspan="1" height="30px" bgcolor="#000000" align="center"><font color="#000000"></font></td>
    <td width="10%" colspan="1" bgcolor="#3B1619" align="center"><font color="#FFFFFF">1</font></td>
    <td width="10%" colspan="1" bgcolor="#3B1619" align="center"><font color="#FFFFFF">2</font></td>
    <td width="10%" colspan="1" bgcolor="#3B1619" align="center"><font color="#FFFFFF">3</font></td>
    <td width="10%" colspan="1" bgcolor="#253B25" align="center"><font color="#FFFFFF">1</font></td>
    <td width="10%" colspan="1" bgcolor="#253B25" align="center"><font color="#FFFFFF">2</font></td>
    <td width="10%" colspan="1" bgcolor="#253B25" align="center"><font color="#FFFFFF">3</font></td>
    <td width="10%" colspan="1" bgcolor="#303645" align="center"><font color="#FFFFFF">1</font></td>
    <td width="10%" colspan="1" bgcolor="#303645" align="center"><font color="#FFFFFF">2</font></td>
    <td width="10%" colspan="1" bgcolor="#303645" align="center"><font color="#FFFFFF">3</font></td>
</tr>
<tr>
    <td width="10%" colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF">Level</font></td>
    <td><progress id="progresstanks" bgcolor="#5B2227" data-label="<?php echo $value['WestA1Lvl']; ?>%" max="100" value="<?php echo $value['WestA1Lvl']; ?>"></progress></td>
    <td><progress id="progresstanks" bgcolor="#5B2227" data-label="<?php echo $value['WestA2Lvl']; ?>%" max="100" value="<?php echo $value['WestA2Lvl']; ?>"></progress></td>
    <td><progress id="progresstanks" bgcolor="#5B2227" data-label="<?php echo $value['WestA3Lvl']; ?>%" max="100" value="<?php echo $value['WestA3Lvl']; ?>"></progress></td>
    <td><progress id="progresstanks" bgcolor="#466F46" data-label="<?php echo $value['EastB1Lvl']; ?>%" max="100" value="<?php echo $value['EastB1Lvl']; ?>"></progress></td>
    <td><progress id="progresstanks" bgcolor="#466F46" data-label="<?php echo $value['EastB2Lvl']; ?>%" max="100" value="<?php echo $value['EastB2Lvl']; ?>"></progress></td>
    <td><progress id="progresstanks" bgcolor="#466F46" data-label="<?php echo $value['EastB3Lvl']; ?>%" max="100" value="<?php echo $value['EastB3Lvl']; ?>"></progress></td>
    <td><progress id="progresstanks" bgcolor="#4E5A7A" data-label="<?php echo $value['BigC1Lvl']; ?>%" max="100" value="<?php echo $value['BigC1Lvl']; ?>"></progress></td>
    <td><progress id="progresstanks" bgcolor="#4E5A7A" data-label="<?php echo $value['BigC2Lvl']; ?>%" max="100" value="<?php echo $value['BigC2Lvl']; ?>"></progress></td>
    <td><progress id="progresstanks" bgcolor="#4E5A7A" data-label="<?php echo $value['BigC3Lvl']; ?>%" max="100" value="<?php echo $value['BigC3Lvl']; ?>"></progress></td>
</tr>
<tr>
    <td width="10%" colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF">Level SP</font></td>
    <td colspan="1" bgcolor="#3B1619" align="center"><font color="#FFFFFF"><?php echo $value['WestA1LvlSP']; ?>%</font></td>
    <td colspan="1" bgcolor="#3B1619" align="center"><font color="#FFFFFF"><?php echo $value['WestA2LvlSP']; ?>%</font></td>
    <td colspan="1" bgcolor="#3B1619" align="center"><font color="#FFFFFF"><?php echo $value['WestA3LvlSP']; ?>%</font></td>
    <td colspan="1" bgcolor="#253B25" align="center"><font color="#FFFFFF"><?php echo $value['EastB1LvlSP']; ?>%</font></td>
    <td colspan="1" bgcolor="#253B25" align="center"><font color="#FFFFFF"><?php echo $value['EastB2LvlSP']; ?>%</font></td>
    <td colspan="1" bgcolor="#253B25" align="center"><font color="#FFFFFF"><?php echo $value['EastB3LvlSP']; ?>%</font></td>
    <td colspan="1" bgcolor="#303645" align="center"><font color="#FFFFFF"><?php echo $value['BigC1LvlSP']; ?>%</font></td>
    <td colspan="1" bgcolor="#303645" align="center"><font color="#FFFFFF"><?php echo $value['BigC2LvlSP']; ?>%</font></td>
    <td colspan="1" bgcolor="#303645" align="center"><font color="#FFFFFF"><?php echo $value['BigC3LvlSP']; ?>%</font></td>
</tr>
<tr>
    <td width="10%" colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF">Feed Valve</font></td>
    <td colspan="1" bgcolor="#5B2227" align="center"><font color="#FFFFFF"><?php echo $value['WestA1FV']; ?>%</font></td>
    <td colspan="1" bgcolor="#5B2227" align="center"><font color="#FFFFFF"><?php echo $value['WestA2FV']; ?>%</font></td>
    <td colspan="1" bgcolor="#5B2227" align="center"><font color="#FFFFFF"><?php echo $value['WsetA3FV']; ?>%</font></td>
    <td colspan="1" bgcolor="#466F46" align="center"><font color="#FFFFFF"><?php echo $value['EastB1FV']; ?>%</font></td>
    <td colspan="1" bgcolor="#466F46" align="center"><font color="#FFFFFF"><?php echo $value['EastB2FV']; ?>%</font></td>
    <td colspan="1" bgcolor="#466F46" align="center"><font color="#FFFFFF"><?php echo $value['EastB3FV']; ?>%</font></td>
    <td colspan="1" bgcolor="#4E5A7A" align="center"><font color="#FFFFFF"><?php echo $value['BigC1FV']; ?>%</font></td>
    <td colspan="1" bgcolor="#4E5A7A" align="center"><font color="#FFFFFF"><?php echo $value['BigC2FV']; ?>%</font></td>
    <td colspan="1" bgcolor="#4E5A7A" align="center"><font color="#FFFFFF"><?php echo $value['BigC3FV']; ?>%</font></td>
</tr>
<tr>
    <td width="10%" colspan="1" bgcolor="#272727" align="center"><font color="#FFFFFF">Vacuum</font></td>	
    <td colspan="1" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['WestAVacuumSP']; ?> SP</font></td>
    <td colspan="1" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['WestAVacuum']; ?></font></td>
    <td colspan="1" bgcolor="#272727" align="center"><font color="#FFFFFF"></font></td>
    <td colspan="1" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['EastBVacuumSP']; ?> SP</font></td>
    <td colspan="1" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['EastBVacuum']; ?></font></td>
    <td colspan="1" bgcolor="#272727" align="center"><font color="#FFFFFF"></font></td>
    <td colspan="1" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['BigCVacuumSP']; ?> SP</font></td>
    <td colspan="1" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['BigCVacuum']; ?></font></td>
    <td colspan="1" bgcolor="#272727" align="center"><font color="#FFFFFF"></font></td>
</tr>
<!--
<tr>
    <td width="10%" colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF">Vacuum</font></td>
    <td colspan="1" bgcolor="#5B2227" align="center"><font color="#FFFFFF"><?php echo $rounded['WestAVacuum']; ?></font></td>
    <td colspan="3" bgcolor="#466F46" align="center"><font color="#FFFFFF"><?php echo $rounded['EastBVacuum']; ?></font></td>
    <td colspan="3" bgcolor="#4E5A7A" align="center"><font color="#FFFFFF"><?php echo $rounded['BigCVacuum']; ?></font></td>
</tr>
-->
<tr>
    <td width="10%" colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF">Brix</font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF"><?php echo $rounded['WestABrixSP']; ?> SP</font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF"><?php echo $rounded['WestABrix']; ?></font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF"></font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF"><?php echo $rounded['EastBBrixSP']; ?> SP</font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF"><?php echo $rounded['EastBBrix']; ?></font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF"></font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF"><?php echo $rounded['BigCBrixSP']; ?> SP</font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF"><?php echo $rounded['BigCBrix']; ?></font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF"></font></td>
</tr>
<!--
<tr>
    <td width="10%" colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF">Brix</font></td>
    <td colspan="3" bgcolor="#5B2227" align="center"><font color="#FFFFFF"><?php echo $rounded['WestABrix']; ?></font></td>
    <td colspan="3" bgcolor="#466F46" align="center"><font color="#FFFFFF"><?php echo $rounded['EastBBrix']; ?></font></td>
    <td colspan="3" bgcolor="#4E5A7A" align="center"><font color="#FFFFFF"><?php echo $rounded['BigCBrix']; ?></font></td>
</tr>
-->
</table>
<table class="tftable1">
<tr>
    <td colspan="1" bgcolor="#000000" align="center"><font color="#FFFFFF"></font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF">Heater 1</font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF">Heater 2</font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF">Heater 3</font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF">Heater 4</font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF">Heater 5</font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF">Heater 6</font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF">Heater 7</font></td>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF">Heater 8</font></td>
</tr>
    <td colspan="1" width="11.11%" bgcolor="#404040" align="center"><font color="#FFFFFF">Temp</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['Heater 1 Temp']; ?>&deg</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['Heater 2 Temp']; ?>&deg</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['Heater 3 Temp']; ?>&deg</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['Heater 4 Temp']; ?>&deg</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['Heater 5 Temp']; ?>&deg</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['Heater 6 Temp']; ?>&deg</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['Heater 7 Temp']; ?>&deg</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['Heater 8 Temp']; ?>&deg</font></td>
<tr>
    <td colspan="1" bgcolor="#404040" align="center"><font color="#FFFFFF">Setpoint</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['Heater 2 SP']; ?>&deg</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['Heater 2 SP']; ?>&deg</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['Heater 3 SP']; ?>&deg</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['Heater 4 SP']; ?>&deg</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['Heater 5 SP']; ?>&deg</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['Heater 6 SP']; ?>&deg</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['Heater 7 SP']; ?>&deg</font></td>
    <td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['Heater 8 SP']; ?>&deg</font></td>
</tr>
</table>