Folder reorganize 1
This commit is contained in:
@@ -1,98 +1,94 @@
|
||||
<?php
|
||||
include("../includes/items.php");
|
||||
// phpcs:ignoreFile
|
||||
declare(strict_types=1);
|
||||
|
||||
include __DIR__ . '/../../items.php';
|
||||
require_once __DIR__ . '/module-helpers.php';
|
||||
|
||||
$steamFlowTotal = module_numeric($value['TTL_STEAMFLOW2']);
|
||||
$liveSteam = module_numeric($value['PT_001']);
|
||||
|
||||
if ($liveSteam === null) {
|
||||
$liveSteamPill = module_status('No Signal', 'module-pill--alert');
|
||||
} elseif ($liveSteam < 156) {
|
||||
$liveSteamPill = module_status('Low', 'module-pill--alert');
|
||||
} elseif ($liveSteam <= 165) {
|
||||
$liveSteamPill = module_status('Watch', 'module-pill--warn');
|
||||
} else {
|
||||
$liveSteamPill = module_status('Optimal', 'module-pill--success');
|
||||
}
|
||||
|
||||
$exhaustMode = module_mode(isset($value['ExhaustAM']) ? (int) $value['ExhaustAM'] : null, 0);
|
||||
$exhaustPressure = module_numeric($ID['00244'] ?? null);
|
||||
if ($exhaustPressure === null) {
|
||||
$exhaustPill = module_status('No Signal', 'module-pill--alert');
|
||||
} elseif ($exhaustPressure < 10) {
|
||||
$exhaustPill = module_status('Low', 'module-pill--alert');
|
||||
} elseif ($exhaustPressure < 14) {
|
||||
$exhaustPill = module_status('Watch', 'module-pill--warn');
|
||||
} else {
|
||||
$exhaustPill = module_status('Optimal', 'module-pill--success');
|
||||
}
|
||||
|
||||
$vaporHeader = module_numeric($value['VAPOR HDR PRES']);
|
||||
|
||||
$boilers = [
|
||||
['label' => 'Boiler 1', 'value' => module_numeric($ID['00252'] ?? null)],
|
||||
['label' => 'Boiler 2', 'value' => module_numeric($ID['00256'] ?? null)],
|
||||
['label' => 'Boiler 3', 'value' => module_numeric($value['FT_301'] ?? null)],
|
||||
['label' => 'Boiler 4', 'value' => module_numeric($value['FT_401'] ?? null)],
|
||||
['label' => 'Boiler 5', 'value' => module_numeric($value['FT_501'] ?? null)],
|
||||
['label' => 'Boiler 6', 'value' => module_numeric($value['FT_601'] ?? null)],
|
||||
['label' => 'Boiler 7', 'value' => module_numeric($ID['00046'] ?? null)],
|
||||
['label' => 'Boiler 8', 'value' => module_numeric($ID['00074'] ?? null)],
|
||||
];
|
||||
?>
|
||||
|
||||
<!-- 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>
|
||||
<section class="module-card module-card--tight">
|
||||
<div class="module-heading">
|
||||
<h2 class="module-heading__title">Boilers</h2>
|
||||
<span class="module-heading__meta">Steam production overview</span>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
<div class="module-metric-grid">
|
||||
<div class="module-metric">
|
||||
<span class="module-metric__label">Total Steam Flow</span>
|
||||
<span class="module-metric__value"><?php echo module_number($steamFlowTotal); ?></span>
|
||||
<span class="module-metric__note">kpph</span>
|
||||
</div>
|
||||
<div class="module-metric">
|
||||
<span class="module-metric__label">Live Steam Pressure</span>
|
||||
<span class="module-metric__value"><?php echo module_number($liveSteam, 1); ?></span>
|
||||
<span class="module-metric__note">psi</span>
|
||||
<div><?php echo $liveSteamPill; ?></div>
|
||||
</div>
|
||||
<div class="module-metric">
|
||||
<span class="module-metric__label">Exhaust Pressure</span>
|
||||
<span class="module-metric__value"><?php echo module_number($exhaustPressure, 1); ?></span>
|
||||
<span class="module-metric__note">psi</span>
|
||||
<div><?php echo $exhaustPill; ?></div>
|
||||
</div>
|
||||
<div class="module-metric">
|
||||
<span class="module-metric__label">Vapor Header Pressure</span>
|
||||
<span class="module-metric__value"><?php echo module_number($vaporHeader, 1); ?></span>
|
||||
<span class="module-metric__note">psi</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<td colspan="2"><font color="#e0e0e0">Live Steam Pressure:</font></td>
|
||||
<?php
|
||||
$color = "#FFFFFF";
|
||||
<div class="module-row">
|
||||
<span class="module-row__label">Exhaust Control</span>
|
||||
<div class="module-row__value"><?php echo $exhaustMode; ?></div>
|
||||
</div>
|
||||
|
||||
if (($value['PT_001'] >= 0) && ($value['PT_001'] <= 155))
|
||||
$color = "#c46666ff";
|
||||
else if (($value['PT_001'] >= 156) && ($value['PT_001'] <= 165))
|
||||
$color = "#FFFF00";
|
||||
else if ($value['PT_001'] >= 165)
|
||||
$color = "#00FF00";
|
||||
<div class="module-divider"></div>
|
||||
|
||||
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['00302'] >= 6) && ($ID['00302'] <= 13))
|
||||
$color = "#FFFF00";
|
||||
else if ($ID['00302'] >= 14)
|
||||
$color = "#00FF00";
|
||||
|
||||
echo "<td bgcolor=\"#2E2E2E\" align=\"right\" width=\"75\"><font color=\"$color\"><b>". $ID['00302'] ."</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>
|
||||
</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['00310']),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['00314']),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>
|
||||
|
||||
|
||||
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF BOILERS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
|
||||
|
||||
<?php
|
||||
|
||||
?>
|
||||
<div class="module-metric-grid">
|
||||
<?php foreach ($boilers as $boiler) : ?>
|
||||
<div class="module-metric">
|
||||
<span class="module-metric__label"><?php echo module_html($boiler['label']); ?></span>
|
||||
<span class="module-metric__value"><?php echo module_number($boiler['value']); ?></span>
|
||||
<span class="module-metric__note">kpph</span>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user