Folder reorganize 1
This commit is contained in:
@@ -1,125 +1,155 @@
|
||||
<?php
|
||||
include("../includes/items.php");
|
||||
// phpcs:ignoreFile
|
||||
declare(strict_types=1);
|
||||
|
||||
include __DIR__ . '/../../items.php';
|
||||
require_once __DIR__ . '/module-helpers.php';
|
||||
|
||||
$caneToday = module_numeric(module_capture(__DIR__ . '/tonsin.php')) ?? 0.0;
|
||||
$recordDate = module_capture(__DIR__ . '/recorddate.php');
|
||||
$recordTonnage = module_numeric(module_capture(__DIR__ . '/record.php')) ?? 0.0;
|
||||
$runHours = module_numeric($value['RUNHRSTODAY']);
|
||||
|
||||
$groundToday = (module_numeric($value['CANETOT']) ?? 0.0) + (module_numeric($value['W TONS GROUND']) ?? 0.0);
|
||||
$groundYesterday = (module_numeric($value['PREVTONS']) ?? 0.0) + (module_numeric($value['WPREVGROUND']) ?? 0.0);
|
||||
$prevRunHours = module_numeric($value['PREVTIME']);
|
||||
|
||||
$eastAvg = module_numeric($value['AVG_TONS_PER_HOUR']);
|
||||
$westAvg = module_numeric($value['New Mill Avg1']);
|
||||
$totalTph = (module_numeric($value['TONS_PER_HOUR']) ?? 0.0) + (module_numeric($value['RATE']) ?? 0.0);
|
||||
$lossTime = module_numeric($value['LOSSTIME']);
|
||||
|
||||
$steamFlow = 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 = (int) ($value['ExhaustAM'] ?? 0);
|
||||
$exhaustModeLabel = $exhaustMode === 0 ? 'Auto' : 'Manual';
|
||||
$exhaustModeClass = $exhaustMode === 0 ? 'module-pill--success' : 'module-pill--warn';
|
||||
|
||||
$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']);
|
||||
?>
|
||||
<table class="tftable1">
|
||||
|
||||
<!-- ****************************************** ROW START ******************************************** -->
|
||||
<section class="module-card module-card--tight">
|
||||
<div class="module-heading">
|
||||
<h2 class="module-heading__title">General & Steam Data</h2>
|
||||
<span class="module-heading__meta">Throughput with live steam signals</span>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Cane In Today:</font></td>
|
||||
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php include("../includes/tonsin.php");?></b></font></td>
|
||||
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
|
||||
<div class="module-grid module-grid--two">
|
||||
<div class="module-stack">
|
||||
<div class="module-metric-grid">
|
||||
<div class="module-metric">
|
||||
<span class="module-metric__label">Cane In Today</span>
|
||||
<span class="module-metric__value"><?php echo module_number($caneToday); ?></span>
|
||||
<span class="module-metric__note">tons</span>
|
||||
</div>
|
||||
<div class="module-metric">
|
||||
<span class="module-metric__label">Daily Record</span>
|
||||
<span class="module-metric__value"><?php echo module_number($recordTonnage); ?></span>
|
||||
<span class="module-metric__note"><?php echo module_html($recordDate); ?></span>
|
||||
</div>
|
||||
<div class="module-metric">
|
||||
<span class="module-metric__label">Run Hours</span>
|
||||
<span class="module-metric__value"><?php echo module_number($runHours, 1); ?></span>
|
||||
<span class="module-metric__note">hours</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<td colspan=""><font color="#e0e0e0">Record On:<font size="" color="0eb31d"><b><?php include("../includes/recorddate.php");?></font></font></td>
|
||||
<td align="right"><font color="00FF00"><b><?php include("../includes/record.php");?></b></font></td>
|
||||
<td><font color="#e0e0e0">Tons</font></td>
|
||||
<div class="module-metric-grid">
|
||||
<div class="module-metric">
|
||||
<span class="module-metric__label">Ground Today</span>
|
||||
<span class="module-metric__value"><?php echo module_number($groundToday); ?></span>
|
||||
<span class="module-metric__note">tons</span>
|
||||
</div>
|
||||
<div class="module-metric">
|
||||
<span class="module-metric__label">Total Ground Yesterday</span>
|
||||
<span class="module-metric__value"><?php echo module_number($groundYesterday); ?></span>
|
||||
<span class="module-metric__note">tons</span>
|
||||
</div>
|
||||
<div class="module-metric">
|
||||
<span class="module-metric__label">Prev Run Hours</span>
|
||||
<span class="module-metric__value"><?php echo module_number($prevRunHours, 1); ?></span>
|
||||
<span class="module-metric__note">hours</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Run Hours:</font></td>
|
||||
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $value['RUNHRSTODAY']; ?></b></font></td>
|
||||
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Hours</font></td>
|
||||
</tr>
|
||||
<div class="module-divider"></div>
|
||||
|
||||
<!-- ****************************************** ROW END ******************************************** -->
|
||||
<div class="module-row">
|
||||
<span class="module-row__label">Total Tons per Hour</span>
|
||||
<span class="module-row__value"><?php echo module_number($totalTph, 1); ?></span>
|
||||
</div>
|
||||
|
||||
<!-- ****************************************** ROW START ******************************************** -->
|
||||
<div class="module-metric-grid">
|
||||
<div class="module-metric">
|
||||
<span class="module-metric__label">East 15 Min Avg</span>
|
||||
<span class="module-metric__value"><?php echo module_number($eastAvg, 1); ?></span>
|
||||
<span class="module-metric__note">tons/hr</span>
|
||||
</div>
|
||||
<div class="module-metric">
|
||||
<span class="module-metric__label">West 15 Min Avg</span>
|
||||
<span class="module-metric__value"><?php echo module_number($westAvg, 1); ?></span>
|
||||
<span class="module-metric__note">tons/hr</span>
|
||||
</div>
|
||||
<div class="module-metric">
|
||||
<span class="module-metric__label">Today's Loss Time</span>
|
||||
<span class="module-metric__value"><?php echo module_number($lossTime, 2); ?></span>
|
||||
<span class="module-metric__note">hours</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Ground Today:</font></td>
|
||||
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo ($value['CANETOT'] + $value['W TONS GROUND']); ?></b></font></td>
|
||||
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
|
||||
<div class="module-stack">
|
||||
<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($steamFlow); ?></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=""><font color="#e0e0e0">Total Ground Yesterday:</font></td>
|
||||
<td align="right"><font color="00FF00"><b><?php echo ($value['PREVTONS'] + $value['WPREVGROUND']); ?></b></font></td>
|
||||
<td><font color="#e0e0e0">Tons</font></td>
|
||||
|
||||
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Prev Run Hours:</font></td>
|
||||
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $value['PREVTIME']; ?></b></font></td>
|
||||
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Hours</font></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<!-- ****************************************** ROW END ******************************************** -->
|
||||
|
||||
<!-- ****************************************** ROW START ******************************************** -->
|
||||
|
||||
<tr>
|
||||
<td bgcolor="#2E2E2E"><font color="#e0e0e0">E 15 Min Avg:</font></td>
|
||||
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $value['AVG_TONS_PER_HOUR']; ?></b></font></td>
|
||||
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
|
||||
|
||||
<td rowspan="2" colspan="" align="center" id="generalTPH"><font color="#e0e0e0">Total Tons/Hr:</font></td>
|
||||
<td rowspan="2" colspan="2" align="center" id="generalTPH"><font color="00FFFF"><b><?php echo ($ID['00560'] + $value['RATE']); ?></b></font></td>
|
||||
|
||||
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Today's Loss Time:</font></td>
|
||||
<td bgcolor="#2E2E2E" align="right" id="lsp"><font color="00FF00"><b><?php echo $value['LOSSTIME']; ?></b></font></td>
|
||||
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Hours</font></td>
|
||||
</tr>
|
||||
|
||||
<!-- ****************************************** ROW END ******************************************** -->
|
||||
|
||||
<!-- ****************************************** ROW START ******************************************** -->
|
||||
|
||||
<tr>
|
||||
<td bgcolor="#2E2E2E"><font color="#e0e0e0">W 15 Min Avg:</font></td>
|
||||
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $value['New Mill Avg1']; ?></b></font></td>
|
||||
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
|
||||
|
||||
|
||||
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0"></font></td>
|
||||
<td bgcolor="#2E2E2E" colspan="2" align="right" id="lsp"><font color="00FF00"><b></b></font></td>
|
||||
</tr>
|
||||
|
||||
<!-- ****************************************** ROW END ******************************************** -->
|
||||
|
||||
</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['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>
|
||||
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF PAGE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
|
||||
<div class="module-row">
|
||||
<span class="module-row__label">Exhaust Control</span>
|
||||
<div class="module-row__value"><?php echo module_status($exhaustModeLabel, $exhaustModeClass); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user