add all files

This commit is contained in:
Rucus
2026-02-17 09:29:34 -06:00
parent b8c8d67c67
commit 782d203799
21925 changed files with 2433086 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<?php include("../data/4kheader.php");?>
<?php include("../data/maintenence.php");?>
<?php /*include("../data/4knewmills.php");?>
<?php include("../data/4ktanklevelsbar.php");?>
<?php include("../data/4kboilersfull.php");?>
<?php include("../data/4kboiler7and8.php");*/?>

View File

@@ -0,0 +1,6 @@
<?php include("../data/header.php");?>
<?php include("../data/generalboilers.php");?>
<?php include("../data/tanklevelsbar.php");?>
<?php include("../data/boilersfull.php");?>

View File

@@ -0,0 +1,32 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
<link href="../style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>LASUCA Controls </title>
<script type="text/javascript" src="../script.js"></script>
<script src="../js/prototype.js" type="text/javascript"></script>
<script src="../js/scriptaculous.js" type="text/javascript"></script>
<script type="text/javascript">
function showHint()
{
var sid = Math.random();
new Ajax.Updater('overview_values', 'boiler7and8.php?sid=' + sid, {asynchronous:true});
}
function startShowing()
{
new PeriodicalExecuter(showHint, 1);
new PeriodicalExecuter(function(pe) {}, 5);
}
startShowing();
</script>
</head>
<body bgcolor="#000000">
<div id='overview_values' name='overview_values'></div>
</body>
</html>

View File

@@ -0,0 +1,2 @@
<?php include("../data/4kboiler7and8.php");?>

View File

@@ -0,0 +1,6 @@
<?php include("../data/header.php");?>
<?php include("../data/generalboilers.php");?>
<?php include("../data/tanklevelsbar.php");?>
<?php include("../data/boilersfull.php");?>

View File

@@ -0,0 +1,32 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
<link href="../style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>LASUCA Controls </title>
<script type="text/javascript" src="../script.js"></script>
<script src="../js/prototype.js" type="text/javascript"></script>
<script src="../js/scriptaculous.js" type="text/javascript"></script>
<script type="text/javascript">
function showHint()
{
var sid = Math.random();
new Ajax.Updater('overview_values', 'boiler7and8.php?sid=' + sid, {asynchronous:true});
}
function startShowing()
{
new PeriodicalExecuter(showHint, 1);
new PeriodicalExecuter(function(pe) {}, 5);
}
startShowing();
</script>
</head>
<body bgcolor="#000000">
<div id='overview_values' name='overview_values'></div>
</body>
</html>

View File

@@ -0,0 +1,2 @@
<?php include("../data/general.php");?>

View File

@@ -0,0 +1,41 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>LASUCA Controls </title>
<script type="text/javascript" src="script.js"></script>
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js" type="text/javascript"></script>
<script type="text/javascript">
function showHint()
{
var sid = Math.random();
new Ajax.Updater('overview_values', 'generalmain.php?sid=' + sid, {asynchronous:true});
}
function startShowing()
{
new PeriodicalExecuter(showHint, 1);
new PeriodicalExecuter(function(pe) {}, 5);
}
startShowing();
</script>
</head>
<body bgcolor="#000000">
<div id='overview_values' name='overview_values'></div>
<?php
if ($f4 <= 500)
$txt = "This is a test email from the controls network";
$txt = wordwrap($txt,70);
mail("3373800339@txt.att.net","Controls",$txt);
?>
</body>
</html>

View File

@@ -0,0 +1,2 @@
<?php include("../data/boiler7and8small.php");?>

View File

@@ -0,0 +1,6 @@
<?php include("../data/header.php");?>
<?php include("../data/generalboilers.php");?>
<?php include("../data/tanklevelsbar.php");?>
<?php include("../data/boilersfull.php");?>

View File

@@ -0,0 +1,32 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
<link href="../style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>LASUCA Controls </title>
<script type="text/javascript" src="../script.js"></script>
<script src="../js/prototype.js" type="text/javascript"></script>
<script src="../js/scriptaculous.js" type="text/javascript"></script>
<script type="text/javascript">
function showHint()
{
var sid = Math.random();
new Ajax.Updater('overview_values', 'boiler7and8.php?sid=' + sid, {asynchronous:true});
}
function startShowing()
{
new PeriodicalExecuter(showHint, 1);
new PeriodicalExecuter(function(pe) {}, 5);
}
startShowing();
</script>
</head>
<body bgcolor="#000000">
<div id='overview_values' name='overview_values'></div>
</body>
</html>

View File

@@ -0,0 +1,32 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
<link href="../style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>LASUCA Controls </title>
<script type="text/javascript" src="../script.js"></script>
<script src="../js/prototype.js" type="text/javascript"></script>
<script src="../js/scriptaculous.js" type="text/javascript"></script>
<script type="text/javascript">
function showHint()
{
var sid = Math.random();
new Ajax.Updater('overview_values', 'test.php?sid=' + sid, {asynchronous:true});
}
function startShowing()
{
new PeriodicalExecuter(showHint, 3);
new PeriodicalExecuter(function(pe) {}, 5);
}
startShowing();
</script>
</head>
<body bgcolor="#000000">
<div id='overview_values' name='overview_values'></div>
</body>
</html>

View File

@@ -0,0 +1,4 @@
<?php include("../data/header.php");?>
<?php include("../data/newgeneral.php");?>
<?php include("../data/newmills.php");?>
<?php include("../data/boilers.php");?>

View File

@@ -0,0 +1,4 @@
<?php include("../data/header.php");?>
<?php include("../data/boilers.php");?>
<?php include("../data/general.php");?>

View File

@@ -0,0 +1,6 @@
<?php include("../data/header.php");?>
<?php include("../data/newgeneral.php");?>
<?php include("../data/boilersfull.php");?>
<?php include("../data/tanklvlsvert.php");?>

View File

@@ -0,0 +1,32 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
<link href="../style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>LASUCA Controls </title>
<script type="text/javascript" src="../script.js"></script>
<script src="../js/prototype.js" type="text/javascript"></script>
<script src="../js/scriptaculous.js" type="text/javascript"></script>
<script type="text/javascript">
function showHint()
{
var sid = Math.random();
new Ajax.Updater('overview_values', 'boilermainfull.php?sid=' + sid, {asynchronous:true});
}
function startShowing()
{
new PeriodicalExecuter(showHint, 1);
new PeriodicalExecuter(function(pe) {}, 5);
}
startShowing();
</script>
</head>
<body bgcolor="#000000">
<div id='overview_values' name='overview_values'></div>
</body>
</html>

View File

@@ -0,0 +1,5 @@
<?php include("../data/header.php");?>
<?php include("../data/newgeneral.php");?>
<br>
<?php include("../data/tanklevelswrap.php");?>

View File

@@ -0,0 +1,32 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
<link href="../style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>LASUCA Controls </title>
<script type="text/javascript" src="../script.js"></script>
<script src="../js/prototype.js" type="text/javascript"></script>
<script src="../js/scriptaculous.js" type="text/javascript"></script>
<script type="text/javascript">
function showHint()
{
var sid = Math.random();
new Ajax.Updater('overview_values', 'cvpmain.php?sid=' + sid, {asynchronous:true});
}
function startShowing()
{
new PeriodicalExecuter(showHint, 1);
new PeriodicalExecuter(function(pe) {}, 5);
}
startShowing();
</script>
</head>
<body bgcolor="#000000">
<div id='overview_values' name='overview_values'></div>
</body>
</html>

View File

@@ -0,0 +1,511 @@
:root {
--board-bg: #05070d;
--board-panel: #101321;
--board-panel-alt: #161a2c;
--board-border: rgba(255, 255, 255, 0.08);
--board-accent: #2dd4bf;
--board-accent-soft: rgba(45, 212, 191, 0.12);
--board-text: #e5e7eb;
--board-text-muted: #94a3b8;
--board-text-faint: #64748b;
--panel-radius: 16px;
--panel-shadow: 0 12px 36px rgba(2, 6, 23, 0.38);
--transition-base: 200ms ease;
font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
html,
body {
height: 100%;
}
body {
margin: 0;
background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.15), transparent 55%),
radial-gradient(circle at 80% 0%, rgba(45, 212, 191, 0.12), transparent 50%),
var(--board-bg);
color: var(--board-text);
-webkit-font-smoothing: antialiased;
font-size: 18px;
line-height: 1.35;
}
.board-shell {
min-height: 100vh;
padding: 1.75rem clamp(1rem, 5vw, 2.75rem) 2.25rem;
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.board-header {
display: flex;
justify-content: space-between;
align-items: flex-end;
gap: 1rem;
flex-wrap: wrap;
}
.board-header__title {
font-size: clamp(2.25rem, 3vw, 3.1rem);
font-weight: 600;
letter-spacing: 0.035em;
}
.board-header__meta {
display: flex;
flex-wrap: wrap;
gap: 0.65rem 1.5rem;
font-size: 1rem;
color: var(--board-text-muted);
align-items: center;
}
.board-header__meta span {
display: inline-flex;
align-items: center;
gap: 0.4rem;
}
.board-header__status {
gap: 1.25rem;
font-size: 1.05rem;
}
.board-header__status time {
font-variant-numeric: tabular-nums;
font-weight: 600;
color: var(--board-text);
}
.board-header__error {
color: var(--board-warn);
font-weight: 600;
display: none;
}
.board-header__error[aria-hidden="false"] {
display: inline-flex;
align-items: center;
gap: 0.45rem;
}
.board-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(540px, 1fr));
gap: 1.75rem;
align-content: start;
}
.board-loader {
min-height: 40vh;
display: grid;
place-items: center;
color: var(--board-text-muted);
letter-spacing: 0.12em;
text-transform: uppercase;
font-size: 0.95rem;
}
.board-stack {
display: grid;
gap: 1.75rem;
}
.section {
display: grid;
gap: 1.1rem;
}
.section__header {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 0.75rem;
flex-wrap: wrap;
}
.section__title {
font-size: clamp(1.5rem, 2.4vw, 1.9rem);
font-weight: 600;
letter-spacing: 0.04em;
}
.section__meta {
color: var(--board-text-muted);
font-size: 1rem;
}
.meta-banner {
display: flex;
flex-wrap: wrap;
gap: 0.75rem 1.5rem;
background: rgba(45, 212, 191, 0.1);
border: 1px solid rgba(45, 212, 191, 0.25);
border-radius: var(--panel-radius);
padding: 0.85rem 1.15rem;
font-size: 1rem;
color: var(--board-text-muted);
}
.meta-banner strong {
color: var(--board-text);
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.stat-grid {
display: grid;
gap: 0.9rem;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat-card {
background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.7));
border: 1px solid var(--board-border);
border-radius: var(--panel-radius);
padding: 1.05rem 1.2rem;
display: grid;
gap: 0.35rem;
min-height: 140px;
}
.stat-card__label {
font-size: 0.95rem;
text-transform: uppercase;
color: var(--board-text-muted);
letter-spacing: 0.12em;
}
.stat-card__value {
font-size: clamp(2.2rem, 3.5vw, 2.7rem);
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.stat-card__unit {
color: var(--board-text-faint);
font-size: 1rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.stat-card__note {
color: var(--board-text-muted);
font-size: 0.95rem;
font-style: italic;
}
.tandem-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1rem;
}
.stage-card {
background: var(--board-panel);
border: 1px solid var(--board-border);
border-radius: var(--panel-radius);
padding: 1rem 1.05rem 1.1rem;
display: grid;
gap: 0.75rem;
}
.stage-card__header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.6rem;
}
.stage-card__title {
display: flex;
align-items: center;
gap: 0.6rem;
font-weight: 600;
letter-spacing: 0.05em;
}
.stage-card__badge {
display: inline-flex;
width: 1.85rem;
height: 1.85rem;
border-radius: 50%;
align-items: center;
justify-content: center;
background: rgba(96, 165, 250, 0.2);
border: 1px solid rgba(96, 165, 250, 0.45);
font-size: 1rem;
}
.status-pill {
border-radius: 999px;
padding: 0.35rem 0.85rem;
font-size: 0.95rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
background: rgba(148, 163, 184, 0.18);
border: 1px solid rgba(148, 163, 184, 0.35);
color: var(--board-text);
}
.status-pill--ok {
background: rgba(52, 211, 153, 0.18);
border-color: rgba(52, 211, 153, 0.42);
color: #bbf7d0;
}
.status-pill--warn {
background: rgba(251, 191, 36, 0.18);
border-color: rgba(251, 191, 36, 0.42);
color: #fef3c7;
}
.status-pill--alert {
background: rgba(248, 113, 113, 0.2);
border-color: rgba(248, 113, 113, 0.42);
color: #fecaca;
}
.status-pill--info {
background: rgba(96, 165, 250, 0.2);
border-color: rgba(96, 165, 250, 0.45);
color: #bfdbfe;
}
.progress {
display: grid;
gap: 0.35rem;
}
.progress__track {
position: relative;
height: 0.8rem;
border-radius: 999px;
background: rgba(148, 163, 184, 0.2);
overflow: hidden;
}
.progress__bar {
position: absolute;
inset: 0;
width: 0;
background: linear-gradient(90deg, rgba(45, 212, 191, 0.85), rgba(45, 212, 191, 0.45));
transition: width 900ms cubic-bezier(0.4, 0, 0.2, 1);
}
.progress__label {
font-size: 0.95rem;
color: var(--board-text-muted);
display: flex;
justify-content: space-between;
font-variant-numeric: tabular-nums;
}
.metric-list {
display: grid;
gap: 0.65rem;
}
.metric {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 0.65rem;
}
.metric__label {
font-size: 1rem;
color: var(--board-text-muted);
letter-spacing: 0.05em;
}
.metric__value {
font-size: 1.2rem;
font-variant-numeric: tabular-nums;
font-weight: 500;
}
.metric__value em {
font-size: 0.95rem;
color: var(--board-text-faint);
font-style: normal;
margin-left: 0.35rem;
}
.mini-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 0.7rem;
}
.mini-card {
background: var(--board-panel-alt);
border: 1px solid var(--board-border);
border-radius: 14px;
padding: 0.75rem 0.9rem;
display: grid;
gap: 0.35rem;
}
.mini-card__label {
color: var(--board-text-muted);
font-size: 0.95rem;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.mini-card__value {
font-size: 1.55rem;
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.tank-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 0.9rem;
}
.tank-card {
background: var(--board-panel);
border: 1px solid var(--board-border);
border-radius: var(--panel-radius);
padding: 0.85rem 1rem;
display: grid;
gap: 0.6rem;
}
.tank-card__title {
display: flex;
justify-content: space-between;
align-items: baseline;
font-weight: 600;
letter-spacing: 0.05em;
}
.tank-card__meta {
font-size: 0.95rem;
color: var(--board-text-faint);
letter-spacing: 0.08em;
text-transform: uppercase;
}
.tank-card[data-level="low"] .progress__bar {
background: linear-gradient(90deg, rgba(248, 113, 113, 0.9), rgba(248, 113, 113, 0.55));
}
.tank-card[data-level="caution"] .progress__bar {
background: linear-gradient(90deg, rgba(251, 191, 36, 0.85), rgba(251, 191, 36, 0.5));
}
.equipment-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1rem;
}
.equipment-card {
background: var(--board-panel);
border: 1px solid var(--board-border);
border-radius: var(--panel-radius);
padding: 1rem 1.1rem;
display: grid;
gap: 0.8rem;
}
.equipment-card__title {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.6rem;
font-weight: 600;
letter-spacing: 0.05em;
}
.equipment-card__rows {
display: grid;
gap: 0.7rem;
}
.equipment-row {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 0.6rem;
}
.equipment-row__label {
color: var(--board-text-muted);
font-size: 1rem;
letter-spacing: 0.05em;
}
.equipment-row__value {
font-size: 1.2rem;
font-variant-numeric: tabular-nums;
font-weight: 500;
}
.equipment-row__value small {
font-size: 0.85rem;
color: var(--board-text-faint);
letter-spacing: 0.08em;
margin-left: 0.35rem;
}
.equipment-subgrid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 0.75rem;
}
.equipment-mini {
background: var(--board-panel-alt);
border: 1px solid var(--board-border);
border-radius: 14px;
padding: 0.8rem 0.95rem;
display: grid;
gap: 0.45rem;
}
.equipment-mini__title {
display: flex;
justify-content: space-between;
align-items: baseline;
font-size: 1rem;
font-weight: 600;
}
[data-refresh-error="true"] {
filter: saturate(0.5);
}
@media (max-width: 1180px) {
.board-content {
grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}
}
@media (max-width: 900px) {
.board-shell {
padding-inline: clamp(1rem, 3vw, 1.5rem);
}
.board-content {
grid-template-columns: 1fr;
}
}
@media (max-width: 640px) {
body {
font-size: 16px;
}
.board-header {
align-items: flex-start;
}
.board-header__meta {
flex-direction: column;
align-items: flex-start;
}
}

View File

@@ -0,0 +1,95 @@
(() => {
const REFRESH_INTERVAL = 5000;
const root = document.querySelector('[data-board-root]');
const statusEl = document.querySelector('[data-refresh-status]');
const errorEl = document.querySelector('[data-refresh-error]');
const clockEl = document.querySelector('[data-board-clock]');
if (!root) {
return;
}
const formatTime = (date) =>
date.toLocaleTimeString([], {
hour: 'numeric',
minute: '2-digit',
second: '2-digit',
});
const setError = (message) => {
if (!errorEl) return;
if (message) {
errorEl.textContent = message;
errorEl.setAttribute('aria-hidden', 'false');
} else {
errorEl.textContent = '';
errorEl.setAttribute('aria-hidden', 'true');
}
};
const updateStatus = (timestamp) => {
if (!statusEl) return;
if (timestamp) {
const parsed = new Date(timestamp);
if (!Number.isNaN(parsed.getTime())) {
statusEl.textContent = formatTime(parsed);
return;
}
}
statusEl.textContent = formatTime(new Date());
};
const updateClock = () => {
if (!clockEl) return;
clockEl.textContent = new Date().toLocaleString([], {
month: 'short',
day: 'numeric',
year: 'numeric',
hour: 'numeric',
minute: '2-digit',
second: '2-digit',
});
};
const refresh = async () => {
try {
const response = await fetch('data/main.php', {
cache: 'no-store',
headers: { 'X-Requested-With': 'XMLHttpRequest' },
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
const html = await response.text();
root.innerHTML = html;
const generatedAt = root.querySelector('[data-generated-at]');
if (generatedAt) {
updateStatus(generatedAt.getAttribute('data-generated-at'));
} else {
updateStatus();
}
setError('');
root.removeAttribute('data-refresh-error');
} catch (error) {
console.error('Failed to refresh overview data', error);
setError('Connection lost — retrying');
root.setAttribute('data-refresh-error', 'true');
}
};
refresh();
updateClock();
setInterval(refresh, REFRESH_INTERVAL);
setInterval(updateClock, 1000);
document.addEventListener('visibilitychange', () => {
if (!document.hidden) {
refresh();
}
});
})();

View File

@@ -0,0 +1,158 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "(SELECT * FROM boilers ORDER BY id DESC LIMIT 1)";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f103=mysql_result($result,$i,"boiler7drumlvla");
$f104=mysql_result($result,$i,"boiler7drumlvlb");
$f105=mysql_result($result,$i,"boiler7drumlvlc");
$f106=mysql_result($result,$i,"boiler7lvl");
$f107=mysql_result($result,$i,"boiler7drumpress");
$f108=mysql_result($result,$i,"boiler7feedwater");
$f111=mysql_result($result,$i,"boiler7feedwaterpres");
$f109=mysql_result($result,$i,"boiler7steamflow");
$f110=mysql_result($result,$i,"boiler7livesteam");
$f112=mysql_result($result,$i,"boiler7idfanspd");
$f120=mysql_result($result,$i,"boiler8drumlvla");
$f121=mysql_result($result,$i,"boiler8drumlvlb");
$f122=mysql_result($result,$i,"boiler8drumlvlc");
$f123=mysql_result($result,$i,"boiler8lvl");
$f124=mysql_result($result,$i,"boiler8drumpress");
$f125=mysql_result($result,$i,"boiler8feedwater");
$f126=mysql_result($result,$i,"boiler8feedwaterpres");
$f127=mysql_result($result,$i,"boiler8steamflow");
$f128=mysql_result($result,$i,"boiler8livesteam");
$f129=mysql_result($result,$i,"boiler8idfanspd");
?>
<!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv BOILERS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
<table class="tftable6" border="1">
<tr>
<td colspan="3" bgcolor="#121211" align="center" width="50%" style="color:#00BFFF; font-size: 60px;"><b><i>BOILER 7</i></b></td>
<td colspan="3" bgcolor="#121211" align="center" width="50%" style="color:#00BFFF; font-size: 60px;"><b><i>BOILER 8</i></b></td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Drum LVL A</td>
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 60px;"><?php echo $f103; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">%</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Drum LVL A</td>
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 60px;"><?php echo $f120; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">%</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Drum LVL B</td>
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 60px;"><?php echo $f104; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">%</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Drum LVL B</td>
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 60px;"><?php echo $f121; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">%</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Drum LVL C</td>
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 60px;"><?php echo $f105; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">%</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Drum LVL C</td>
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 60px;"><?php echo $f122; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">%</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Drum LVL Avg</td>
<td width="350" bgcolor="#242424" align="center" style="color:#00d145; font-size: 60px;"><?php echo $f106; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">%</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Drum LVL Avg</td>
<td width="350" bgcolor="#242424" align="center" style="color:#00d145; font-size: 60px;"><?php echo $f123; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">%</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Drum Pressure</td>
<td width="350" bgcolor="#242424" align="center" style="color:yellow; font-size: 60px;"><?php echo $f107; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Psig</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Drum Pressure</td>
<td width="350" bgcolor="#242424" align="center" style="color:yellow; font-size: 60px;"><?php echo $f124; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Psig</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Live Steam Pressure</td>
<td width="350" bgcolor="#242424" align="center" style="color:orange; font-size: 60px;"><?php echo $f110; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">psi</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Live Steam Pressure</td>
<td width="350" bgcolor="#242424" align="center" style="color:orange; font-size: 60px;"><?php echo $f128; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">psi</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Feed Water Pressure</td>
<?php
$color = "#FFFFFF";
if (($f111 >= 0) && ($f111 <= 290))
$color = "#FF0000";
else if (($f111 >= 290) && ($f111 <= 300))
$color = "#FFFF00";
else if ($f111 >= 300)
$color = "#00d145";
echo "<td bgcolor=\"#242424\" align=\"center\" width=\"75\" style=\"color:$color; font-size: 60px;\"><b> $f111 </b></font></td>";
?>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Psig</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Feed Water Pressure</td>
<?php
$color = "#FFFFFF";
if (($f126 >= 0) && ($f126 <= 290))
$color = "#FF0000";
else if (($f126 >= 290) && ($f126 <= 300))
$color = "#FFFF00";
else if ($f126 >= 300)
$color = "#00d145";
echo "<td bgcolor=\"#242424\" align=\"center\" width=\"75\" style=\"color:$color; font-size: 60px;\"><b> $f126 </b></font></td>";
?>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Psig</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Feed Water Flow</td>
<td width="350" bgcolor="#242424" align="center" style="color:#19afff; font-size: 60px;"><?php echo $f108; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">kpph</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Feed Water Flow</td>
<td width="350" bgcolor="#242424" align="center" style="color:#19afff; font-size: 60px;"><?php echo $f125; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">kpph</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Steam Flow</td>
<td width="350" bgcolor="#242424" align="center" style="color:white; font-size: 60px;"><?php echo $f109; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">kpph</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">Steam Flow</td>
<td width="350" bgcolor="#242424" align="center" style="color:white; font-size: 60px;"><?php echo $f127; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">kpph</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">ID Fan Speed</td>
<td width="350" bgcolor="#242424" align="center" style="color:white; font-size: 60px;"><?php echo $f112; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">RPM</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">ID Fan Speed</td>
<td width="350" bgcolor="#242424" align="center" style="color:white; font-size: 60px;"><?php echo $f129; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 60px;">RPM</td>
</tr>
</table>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF BOILERS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<?php
$i++;
}
?>

View File

@@ -0,0 +1,284 @@
<?php
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "SELECT * FROM boilers ORDER BY id DESC LIMIT 1";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f1=mysql_result($result,$i,"boiler1stmflo");
$f2=mysql_result($result,$i,"blr1fdtemp");
$f3=mysql_result($result,$i,"blr1flugas");
$f4=mysql_result($result,$i,"blr1idtemp");
$f5=mysql_result($result,$i,"boiler1drmlvl");
$f6=mysql_result($result,$i,"boiler1idfnspd");
$f7=mysql_result($result,$i,"boiler1drmpres");
$f8=mysql_result($result,$i,"boiler1fdwtrflo");
$f9=mysql_result($result,$i,"boiler2stmflo");
$f10=mysql_result($result,$i,"blr2fdtemp");
$f11=mysql_result($result,$i,"blr2fluemp");
$f12=mysql_result($result,$i,"blr2idtemp");
$f13=mysql_result($result,$i,"boiler2drmlvl");
$f14=mysql_result($result,$i,"boiler2idfnspd");
$f15=mysql_result($result,$i,"boiler2drmpres");
$f16=mysql_result($result,$i,"boiler2fdwtrflo");
$f17=mysql_result($result,$i,"boiler3stmflo");
$f18=mysql_result($result,$i,"blr3fdtemp");
$f19=mysql_result($result,$i,"blr3fluetemp");
$f20=mysql_result($result,$i,"blr3idtemp");
$f21=mysql_result($result,$i,"boiler3drmlvl");
$f22=mysql_result($result,$i,"boiler3idfnspd");
$f23=mysql_result($result,$i,"boiler3drmpres");
$f24=mysql_result($result,$i,"boiler3fdwtrflo");
$f25=mysql_result($result,$i,"boilr3draft");
$f26=mysql_result($result,$i,"boiler4stmflo");
$f27=mysql_result($result,$i,"blr4fdtemp");
$f28=mysql_result($result,$i,"blr4flugas");
$f29=mysql_result($result,$i,"blr4idtemp");
$f30=mysql_result($result,$i,"boiler4drmlvl");
$f31=mysql_result($result,$i,"boiler4idfnspd");
$f32=mysql_result($result,$i,"boiler4drmpres");
$f33=mysql_result($result,$i,"boilr4draft");
$f34=mysql_result($result,$i,"boiler5stmflo");
$f35=mysql_result($result,$i,"blr5fdtemp");
$f36=mysql_result($result,$i,"blr5flugas");
$f37=mysql_result($result,$i,"blr5idtemp");
$f38=mysql_result($result,$i,"boiler5drmlvl");
$f39=mysql_result($result,$i,"boiler5idfnspd");
$f40=mysql_result($result,$i,"boiler5drmpres");
$f41=mysql_result($result,$i,"boiler5fdwtrflo");
$f42=mysql_result($result,$i,"boilr5draft");
$f43=mysql_result($result,$i,"boiler6stmflo");
$f44=mysql_result($result,$i,"blr6fdtemp");
$f45=mysql_result($result,$i,"blr6flugas");
$f46=mysql_result($result,$i,"blr6idtemp");
$f47=mysql_result($result,$i,"boiler6drmlvl");
$f48=mysql_result($result,$i,"boiler6idfnspd");
$f49=mysql_result($result,$i,"boiler6drmpres");
$f50=mysql_result($result,$i,"boiler6fdwtrflo");
$f51=mysql_result($result,$i,"ttlstmflo");
$f52=mysql_result($result,$i,"livestmpres");
$f53=mysql_result($result,$i,"exstflow1");
$f54=mysql_result($result,$i,"exstflow2");
$f55=mysql_result($result,$i,"gate1");
$f56=mysql_result($result,$i,"gate2");
$f57=mysql_result($result,$i,"gate3");
$f58=mysql_result($result,$i,"exhaustpr");
$f59=mysql_result($result,$i,"boiler4fdwtrflo");
$f60=mysql_result($result,$i,"blr2superheat");
$f61=mysql_result($result,$i,"blr6superheat");
$f62=mysql_result($result,$i,"blr6superheat");
$f63=mysql_result($result,$i,"exstflow3");
$f64=mysql_result($result,$i,"ttlstmflo2");
$f77=mysql_result($result,$i,"pan8hdrpress");
$f105=mysql_result($result,$i,"ttlstmflo");
$f106=mysql_result($result,$i,"boiler7lvl");
$f107=mysql_result($result,$i,"boiler7drumpress");
$f108=mysql_result($result,$i,"boiler7feedwater");
$f109=mysql_result($result,$i,"boiler7steamflow");
$f120=mysql_result($result,$i,"boiler8drumlvla");
$f121=mysql_result($result,$i,"boiler8drumlvlb");
$f122=mysql_result($result,$i,"boiler8drumlvlc");
$f123=mysql_result($result,$i,"boiler8lvl");
$f124=mysql_result($result,$i,"boiler8drumpress");
$f125=mysql_result($result,$i,"boiler8feedwater");
$f126=mysql_result($result,$i,"boiler8feedwaterpres");
$f127=mysql_result($result,$i,"boiler8steamflow");
$f128=mysql_result($result,$i,"boiler8livesteam");
$f129=mysql_result($result,$i,"boiler8idfanspd");
?>
<!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv BOILERS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
<table class="tftable24k">
<tr>
<td width="1000%" align="center" colspan="6" border="0"><font color="#00BFFF"><i>BOILERS 1-6</i></font></td>
</tr>
</table>
<!-- ****************************************** ROW START ******************************************** -->
<table class="tftable14k">
<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(($f105+$f109+$f127),0); ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Kpph</font></td>
<td colspan="2"><font color="#e0e0e0">Vapor Pressure:</font></td>
<td align="right" width="75" id="lsp"><font color="00FF00"><b><?php echo $f77; ?></b></font></td>
<td><font color="#e0e0e0">PSI</font></td>
<td bgcolor="#2E2E2E" ><font color="#e0e0e0">Exhaust Pressure:</font></td>
<?php
if ($f97 == 0)
echo "<td align=\"center\" bgcolor=\"#0B3B17\"><font color=\"#e0e0e0\">A</font></td>";
if ($f97 == 1)
echo "<td align=\"center\" bgcolor=\"#8A0808\"><font color=\"#e0e0e0\">M</font></td>";
?>
<?php
$color = "#e0e0e0";
if (($f58 >= 0) && ($f58 <= 5))
$color = "#FF0000";
else if (($f58 >= 6) && ($f58 <= 13))
$color = "#FFFF00";
else if ($f58 >= 14)
$color = "#00FF00";
echo "<td align=\"right\" bgcolor=\"#2E2E2E\"><font color=\"$color\"><b> $f58 </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 (($f52 >= 0) && ($f52 <= 155))
$color = "#FF0000";
else if (($f52 >= 156) && ($f52 <= 165))
$color = "#FFFF00";
else if ($f52 >= 165)
$color = "#00FF00";
echo "<td align=\"right\" width=\"75\"><font color=\"$color\"><b> $f52 </b></font></td>";
?>
<td><font color="#e0e0e0">PSI</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
</table>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ START OF BOILERS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<table class="tftable54k" border="1">
<tr>
<td colspan="4" bgcolor="#e06b04" align="center" width="16.6%"><font color="#000000">Boiler 1</font></td>
<td colspan="4" bgcolor="#b36537" align="center" width="16.6%"><font color="#000000">Boiler 2</font></td>
<td colspan="4" bgcolor="#e06b04" align="center" width="16.6%"><font color="#000000">Boiler 3</font></td>
<td colspan="4" bgcolor="#b36537" align="center" width="16.6%"><font color="#000000">Boiler 4</font></td>
<td colspan="4" bgcolor="#e06b04" align="center" width="16.6%"><font color="#000000">Boiler 5</font></td>
<td colspan="4" bgcolor="#b36537" align="center" width="16.6%"><font color="#000000">Boiler 6</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 $f1; ?>"></progress></td>
<td align="right" width="80"><font color="#e60000"><?php echo $f1; ?></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 $f9; ?>"></progress></td>
<td align="right" width="80"><font color="#e60000"><?php echo $f9; ?></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 $f17; ?>"></progress></td>
<td align="right" width="80"><font color="#e60000"><?php echo $f17; ?></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 $f26; ?>"></progress></td>
<td align="right" width="80"><font color="#e60000"><?php echo $f26; ?></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="55" value="<?php echo $f34; ?>"></progress></td>
<td align="right" width="80"><font color="#e60000"><?php echo $f34; ?></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 $f43; ?>"></progress></td>
<td align="right" width="80"><font color="#e60000"><?php echo $f43; ?></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 $f5; ?></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 $f13; ?></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 $f21; ?></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 $f30; ?></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 $f38; ?><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 $f47; ?><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 $f8; ?></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 $f16; ?></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 $f24; ?></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 $f59; ?></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 $f41; ?></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 $f50; ?></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 $f7; ?></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 $f15; ?></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 $f23; ?></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 $f32; ?></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 $f40; ?></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 $f49; ?></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 $f6; ?></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 $f14; ?></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 $f22; ?></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 $f31; ?></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 $f39; ?></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 $f48; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
</tr>
</table>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF BOILERS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF PAGE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<?php
$i++;
}
?>

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,7 @@
<table class="header14k">
<tr>
<td width="50%" align="left" border="0"><font color="#00BFFF">LASUCA CONTROLS &nbsp<?php date_default_timezone_set('America/Chicago'); $date = date('M j, Y g:i:s A'); echo "$date";?> &nbsp Crop Day <?php include("cropday.php");?></font></td>
<td width="50%" align="right" border="0"><font color="#00BFFF">CONTROLS OVERVIEW</font></td>
</tr>
</table>

View File

@@ -0,0 +1,248 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f1=mysql_result($result,$i,"livstmpr");
$f2=mysql_result($result,$i,"mainspd");
$f3=mysql_result($result,$i,"mill1spd");
$f4=mysql_result($result,$i,"tonshr");
$f5=mysql_result($result,$i,"mccoutput");
$f6=mysql_result($result,$i,"exhaustpr");
$f7=mysql_result($result,$i,"mill1wsp");
$f8=mysql_result($result,$i,"canetot");
$f9=mysql_result($result,$i,"15minavg");
$f10=mysql_result($result,$i,"weightwsp");
$f11=mysql_result($result,$i,"Levelswitch");
$f12=mysql_result($result,$i,"cercoutput");
$f13=mysql_result($result,$i,"crecpv");
$f14=mysql_result($result,$i,"crecsp");
$f15=mysql_result($result,$i,"netablwt");
$f16=mysql_result($result,$i,"vaporpres");
$f17=mysql_result($result,$i,"pan8lvl");
$f18=mysql_result($result,$i,"pan8evapvapor");
$f19=mysql_result($result,$i,"pan7hdrpres");
$f20=mysql_result($result,$i,"pan9exhaust");
$f21=mysql_result($result,$i,"mill1lvl");
$f22=mysql_result($result,$i,"mill2lvl");
$f23=mysql_result($result,$i,"mill3lvl");
$f24=mysql_result($result,$i,"mill4lvl");
$f25=mysql_result($result,$i,"mill5lvl");
$f26=mysql_result($result,$i,"mill6lvl");
$f27=mysql_result($result,$i,"mill1pres");
$f28=mysql_result($result,$i,"mill2pres");
$f29=mysql_result($result,$i,"mill3pres");
$f30=mysql_result($result,$i,"mill4pres");
$f31=mysql_result($result,$i,"mill5pres");
$f32=mysql_result($result,$i,"mill6pres");
$f33=mysql_result($result,$i,"mill2spd");
$f34=mysql_result($result,$i,"mill3spd");
$f35=mysql_result($result,$i,"mill4spd");
$f36=mysql_result($result,$i,"mill5spd");
$f37=mysql_result($result,$i,"mill6spd");
$f38=mysql_result($result,$i,"mill1spd");
$f39=mysql_result($result,$i,"knife1pres");
$f40=mysql_result($result,$i,"knife2pres");
$f41=mysql_result($result,$i,"knife3pres");
$f42=mysql_result($result,$i,"knife1spd");
$f43=mysql_result($result,$i,"knife2spd");
$f44=mysql_result($result,$i,"knife3spd");
$f45=mysql_result($result,$i,"knife1op");
$f46=mysql_result($result,$i,"knife2op");
$f47=mysql_result($result,$i,"knife3op");
$f48=mysql_result($result,$i,"kc1");
$f49=mysql_result($result,$i,"kc2");
$f50=mysql_result($result,$i,"kc3");
$f51=mysql_result($result,$i,"neoutput");
$f52=mysql_result($result,$i,"nescale");
$f53=mysql_result($result,$i,"nesetpoint");
$f54=mysql_result($result,$i,"seoutput");
$f55=mysql_result($result,$i,"sescale");
$f56=mysql_result($result,$i,"sesetpoint");
$f57=mysql_result($result,$i,"woutput");
$f58=mysql_result($result,$i,"wscale");
$f59=mysql_result($result,$i,"wsetpoint");
$f60=mysql_result($result,$i,"latchon");
$f61=mysql_result($result,$i,"runhrstoday");
$f62=mysql_result($result,$i,"prevtons");
$f63=mysql_result($result,$i,"prevtime");
$f64=mysql_result($result,$i,"canetot");
$f65=mysql_result($result,$i,"avgtcd");
$f66=mysql_result($result,$i,"juicetankbit");
$f67=mysql_result($result,$i,"juicelvl");
$f68=mysql_result($result,$i,"nam");
$f69=mysql_result($result,$i,"sam");
$f70=mysql_result($result,$i,"wam");
$f71=mysql_result($result,$i,"tdoutput");
$f72=mysql_result($result,$i,"mill1highlvl");
$f73=mysql_result($result,$i,"mill5highlvl");
$f74=mysql_result($result,$i,"mill6highlvl");
$f75=mysql_result($result,$i,"imbflow");
$f76=mysql_result($result,$i,"imbsp");
$f77=mysql_result($result,$i,"pan8hrdpress");
$f78=mysql_result($result,$i,"mill1automan");
$f79=mysql_result($result,$i,"mill1output");
$f80=mysql_result($result,$i,"mill1automan1");
$f81=mysql_result($result,$i,"losstime");
$f82=mysql_result($result,$i,"tdratio");
$f83=mysql_result($result,$i,"tdsetpoint");
$f84=mysql_result($result,$i,"tdinput");
$f85=mysql_result($result,$i,"tdmg");
$f86=mysql_result($result,$i,"mill1sp");
$f87=mysql_result($result,$i,"mill2sp");
$f88=mysql_result($result,$i,"mill3sp");
$f89=mysql_result($result,$i,"mill4sp");
$f90=mysql_result($result,$i,"mill5sp");
$f91=mysql_result($result,$i,"mill6sp");
$f92=mysql_result($result,$i,"nesetpoint3");
$f93=mysql_result($result,$i,"nespswitch");
$f94=mysql_result($result,$i,"wsetpoint3");
$f95=mysql_result($result,$i,"wspswitch");
$f96=mysql_result($result,$i,"tdratios");
$f97=mysql_result($result,$i,"exhaustam");
$f98=mysql_result($result,$i,"b1pidswitch");
$f99=mysql_result($result,$i,"b1sf");
$f100=mysql_result($result,$i,"b2sf");
$f101=mysql_result($result,$i,"b3sf");
$f102=mysql_result($result,$i,"b4sf");
$f103=mysql_result($result,$i,"b5sf");
$f104=mysql_result($result,$i,"b6sf");
$f105=mysql_result($result,$i,"ttlstmflo");
$f106=mysql_result($result,$i,"tdsetpoint3");
$f107=mysql_result($result,$i,"tdsetpoint3switch");
$f108=mysql_result($result,$i,"stblsp3");
$f109=mysql_result($result,$i,"stblsp3switch");
$f110=mysql_result($result,$i,"dmbeltrunning");
$f111=mysql_result($result,$i,"tdbeltscale");
$f112=mysql_result($result,$i,"tdbeltscaleonoff");
$f113=mysql_result($result,$i,"syrupoverflow");
$f114=mysql_result($result,$i,"molbreclvl");
$f115=mysql_result($result,$i,"syruprcvrlvl");
$f116=mysql_result($result,$i,"amollvl");
?>
<style type="text/css">
.tftable1 {font-family:sans-serif;font-size:12px;color:#fbfbfb;width:100%;border-width: 1px;border-color: #686767;border-collapse: collapse;empty-cells: hide;}
.tftable1 th {font-family:arial;font-size:12px;background-color:#171515;border-width: 1px;padding: 8px;border-style: solid;border-color: #686767;text-align:left;}
.tftable1 tr {background-color:#171515;}
.tftable1 td {font-family:sans-serif;font-size:28px;font-weight:bold;border-width: 2px;padding: 3px;border-style: solid;border-color: #686767;}
.tftable2 {font-family:sans-serif;font-size:10px;color:#fbfbfb;width:100%;border-width: 1px;border-color: #686767;border-collapse: collapse;empty-cells: hide;}
.tftable2 th {font-family:sans-serif;font-size:10px;background-color:#171515;border-width: 1px;padding: 8px;border-style: solid;border-color: #686767;text-align:left;}
.tftable2 tr {background-color:#171515;}
.tftable2 td {font-family:sans-serif;font-size:28px;font-weight:bold;border-width: 2px;padding: 3px;border-style: solid;border-color: #686767;}
.tftable3 {font-family:sans-serif;font-size:12px;color:#fbfbfb;width:100%;border-width: 1px;border-color: #686767;border-collapse: collapse;empty-cells: hide;}
.tftable3 th {font-family:sans-serif;font-size:12px;background-color:#171515;border-width: 1px;padding: 8px;border-style: solid;border-color: #686767;text-align:left;}
.tftable3 tr {background-color:#171515;}
.tftable3 td {font-family:sans-serif;font-size:28px;font-weight:bold;border-width: 2px;padding: 3px;border-style: solid;border-color: #686767;}
.tftable4 {font-family:sans-serif;font-size:12px;color:#fbfbfb;width:100%;border-width: 1px;border-color: #686767;border-collapse: collapse;empty-cells: hide;}
.tftable4 th {font-family:sans-serif;font-size:12px;background-color:#171515;border-width: 1px;padding: 8px;border-style: solid;border-color: #686767;text-align:left;}
.tftable4 tr {background-color:#171515;}
.tftable4 td {font-family:sans-serif;font-size:28px;font-weight:bold;border-width: 1px;padding: 1px;border-style: solid;border-color: #686767;}
</style>
<!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv MILLS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
<table class="tftable2" border="1">
<tr>
<td colspan="2" bgcolor="#0B3B17" align="center" width="12%"><font color="#e0e0e0">E Mill 1</font></td>
<td bgcolor="#D7DF01" align="center" width="8.4%"><font color="#000000">E Mill 2</font></td>
<td bgcolor="#04B404" align="center" width="8.4%"><font color="#e0e0e0">E Mill 3</font></td>
<td bgcolor="#DF7401" align="center" width="8.4%"><font color="#000000">E Mill 4</font></td>
<td bgcolor="#5858FA" align="center" width="8.4%"><font color="#e0e0e0">E Mill 5</font></td>
<td bgcolor="#8A0808" align="center" width="8.4%"><font color="#e0e0e0">E Mill 6</font></td>
<td colspan="2" bgcolor="#0B3B17" align="center" width="12%"><font color="#e0e0e0">W Mill 1</font></td>
<td bgcolor="#D7DF01" align="center" width="8.4%"><font color="#000000">W Mill 2</font></td>
<td bgcolor="#04B404" align="center" width="8.4%"><font color="#e0e0e0">W Mill 3</font></td>
<td bgcolor="#DF7401" align="center" width="8.4%"><font color="#000000">W Mill 4</font></td>
<td bgcolor="#5858FA" align="center" width="8.4%"><font color="#e0e0e0">W Mill 5</font></td>
</tr>
<tr>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#0B3B17" align="center"><font color="#00FF00"><?php echo $f38; ?></font></td>
<td bgcolor="#D7DF01" align="center"><font color="#298A08"><?php echo $f33; ?></font></td>
<td bgcolor="#04B404" align="center"><font color="#81F781"><?php echo $f34; ?></font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"><?php echo $f35; ?></font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"><?php echo $f36; ?></font></td>
<td bgcolor="#8A0808" align="center"><font color="#00FF00"><?php echo $f37; ?></font></td>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#0B3B17" align="center"><font color="#00FF00"><?php echo $f37; ?></font></td>
<td bgcolor="#D7DF01" align="center"><font color="#298A08"><?php echo $f37; ?></font></td>
<td bgcolor="#04B404" align="center"><font color="#00FF00"><?php echo $f37; ?></font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"><?php echo $f35; ?></font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"><?php echo $f36; ?></font></td>
</tr>
<tr>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">SP</font></td>
<td bgcolor="#0B3B17" align="center"><font color="#00FF00"><?php echo $f86; ?></font></td>
<td bgcolor="#D7DF01" align="center"><font color="#298A08"><?php echo $f87; ?></font></td>
<td bgcolor="#04B404" align="center"><font color="#81F781"><?php echo $f88; ?></font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"><?php echo $f89; ?></font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"><?php echo $f90; ?></font></td>
<td bgcolor="#8A0808" align="center"><font color="#00FF00"><?php echo $f91; ?></font></td>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">SP</font></td>
<td bgcolor="#0B3B17" align="center"><font color="#00FF00"><?php echo $f91; ?></font></td>
<td bgcolor="#D7DF01" align="center"><font color="#298A08"><?php echo $f91; ?></font></td>
<td bgcolor="#04B404" align="center"><font color="#00FF00"><?php echo $f91; ?></font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"><?php echo $f89; ?></font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"><?php echo $f90; ?></font></td>
</tr>
<tr>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">Lvl</font></td>
<td bgcolor="#0B3B17" align="center"><font color="#00FF00"><?php echo $f21; ?>%</font></td>
<td bgcolor="#D7DF01" align="center"><font color="#298A08"><?php echo $f22; ?>%</font></td>
<td bgcolor="#04B404" align="center"><font color="#81F781"><?php echo $f23; ?>%</font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"><?php echo $f24; ?>%</font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"><?php echo $f25; ?>%</font></td>
<td bgcolor="#8A0808" align="center"><font color="#00FF00"><?php echo $f26; ?>%</font></td>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">Lvl</font></td>
<td bgcolor="#0B3B17" align="center"><font color="#00FF00"><?php echo $f26; ?>%</font></td>
<td bgcolor="#D7DF01" align="center"><font color="#298A08"><?php echo $f26; ?>%</font></td>
<td bgcolor="#04B404" align="center"><font color="#00FF00"><?php echo $f26; ?>%</font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"><?php echo $f24; ?>%</font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"><?php echo $f25; ?>%</font></td>
</tr>
<!--
<tr>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">PSI</font></td>
<td bgcolor="#0B3B17" align="left"><font color="#00FF00"><?php echo $f27; ?></font></td>
<td bgcolor="#D7DF01" align="right"><font color="#000000">PSI</font></td>
<td bgcolor="#D7DF01" align="left"><font color="#298A08"><?php echo $f28; ?></font></td>
<td bgcolor="#04B404" align="right"><font color="#e0e0e0">PSI</font></td>
<td bgcolor="#04B404" align="left"><font color="#81F781"><?php echo $f29; ?></font></td>
<td bgcolor="#DF7401" align="right"><font color="#000000">PSI</font></td>
<td bgcolor="#DF7401" align="left"><font color="#00FF00"><?php echo $f30; ?></font></td>
<td bgcolor="#5858FA" align="right"><font color="#e0e0e0">PSI</font></td>
<td bgcolor="#5858FA" align="left"><font color="#00FF00"><?php echo $f31; ?></font></td>
<td bgcolor="#8A0808" align="right"><font color="#e0e0e0">PSI</font></td>
<td bgcolor="#8A0808" align="left"><font color="#00FF00"><?php echo $f32; ?></font></td>
</tr>
-->
</table>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF MILLS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF PAGE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<?php
$i++;
}
?>

View File

@@ -0,0 +1,95 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f61=mysql_result($result,$i,"runhrstoday");
$f62=mysql_result($result,$i,"prevtons");
$f63=mysql_result($result,$i,"prevtime");
$f64=mysql_result($result,$i,"canetot");
$f65=mysql_result($result,$i,"avgtcd");
$f81=mysql_result($result,$i,"losstime");
$f1=mysql_result($result,$i,"tonshr");
$f2=mysql_result($result,$i,"wtonshr");
?>
<table class="tftable1">
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Today's Tons In:</font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php include("tonsin.php");?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
<td colspan=""><font color="#e0e0e0">Total Tons Ground:</font></td>
<td align="right"><font color="00FF00"><b><?php include("../data/totground.php");?></b></font></td>
<td><font color="#e0e0e0">Tons</font></td>
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Run Hours:</font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $f61; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Hours</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons Ground:</font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $f64; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
<td colspan=""><font color="#e0e0e0">Prev Tons Ground:</font></td>
<td align="right"><font color="00FF00"><b><?php echo $f62; ?></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 $f63; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Hours</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Average Tons/Day:</font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $f65; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
<td colspan=""><font color="#e0e0e0">Total Tons/Hr:</font></td>
<td colspan="2" align="center"><font size="6" color="00FFFF"><b><?php echo ($f1 + $f2); ?></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 $f81; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Hours</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
</table>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF PAGE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<?php
$i++;
}
?>

View File

@@ -0,0 +1,78 @@
<!--$f61=mysql_result($result,$i,"runhrstoday");
$f62=mysql_result($result,$i,"prevtons");
$f63=mysql_result($result,$i,"prevtime");
$f64=mysql_result($result,$i,"canetot");
$f65=mysql_result($result,$i,"avgtcd");
$f81=mysql_result($result,$i,"losstime");-->
<table class="tftable1">
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Today's Tons In:</font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php include("tonsin.php");?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
<td colspan=""><font color="#e0e0e0">Total Tons Ground:</font></td>
<td align="right"><font color="00FF00"><b><?php include("../data/totground.php");?></b></font></td>
<td><font color="#e0e0e0">Tons</font></td>
<?php
include "../../dbconnect.php";
$query="(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
$result=mysqli_query($con,$query);
while ($row=mysqli_fetch_array($result, MYSQLI_ASSOC)) { ?>
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Run Hours:</font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $row['RUNHRSTODAY']; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Hours</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons Ground:</font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $row['CANETOT']; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
<td colspan=""><font color="#e0e0e0">Prev Tons Ground:</font></td>
<td align="right"><font color="00FF00"><b><?php echo $row['PREVTONS']; ?></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 $row['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">Average Tons/Day:</font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $row['AVGTCD']; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
<td colspan="3" align="center"><font size="6" color="00FF00"><b></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 $row['LOSSTIME']; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Hours</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
</table>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF PAGE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<?php
}
?>

View File

@@ -0,0 +1,338 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f4=mysql_result($result,$i,"tonshr");
$f7=mysql_result($result,$i,"mill1wsp");
$f9=mysql_result($result,$i,"15minavg");
$f10=mysql_result($result,$i,"weightwsp");
$f11=mysql_result($result,$i,"Levelswitch");
$f21=mysql_result($result,$i,"mill1lvl");
$f22=mysql_result($result,$i,"mill2lvl");
$f23=mysql_result($result,$i,"mill3lvl");
$f24=mysql_result($result,$i,"mill4lvl");
$f25=mysql_result($result,$i,"mill5lvl");
$f26=mysql_result($result,$i,"mill6lvl");
$f38=mysql_result($result,$i,"mill1spd");
$f33=mysql_result($result,$i,"mill2spd");
$f34=mysql_result($result,$i,"mill3spd");
$f35=mysql_result($result,$i,"mill4spd");
$f36=mysql_result($result,$i,"mill5spd");
$f37=mysql_result($result,$i,"mill6spd");
$f61=mysql_result($result,$i,"runhrstoday");
$f62=mysql_result($result,$i,"prevtons");
$f63=mysql_result($result,$i,"prevtime");
$f64=mysql_result($result,$i,"canetot");
$f65=mysql_result($result,$i,"avgtcd");
$f81=mysql_result($result,$i,"losstime");
$f86=mysql_result($result,$i,"mill1sp");
$f87=mysql_result($result,$i,"mill2sp");
$f88=mysql_result($result,$i,"mill3sp");
$f89=mysql_result($result,$i,"mill4sp");
$f90=mysql_result($result,$i,"mill5sp");
$f91=mysql_result($result,$i,"mill6sp");
$f15=mysql_result($result,$i,"netablwt");
$f2=mysql_result($result,$i,"mainspd");
$f5=mysql_result($result,$i,"mccoutput");
$f57=mysql_result($result,$i,"imb5flow");
$f58=mysql_result($result,$i,"imb5sp");
$f75=mysql_result($result,$i,"imbflow");
$f76=mysql_result($result,$i,"imbsp");
$f78=mysql_result($result,$i,"mill1automan");
$f79=mysql_result($result,$i,"mill1output");
$f80=mysql_result($result,$i,"mill1automan1");
$f110=mysql_result($result,$i,"dmbeltrunning");
$f111=mysql_result($result,$i,"tdbeltscale");
$f112=mysql_result($result,$i,"tdbeltscaleonoff");
$f113=mysql_result($result,$i,"syrupoverflow");
$f114=mysql_result($result,$i,"molbreclvl");
$f115=mysql_result($result,$i,"syruprcvrlvl");
$f116=mysql_result($result,$i,"amollvl");
$f117=mysql_result($result,$i,"amoloverflow");
$f118=mysql_result($result,$i,"bmoloverflow");
$f119=mysql_result($result,$i,"wtonshr");
$f80=mysql_result($result,$i,"wmill1lvl");
$f82=mysql_result($result,$i,"wmill2lvl");
$f83=mysql_result($result,$i,"wmill3lvl");
$f84=mysql_result($result,$i,"wmill4lvl");
$f85=mysql_result($result,$i,"wmill5lvl");
$f200=mysql_result($result,$i,"wmill1spd");
$f201=mysql_result($result,$i,"wmill2spd");
$f202=mysql_result($result,$i,"wmill3spd");
$f203=mysql_result($result,$i,"wmill4spd");
$f204=mysql_result($result,$i,"wmill5spd");
$f205=mysql_result($result,$i,"wimbflow");
?>
<table width="100%">
<tr>
<td width="40%">
<table class="tftable24k">
<tr>
<td width="40%" align="center" colspan="5" border="0"><font color="#00BFFF"><i>EAST MILL TANDEM</i></font></td>
</tr>
</table>
<table class="tftableEAST4k">
<tr height="30">
<td align="center"><font color="#e0e0e0"></font></td>
<td align="center"><font color="#e0e0e0">Level</font></td>
<td align="center"><font color="#e0e0e0">SP</font></td>
<td align="center"><font color="#e0e0e0">RPM</font></td>
<td align="left" colspan="1"><font color="#e0e0e0">Mill 1 Output</font></td>
<?php
if ($f78 == 0)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#0B3B17\"><font color=\"#e0e0e0\">A</font></td>";
if ($f78 == 1)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#8A0808\"><font color=\"#e0e0e0\">M</font></td>";
?>
<td width="50" align="right"><font color="#00FF00"><?php echo $f79; ?></font></td>
<td width="112" align="left"><font color="#e0e0e0">%</font></td>
</tr>
<tr height="30">
<td width="30" bgcolor="#0B3B17" align="center"><font color="#e0e0e0">1</font></td>
<td width="210" bgcolor="#0B3B17" align="left"><progress id="progressmills" data-label="<?php echo $f21; ?>%" max="100" value="<?php echo $f21; ?>"></progress></td>
<td width="80" bgcolor="#0B3B17" align="center"><font color="#e0e0e0"><?php echo $f86; ?></font></td>
<td width="90" bgcolor="#0B3B17" align="center"><font color="#00FF00"><?php echo $f38; ?></font></td>
<td align="left" colspan="2"><font color="#e0e0e0">MCC FPM</font></td>
<td width="50" align="right"><font color="#00FF00"><?php echo $f2; ?></font></td>
<td colspan="2" width="110" align="left"><font color="#e0e0e0">FPM</font></td>
</tr>
<tr>
<td bgcolor="#D7DF01" align="center"><font color="#000000">2</font></td>
<td bgcolor="#D7DF01" align="left"><progress id="progressmills" data-label="<?php echo $f22; ?>%" max="100" value="<?php echo $f22; ?>"></progress></td>
<td bgcolor="#D7DF01" align="center"><font color="#ffffff"><?php echo $f87; ?></font></td>
<td bgcolor="#D7DF01" align="center"><font color="#298A08"><?php echo $f33; ?></font></td>
<td align="left" colspan="2"><font color="#e0e0e0">MCC Output</font></td>
<td align="right"><font color="#00FF00"><?php echo $f5; ?></font></td>
<td colspan="2" align="left"><font color="#e0e0e0">%</font></td>
</tr>
<tr>
<td bgcolor="#04B404" align="center"><font color="#e0e0e0">3</font></td>
<td bgcolor="#04B404" align="left"><progress id="progressmills" data-label="<?php echo $f23; ?>%" max="100" value="<?php echo $f23; ?>"></progress></td>
<td bgcolor="#04B404" align="center"><font color="#e0e0e0"><?php echo $f88; ?></font></td>
<td bgcolor="#04B404" align="center"><font color="#00FF00"><?php echo $f34; ?></font></td>
<td align="left" colspan="2"><font color="#e0e0e0">MCC Tons</font></td>
<td align="right"><font color="#00FF00"><?php echo $f15; ?></font></td>
<td colspan="2" align="left"><font color="#e0e0e0">Tons</font></td>
</tr>
<tr>
<td bgcolor="#DF7401" align="center"><font color="#e0e0e0">4</font></td>
<td bgcolor="#DF7401" align="left"><progress id="progressmills" data-label="<?php echo $f24; ?>%" max="100" value="<?php echo $f24; ?>"></progress></td>
<td bgcolor="#DF7401" align="center"><font color="#e0e0e0"><?php echo $f89; ?></font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"><?php echo $f35; ?></font></td>
<td align="left"><font color="#e0e0e0">Mill 1 SP</font></td><?php
if ($f80 == 1)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#0B3B17\"><font color=\"#e0e0e0\">A</font></td>";
if ($f80 == 0)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#8A0808\"><font color=\"#e0e0e0\">M</font></td>";
?>
<?php
if ($f11 == 1)
echo "<td align=\"right\"><font color=\"00FF00\"><b> $f10 </b></font></td>";
if ($f11 == 0)
echo "<td align=\"right\"><font color=\"00FF00\"><b> $f7 </b></font></td>";
?>
<?php
if ($f11 == 1)
echo "<td colspan=\"2\"><font color=\"#e0e0e0\">Tons/Hr</font></td>";
if ($f11 == 0)
echo "<td colspan=\"2\"><font color=\"#e0e0e0\">%</font></td>";
?>
</tr>
<tr>
<td bgcolor="#5858FA" align="center"><font color="#e0e0e0">5</font></td>
<td bgcolor="#5858FA" align="left"><progress id="progressmills" data-label="<?php echo $f25; ?>%" max="100" value="<?php echo $f25; ?>"></progress></td>
<td bgcolor="#5858FA" align="center"><font color="#e0e0e0"><?php echo $f90; ?></font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"><?php echo $f36; ?></font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Grinding Rate</font></td>
<td align="right"><font color="#00FF00"><?php echo $f4; ?></font></td>
<td colspan="2" align="left"><font color="#e0e0e0">Tons/Hr</font></td>
</tr>
<tr>
<td bgcolor="#8A0808" align="center"><font color="#e0e0e0">6</font></td>
<td bgcolor="#8A0808" align="left"><progress id="progressmills" data-label="<?php echo $f26; ?>%" max="100" value="<?php echo $f26; ?>"></progress></td>
<td bgcolor="#8A0808" align="center"><font color="#e0e0e0"><?php echo $f91; ?></font></td>
<td bgcolor="#8A0808" align="center"><font color="#00FF00"><?php echo $f37; ?></font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Average Rate</font></td>
<td align="right"><font color="#00FF00"><?php echo $f9; ?></font></td>
<td colspan="2" align="left"><font color="#e0e0e0">Tons/15Min</font></td>
</tr>
<tr>
<td bgcolor="#2E2E2E" colspan="2"><font color="#e0e0e0">Imibition 6 Flow:</font></td>
<td bgcolor="#2E2E2E" align="right" id="lsp"><font color="00FF00"><b><?php echo $f75; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">GPM</font></td>
<td colspan="2"><font color="#e0e0e0">Imibition 6 SP:</font></td>
<td align="right" id="lsp"><font color="00FF00"><b><?php echo $f76; ?></b></font></td>
<td colspan="2"><font color="#e0e0e0">GPM</font></td>
</tr>
<tr>
<td bgcolor="#2E2E2E" colspan="2"><font color="#e0e0e0">Imibition 5 Flow:</font></td>
<td bgcolor="#2E2E2E" align="right" id="lsp"><font color="00FF00"><b><?php echo $f57; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">GPM</font></td>
<td colspan="2"><font color="#e0e0e0">Imibition 5 SP:</font></td>
<td align="right" id="lsp"><font color="00FF00"><b><?php echo $f58; ?></b></font></td>
<td colspan="2"><font color="#e0e0e0">GPM</font></td>
</tr>
</table>
</td>
<td width="20%">
<table class="tftable24k">
<tr>
<td width="20%" align="center" colspan="3" border="0"><font color="#00BFFF"><i>GENERAL INFO</i></font></td>
</tr>
</table>
<table class="tftableWEST4k">
<tr>
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Total Tons Ground:</font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php include("../data/totground.php");?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
</tr>
<tr>
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Today's Tons In:</font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php include("tonsin.php");?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
</tr>
<tr>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons Ground:</font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $f64; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
</tr>
<tr>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Average Tons/Day:</font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $f65; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
</tr>
<tr>
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Prev Tons Ground:</font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $f62; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Tons</font></td>
</tr>
<tr>
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Run Hours:</font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $f61; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Hours</font></td>
</tr>
<tr>
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Prev Run Hours:</font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b><?php echo $f63; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Hours</font></td>
</tr>
<tr>
<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 $f81; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">Hours</font></td>
</tr>
<tr>
<td bgcolor="#2E2E2E" colspan=""><font color="#e0e0e0">Total Tons/Hr:</font></td>
<td bgcolor="#2E2E2E" height="35" colspan="2" align="center"><font size="6" color="00FFFF"><b><?php echo ($f4 + $f119); ?></b></font></td>
</tr>
</table>
</td>
<td width="40%">
<table class="tftable24k">
<tr>
<td width="40%" align="center" colspan="6" border="0"><font color="#00BFFF"><i>WEST MILL TANDEM</i></font></td>
</tr>
</table>
<table class="tftableWEST4k">
<tr height="30">
<td align="center"><font color="#e0e0e0"></font></td>
<td align="center"><font color="#e0e0e0">Level</font></td>
<td align="center"><font color="#e0e0e0">SP</font></td>
<td align="center"><font color="#e0e0e0">RPM</font></td>
<td colspan="4" align="center"><font color="#e0e0e0"></font></td>
</tr>
<tr>
<td width="30" bgcolor="#0B3B17" align="center"><font color="#e0e0e0">1</font></td>
<td width="210" bgcolor="#0B3B17" align="left"><progress id="progressmills" max="100" value=""><?php echo $f80; ?></progress></td>
<td width="80" bgcolor="#0B3B17" align="center"><font color="#e0e0e0"></font></td>
<td width="90" bgcolor="#0B3B17" align="center"><font color="#00FF00"><?php echo $f200; ?></font></td>
<td align="left"><font color="#e0e0e0">MCC FPM</font></td>
<td width="50" align="right"><font color="#00FF00"></font></td>
<td width="110" align="left"><font color="#e0e0e0">FPM</font></td>
</tr>
<tr>
<td bgcolor="#D7DF01" align="center"><font color="#000000">2</font></td>
<td bgcolor="#D7DF01" align="left"><progress id="progressmills" max="100" value=""><?php echo $f82; ?></progress></td>
<td bgcolor="#D7DF01" align="center"><font color="#ffffff"></font></td>
<td bgcolor="#D7DF01" align="center"><font color="#298A08"><?php echo $f201; ?></font></td>
<td align="left"><font color="#e0e0e0">MCC Output</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">%</font></td>
</tr>
<tr>
<td bgcolor="#04B404" align="center"><font color="#e0e0e0">3</font></td>
<td bgcolor="#04B404" align="left"><progress id="progressmills" max="100" value=""><?php echo $f83; ?></progress></td>
<td bgcolor="#04B404" align="center"><font color="#e0e0e0"></font></td>
<td bgcolor="#04B404" align="center"><font color="#00FF00"><?php echo $f202; ?></font></td>
<td align="left"><font color="#e0e0e0">MCC Tons</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">Tons</font></td>
</tr>
<tr>
<td bgcolor="#DF7401" align="center"><font color="#e0e0e0">4</font></td>
<td bgcolor="#DF7401" align="left"><progress id="progressmills" max="100" value=""><?php echo $f84; ?></progress></td>
<td bgcolor="#DF7401" align="center"><font color="#e0e0e0"></font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"><?php echo $f203; ?></font></td>
<td align="left"><font color="#e0e0e0">Mill 1 SP</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">%</font></td>
</tr>
<tr>
<td bgcolor="#5858FA" align="center"><font color="#e0e0e0">5</font></td>
<td bgcolor="#5858FA" align="left"><progress id="progressmills" max="100" value=""><?php echo $f85; ?></progress></td>
<td bgcolor="#5858FA" align="center"><font color="#e0e0e0"></font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"><?php echo $f204 ?></font></td>
<td align="left"><font color="#e0e0e0">Grinding Rate</font></td>
<td align="right"><font color="#00FF00"><?php echo $f119 ?></font></td>
<td align="left"><font color="#e0e0e0">Tons/Hr</font></td>
</tr>
<tr>
<td bgcolor="#8A0808" colspan="4" align="center"><font color="#e0e0e0"></font></td>
<td align="left"><font color="#e0e0e0">Average Rate</font></td>
<td align="right"><font color="#00FF00"><?php include("w15minavg.php");?></font></td>
<td align="left"><font color="#e0e0e0">Tons/15Min</font></td>
</tr>
<tr>
<td bgcolor="#2E2E2E" colspan="2"><font color="#e0e0e0">Imibition Flow:</font></td>
<td bgcolor="#2E2E2E" align="right" id="lsp"><font color="00FF00"><b><?php echo $f205; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">GPM</font></td>
<td colspan="1"><font color="#e0e0e0">Imibition 5 SP:</font></td>
<td align="right" id="lsp"><font color="00FF00"><b></b></font></td>
<td><font color="#e0e0e0">GPM</font></td>
</tr>
<tr>
<td height="35" colspan="9"><font color="#e0e0e0"></font></td>
</tr>
</table>
</td>
</tr>
</table>
<?php
$i++;
}
?>

View File

@@ -0,0 +1,72 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f66=mysql_result($result,$i,"juicetankbit");
$f67=mysql_result($result,$i,"juicelvl");
$f110=mysql_result($result,$i,"dmbeltrunning");
$f111=mysql_result($result,$i,"tdbeltscale");
$f112=mysql_result($result,$i,"tdbeltscaleonoff");
$f113=mysql_result($result,$i,"syrupoverflow");
$f114=mysql_result($result,$i,"molbreclvl");
$f115=mysql_result($result,$i,"syruprcvrlvl");
$f116=mysql_result($result,$i,"amollvl");
$f117=mysql_result($result,$i,"amoloverflow");
$f118=mysql_result($result,$i,"bmoloverflow");
?>
<table class="tftable24k">
<tr>
<td width="1000%" align="center" colspan="6" border="0"><font color="#00BFFF"><i>TANK LEVELS</i></font></td>
</tr>
</table>
<table class="tftable14k">
<tr>
<?php
if ($f66 == 0)
echo "<td colspan=\"\" width=\"12.5%\" align=\"center\"><font color=\"#e0e0e0\">One Juice Tank</font></td>";
if ($f66 == 1)
echo "<td colspan=\"\" width=\"12.5%\" align=\"center\"><font color=\"#e0e0e0\">Two Juice Tanks</font></td>";
?>
<td colspan="" width="12.5%" bgcolor="#2E2E2E" align="center"><font color="#e0e0e0" >Syrup RCVR</font></td>
<td colspan="" width="12.5%" align="center"><font color="#e0e0e0">Syrup Overflow</font></td>
<td colspan="" width="12.5%" bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">Total Syrup</font></td>
<td colspan="" width="12.5%" align="center"><font color="#e0e0e0">A RCVR</font></td>
<td colspan="" width="12.5%" bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">A Overflow</font></td>
<td colspan="" width="12.5%" align="center"><font color="#e0e0e0">B RCVR</font></td>
<td colspan="" width="12.5%" bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">B Overflow</font></td>
</tr>
<tr>
<td width="12.5" align="left"><progress id="progresstanks4k" data-label="<?php echo $f67; ?>%" max="100" value="<?php echo $f67; ?>"></progress></td>
<td width="12.5" bgcolor="#2E2E2E" align="left"><progress id="progresstanks4k" data-label="<?php echo $f115; ?>%" max="100" value="<?php echo $f115; ?>"></progress></td>
<td width="12.5" align="left"><progress id="progresstanks4k" data-label="<?php echo $f113; ?>%" max="100" value="<?php echo $f113; ?>"></progress></td>
<td width="12.5" bgcolor="#2E2E2E" align="left"><progress id="progresstanks4k" data-label="<?php echo round(($f113*.388)+($f115*.612),0); ?>%" max="100" value="<?php echo round(($f113*.388)+($f115*.612),0); ?>"></meter></td>
<td width="12.5" align="left"><progress id="progresstanks4k" data-label="<?php echo $f116; ?>%" max="100" value="<?php echo $f116; ?>"></progress></td>
<td width="12.5" bgcolor="#2E2E2E" align="left"><progress id="progresstanks4k" data-label="<?php echo $f117; ?>%" max="100" value="<?php echo $f117; ?>"></progress></td>
<td width="12.5" align="left"><progress id="progresstanks4k" data-label="<?php echo $f114; ?>%" max="100" value="<?php echo $f114; ?>"></progress></td>
<td width="12.5" bgcolor="#2E2E2E" align="left"><progress id="progresstanks4k" data-label="<?php echo $f118; ?>%" max="100" value="<?php echo $f118; ?>"></progress></td>
</tr>
</table>
<?php
$i++;
}
?>

View File

@@ -0,0 +1,105 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f21=mysql_result($result,$i,"mill1lvl");
$f22=mysql_result($result,$i,"mill2lvl");
$f23=mysql_result($result,$i,"mill3lvl");
$f24=mysql_result($result,$i,"mill4lvl");
$f25=mysql_result($result,$i,"mill5lvl");
$f26=mysql_result($result,$i,"mill6lvl");
$f38=mysql_result($result,$i,"mill1spd");
$f33=mysql_result($result,$i,"mill2spd");
$f34=mysql_result($result,$i,"mill3spd");
$f35=mysql_result($result,$i,"mill4spd");
$f36=mysql_result($result,$i,"mill5spd");
$f37=mysql_result($result,$i,"mill6spd");
$f110=mysql_result($result,$i,"dmbeltrunning");
$f111=mysql_result($result,$i,"tdbeltscale");
$f112=mysql_result($result,$i,"tdbeltscaleonoff");
$f113=mysql_result($result,$i,"syrupoverflow");
$f114=mysql_result($result,$i,"molbreclvl");
$f115=mysql_result($result,$i,"syruprcvrlvl");
$f116=mysql_result($result,$i,"amollvl");
$f117=mysql_result($result,$i,"amoloverflow");
$f118=mysql_result($result,$i,"bmoloverflow");
?>
<table class="tftable1">
<tr>
<td width="50%" align="center" colspan="5" border="0"><font color="#00BFFF"><i>EAST MILL TANDEM</i></font></td>
<td width="50%" align="center" colspan="6" border="0"><font color="#00BFFF"><i>WEST MILL TANDEM</i></font></td>
</tr>
</table>
<table class="tftableTEST">
<tr>
<td colspan="2" bgcolor="#0B3B17" align="center"><font color="#e0e0e0">Mill 1 LVL</font></td>
<td bgcolor="#0B3B17" align="left"><font color="#00FF00"><?php echo $f21; ?>%</font></td>
<td width="200" bgcolor="#0B3B17" align="left"><progress max="100" value="<?php echo $f21; ?>"></progress></td>
<td colspan="2" bgcolor="#0B3B17" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#0B3B17" align="left"><font color="#00FF00"><?php echo $f38; ?></font></td>
</tr>
<tr>
<td colspan="2" bgcolor="#D7DF01" align="center"><font color="#000000">Mill 2 LVL</font></td>
<td bgcolor="#D7DF01" align="left"><font color="#000000"><?php echo $f22; ?>%</font></td>
<td width="200" bgcolor="#D7DF01" align="left"><progress max="100" value="<?php echo $f22; ?>"></progress></td>
<td colspan="2" bgcolor="#D7DF01" align="center"><font color="#000000">RPM</font></td>
<td bgcolor="#D7DF01" align="left"><font color="#000000"><?php echo $f33; ?></font></td>
</tr>
<tr>
<td colspan="2" bgcolor="#04B404" align="center"><font color="#e0e0e0">Mill 3 LVL</font></td>
<td bgcolor="#04B404" align="left"><font color="#00FF00"><?php echo $f23; ?>%</font></td>
<td width="200" bgcolor="#04B404" align="left"><progress max="100" value="<?php echo $f23; ?>"></progress></td>
<td colspan="2" bgcolor="#04B404" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#04B404" align="left"><font color="#00FF00"><?php echo $f34; ?></font></td>
</tr>
<tr>
<td colspan="2" bgcolor="#DF7401" align="center"><font color="#e0e0e0">Mill 4 LVL</font></td>
<td bgcolor="#DF7401" align="left"><font color="#00FF00"><?php echo $f24; ?>%</font></td>
<td width="200" bgcolor="#DF7401" align="left"><progress max="100" value="<?php echo $f24; ?>"></progress></td>
<td colspan="2" bgcolor="#DF7401" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#DF7401" align="left"><font color="#00FF00"><?php echo $f35; ?></font></td>
</tr>
<tr>
<td colspan="2" bgcolor="#5858FA" align="center"><font color="#e0e0e0">Mill 5 LVL</font></td>
<td bgcolor="#5858FA" align="left"><font color="#00FF00"><?php echo $f25; ?>%</font></td>
<td width="200" bgcolor="#5858FA" align="left"><progress max="100" value="<?php echo $f25; ?>"></progress></td>
<td colspan="2" bgcolor="#5858FA" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#5858FA" align="left"><font color="#00FF00"><?php echo $f36; ?></font></td>
</tr>
<tr>
<td colspan="2" bgcolor="#8A0808" align="center"><font color="#e0e0e0">Mill 6 LVL</font></td>
<td bgcolor="#8A0808" align="left"><font color="#00FF00"><?php echo $f26; ?>%</font></td>
<td width="200" bgcolor="#8A0808" align="left"><progress max="100" value="<?php echo $f26; ?>"></progress></td>
<td colspan="2" bgcolor="#8A0808" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#8A0808" align="left"><font color="#00FF00"><?php echo $f37; ?></font></td>
</tr>
<tr>
</tr>
</table>
<?php
$i++;
}
?>

View File

@@ -0,0 +1,129 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "(SELECT * FROM boilers ORDER BY id DESC LIMIT 1)";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f103=mysql_result($result,$i,"boiler7drumlvla");
$f104=mysql_result($result,$i,"boiler7drumlvlb");
$f105=mysql_result($result,$i,"boiler7drumlvlc");
$f106=mysql_result($result,$i,"boiler7lvl");
$f107=mysql_result($result,$i,"boiler7drumpress");
$f108=mysql_result($result,$i,"boiler7feedwater");
$f111=mysql_result($result,$i,"boiler7feedwaterpres");
$f109=mysql_result($result,$i,"boiler7steamflow");
$f110=mysql_result($result,$i,"boiler7livesteam");
$f118=mysql_result($result,$i,"boiler8lvl");
$f119=mysql_result($result,$i,"boiler8drumpress");
?>
<!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv BOILERS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
<table class="tftable6" border="1">
<tr>
<td colspan="3" bgcolor="#121211" align="center" width="50%" style="color:#00BFFF; font-size: 80px;">BOILER 7</td>
<td colspan="3" bgcolor="#121211" align="center" width="50%" style="color:#00BFFF; font-size: 80px;">BOILER 8</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL A</td>
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 80px;"><?php echo $f103; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL A</td>
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 80px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL B</td>
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 80px;"><?php echo $f104; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL B</td>
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 80px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL C</td>
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 80px;"><?php echo $f105; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL C</td>
<td width="350" bgcolor="#242424" align="center" style="color:green; font-size: 80px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL Avg</td>
<td width="350" bgcolor="#242424" align="center" style="color:#00d145; font-size: 80px;"><?php echo $f106; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum LVL Avg</td>
<td width="350" bgcolor="#242424" align="center" style="color:#00d145; font-size: 80px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">%</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum Pressure</td>
<td width="350" bgcolor="#242424" align="center" style="color:#00d145; font-size: 80px;"><?php echo $f107; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Psig</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Drum Pressure</td>
<td width="350" bgcolor="#242424" align="center" style="color:#00d145; font-size: 80px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Psig</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Live Steam Pressure</td>
<td width="350" bgcolor="#242424" align="center" style="color:#00d145; font-size: 80px;"><?php echo $f110; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">psi</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Live Steam Pressure</td>
<td width="350" bgcolor="#242424" align="center" style="color:#00d145; font-size: 80px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">psi</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Feed Water Pressure</td>
<?php
$color = "#FFFFFF";
if (($f111 >= 0) && ($f111 <= 290))
$color = "#FF0000";
else if (($f111 >= 290) && ($f111 <= 300))
$color = "#FFFF00";
else if ($f111 >= 300)
$color = "#00d145";
echo "<td bgcolor=\"#242424\" align=\"center\" width=\"75\" style=\"color:$color; font-size: 80px;\"><b> $f111 </b></font></td>";
?>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Psig</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Feed Water Pressure</td>
<td width="350" bgcolor="#242424" align="center" style="color:#19afff; font-size: 80px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Psig</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Feed Water Flow</td>
<td width="350" bgcolor="#242424" align="center" style="color:#19afff; font-size: 80px;"><?php echo $f108; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">kpph</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Feed Water Flow</td>
<td width="350" bgcolor="#242424" align="center" style="color:#19afff; font-size: 80px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">kpph</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Steam Flow</td>
<td width="350" bgcolor="#242424" align="center" style="color:#19afff; font-size: 80px;"><?php echo $f109; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">kpph</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">Steam Flow</td>
<td width="350" bgcolor="#242424" align="center" style="color:#19afff; font-size: 80px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 80px;">kpph</td>
</tr>
</table>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF BOILERS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<?php
$i++;
}
?>

View File

@@ -0,0 +1,109 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "(SELECT * FROM boilers ORDER BY id DESC LIMIT 1)";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f103=mysql_result($result,$i,"boiler7drumlvla");
$f104=mysql_result($result,$i,"boiler7drumlvlb");
$f105=mysql_result($result,$i,"boiler7drumlvlc");
$f106=mysql_result($result,$i,"boiler7lvl");
$f107=mysql_result($result,$i,"boiler7drumpress");
$f108=mysql_result($result,$i,"boiler7feedwater");
$f109=mysql_result($result,$i,"boiler7steamflow");
$f110=mysql_result($result,$i,"boiler7livesteam");
$f118=mysql_result($result,$i,"boiler8lvl");
$f119=mysql_result($result,$i,"boiler8drumpress");
?>
<!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv BOILERS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
<table class="tftable6" border="1">
<tr>
<td colspan="3" bgcolor="#121211" align="center" width="50%" style="color:#00BFFF; font-size: 30px;">BOILER 7</td>
<td colspan="3" bgcolor="#121211" align="center" width="50%" style="color:#00BFFF; font-size: 30px;">BOILER 8</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL A</td>
<td width="150" bgcolor="#242424" align="right" style="color:green; font-size: 30px;"><?php echo $f103; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL A</td>
<td width="150" bgcolor="#242424" align="right" style="color:green; font-size: 30px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL B</td>
<td width="150" bgcolor="#242424" align="right" style="color:green; font-size: 30px;"><?php echo $f104; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL B</td>
<td width="150" bgcolor="#242424" align="right" style="color:green; font-size: 30px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL C</td>
<td width="150" bgcolor="#242424" align="right" style="color:green; font-size: 30px;"><?php echo $f105; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL C</td>
<td width="150" bgcolor="#242424" align="right" style="color:green; font-size: 30px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL Avg</td>
<td width="150" bgcolor="#242424" align="right" style="color:#00d145; font-size: 30px;"><?php echo $f106; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL Avg</td>
<td width="150" bgcolor="#242424" align="right" style="color:#00d145; font-size: 30px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum Pressure</td>
<td width="150" bgcolor="#242424" align="right" style="color:yellow; font-size: 30px;"><?php echo $f107; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Psig</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum Pressure</td>
<td width="150" bgcolor="#242424" align="right" style="color:yellow; font-size: 30px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Psig</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Live Steam Pressure</td>
<td width="150" bgcolor="#242424" align="right" style="color:yellow; font-size: 30px;"><?php echo $f110; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">psi</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Live Steam Pressure</td>
<td width="150" bgcolor="#242424" align="right" style="color:yellow; font-size: 30px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">psi</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Feed Water Flow</td>
<td width="150" bgcolor="#242424" align="right" style="color:#19afff; font-size: 30px;"><?php echo $f108; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">kpph</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Feed Water Flow</td>
<td width="150" bgcolor="#242424" align="right" style="color:#19afff; font-size: 30px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">kpph</td>
</tr>
<tr>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Steam Flow</td>
<td width="150" bgcolor="#242424" align="right" style="color:#19afff; font-size: 30px;"><?php echo $f109; ?></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">kpph</td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Steam Flow</td>
<td width="150" bgcolor="#242424" align="right" style="color:#19afff; font-size: 30px;"></td>
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">kpph</td>
</tr>
</table>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF BOILERS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<?php
$i++;
}
?>

View File

@@ -0,0 +1,325 @@
<?php
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "SELECT * FROM boilers ORDER BY id DESC LIMIT 1";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f1=mysql_result($result,$i,"boiler1stmflo");
$f2=mysql_result($result,$i,"blr1fdtemp");
$f3=mysql_result($result,$i,"blr1flugas");
$f4=mysql_result($result,$i,"blr1idtemp");
$f5=mysql_result($result,$i,"boiler1drmlvl");
$f6=mysql_result($result,$i,"boiler1idfnspd");
$f7=mysql_result($result,$i,"boiler1drmpres");
$f8=mysql_result($result,$i,"boiler1fdwtrflo");
$f9=mysql_result($result,$i,"boiler2stmflo");
$f10=mysql_result($result,$i,"blr2fdtemp");
$f11=mysql_result($result,$i,"blr2fluemp");
$f12=mysql_result($result,$i,"blr2idtemp");
$f13=mysql_result($result,$i,"boiler2drmlvl");
$f14=mysql_result($result,$i,"boiler2idfnspd");
$f15=mysql_result($result,$i,"boiler2drmpres");
$f16=mysql_result($result,$i,"boiler2fdwtrflo");
$f17=mysql_result($result,$i,"boiler3stmflo");
$f18=mysql_result($result,$i,"blr3fdtemp");
$f19=mysql_result($result,$i,"blr3fluetemp");
$f20=mysql_result($result,$i,"blr3idtemp");
$f21=mysql_result($result,$i,"boiler3drmlvl");
$f22=mysql_result($result,$i,"boiler3idfnspd");
$f23=mysql_result($result,$i,"boiler3drmpres");
$f24=mysql_result($result,$i,"boiler3fdwtrflo");
$f25=mysql_result($result,$i,"boilr3draft");
$f26=mysql_result($result,$i,"boiler4stmflo");
$f27=mysql_result($result,$i,"blr4fdtemp");
$f28=mysql_result($result,$i,"blr4flugas");
$f29=mysql_result($result,$i,"blr4idtemp");
$f30=mysql_result($result,$i,"boiler4drmlvl");
$f31=mysql_result($result,$i,"boiler4idfnspd");
$f32=mysql_result($result,$i,"boiler4drmpres");
$f33=mysql_result($result,$i,"boilr4draft");
$f34=mysql_result($result,$i,"boiler5stmflo");
$f35=mysql_result($result,$i,"blr5fdtemp");
$f36=mysql_result($result,$i,"blr5flugas");
$f37=mysql_result($result,$i,"blr5idtemp");
$f38=mysql_result($result,$i,"boiler5drmlvl");
$f39=mysql_result($result,$i,"boiler5idfnspd");
$f40=mysql_result($result,$i,"boiler5drmpres");
$f41=mysql_result($result,$i,"boiler5fdwtrflo");
$f42=mysql_result($result,$i,"boilr5draft");
$f43=mysql_result($result,$i,"boiler6stmflo");
$f44=mysql_result($result,$i,"blr6fdtemp");
$f45=mysql_result($result,$i,"blr6flugas");
$f46=mysql_result($result,$i,"blr6idtemp");
$f47=mysql_result($result,$i,"boiler6drmlvl");
$f48=mysql_result($result,$i,"boiler6idfnspd");
$f49=mysql_result($result,$i,"boiler6drmpres");
$f50=mysql_result($result,$i,"boiler6fdwtrflo");
$f51=mysql_result($result,$i,"ttlstmflo");
$f52=mysql_result($result,$i,"livestmpres");
$f53=mysql_result($result,$i,"exstflow1");
$f54=mysql_result($result,$i,"exstflow2");
$f55=mysql_result($result,$i,"gate1");
$f56=mysql_result($result,$i,"gate2");
$f57=mysql_result($result,$i,"gate3");
$f58=mysql_result($result,$i,"exhaustpr");
$f59=mysql_result($result,$i,"boiler4fdwtrflo");
$f60=mysql_result($result,$i,"blr2superheat");
$f61=mysql_result($result,$i,"blr6superheat");
$f62=mysql_result($result,$i,"blr6superheat");
$f63=mysql_result($result,$i,"exstflow3");
$f64=mysql_result($result,$i,"ttlstmflo2");
?>
<!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv BOILERS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
<!-- ****************************************** 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 $f105; ?></b></font></td>
<td><font color="#e0e0e0">Kpph</font></td>
<td colspan="2"><font color="#e0e0e0">Vapor Header Pressure:</font></td>
<td align="right" id="lsp"><font color="00FF00"><b><?php echo $f77; ?></b></font></td>
<td><font color="#e0e0e0">PSI</font></td>
<td colspan="2"><font color="#e0e0e0">Live Steam Pressure:</font></td>
<?php
$color = "#e0e0e0";
if (($f52 >= 0) && ($f52 <= 155))
$color = "#FF0000";
else if (($f52 >= 156) && ($f52 <= 165))
$color = "#FFFF00";
else if ($f52 >= 165)
$color = "#00FF00";
echo "<td align=\"right\"><font color=\"$color\"><b> $f52 </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 ($f97 == 0)
echo "<td align=\"center\" bgcolor=\"#0B3B17\"><font color=\"#e0e0e0\">A</font></td>";
if ($f97 == 1)
echo "<td align=\"center\" bgcolor=\"#8A0808\"><font color=\"#e0e0e0\">M</font></td>";
?>
<?php
$color = "#e0e0e0";
if (($f58 >= 0) && ($f58 <= 5))
$color = "#FF0000";
else if (($f58 >= 6) && ($f58 <= 13))
$color = "#FFFF00";
else if ($f58 >= 14)
$color = "#00FF00";
echo "<td align=\"right\"><font color=\"$color\"><b> $f58 </b></font></td>";
?>
<td><font color="#e0e0e0">PSI</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>
<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="#b36537" 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="#b36537" 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="80"><progress id="progresstanks" max="110" value="<?php echo $f1; ?>"></progress></td>
<td align="right" width="50"><font color="#e60000"><?php echo $f1; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
<td align="left" width="80"><progress id="progresstanks" max="105" value="<?php echo $f9; ?>"></progress></td>
<td align="right" width="50"><font color="#e60000"><?php echo $f9; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
<td align="left" width="80"><progress id="progresstanks" max="90" value="<?php echo $f17; ?>"></progress></td>
<td align="right" width="50"><font color="#e60000"><?php echo $f17; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
<td align="left" width="80"><progress id="progresstanks" max="60" value="<?php echo $f26; ?>"></progress></td>
<td align="right" width="50"><font color="#e60000"><?php echo $f26; ?></font></td>
<td align="left" width="50"><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 $f5; ?></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 $f13; ?></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 $f21; ?></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 $f30; ?></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 $f8; ?></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 $f16; ?></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 $f24; ?></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 $f59; ?></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 $f7; ?></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 $f15; ?></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 $f23; ?></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 $f32; ?></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 $f6; ?></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 $f14; ?></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 $f22; ?></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 $f31; ?></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="#b36537" 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="#b36537" 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="80"><progress id="progresstanks" max="50" value="<?php echo $f34; ?>"></progress></td>
<td align="right" width="50"><font color="#e60000"><?php echo $f34; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
<td align="left" width="80"><progress id="progresstanks" max="85" value="<?php echo $f43; ?>"></progress></td>
<td align="right" width="50"><font color="#e60000"><?php echo $f43; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
<td align="left" width="80"><progress id="progresstanks" max="50" value=""></progress></td>
<td align="right" width="50"><font color="#e60000"></font></td>
<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
<td align="left" width="80"><progress id="progresstanks" max="50" value=""></progress></td>
<td align="right" width="50"><font color="#e60000"></font></td>
<td align="left" width="50"><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 $f38; ?><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 $f47; ?><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"><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"><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 $f41; ?></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 $f50; ?></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"></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"></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 $f40; ?></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 $f49; ?></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"></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"></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 $f39; ?></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 $f48; ?></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"></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"></font></td>
<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
</tr>
</table>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF BOILERS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF PAGE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<?php
$i++;
}
?>

View File

@@ -0,0 +1,299 @@
<?php
include("../../dbinfo.php");
$con=mysqli_connect($host,$username,$password,$database);
$query = "(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
$result=mysqli_query($con, $query);
mysqli_close($con);
?>
<?php /*
$i=0;
while ($i < $num) {
$f1=mysql_result($result,$i,"livstmpr");
$f2=mysql_result($result,$i,"mainspd");
$f3=mysql_result($result,$i,"mill1spd");
$f4=mysql_result($result,$i,"tonshr");
$f5=mysql_result($result,$i,"mccoutput");
$f6=mysql_result($result,$i,"exhaustpr");
$f7=mysql_result($result,$i,"mill1wsp");
$f8=mysql_result($result,$i,"canetot");
$f9=mysql_result($result,$i,"15minavg");
$f10=mysql_result($result,$i,"weightwsp");
$f11=mysql_result($result,$i,"Levelswitch");
$f12=mysql_result($result,$i,"cercoutput");
$f13=mysql_result($result,$i,"crecpv");
$f14=mysql_result($result,$i,"crecsp");
$f15=mysql_result($result,$i,"netablwt");
$f16=mysql_result($result,$i,"vaporpres");
$f17=mysql_result($result,$i,"pan8lvl");
$f18=mysql_result($result,$i,"pan8evapvapor");
$f19=mysql_result($result,$i,"pan7hdrpres");
$f20=mysql_result($result,$i,"pan9exhaust");
$f21=mysql_result($result,$i,"mill1lvl");
$f22=mysql_result($result,$i,"mill2lvl");
$f23=mysql_result($result,$i,"mill3lvl");
$f24=mysql_result($result,$i,"mill4lvl");
$f25=mysql_result($result,$i,"mill5lvl");
$f26=mysql_result($result,$i,"mill6lvl");
$f27=mysql_result($result,$i,"mill1pres");
$f28=mysql_result($result,$i,"mill2pres");
$f29=mysql_result($result,$i,"mill3pres");
$f30=mysql_result($result,$i,"mill4pres");
$f31=mysql_result($result,$i,"mill5pres");
$f32=mysql_result($result,$i,"mill6pres");
$f33=mysql_result($result,$i,"mill2spd");
$f34=mysql_result($result,$i,"mill3spd");
$f35=mysql_result($result,$i,"mill4spd");
$f36=mysql_result($result,$i,"mill5spd");
$f37=mysql_result($result,$i,"mill6spd");
$f38=mysql_result($result,$i,"mill1spd");
$f39=mysql_result($result,$i,"knife1pres");
$f40=mysql_result($result,$i,"knife2pres");
$f41=mysql_result($result,$i,"knife3pres");
$f42=mysql_result($result,$i,"knife1spd");
$f43=mysql_result($result,$i,"knife2spd");
$f44=mysql_result($result,$i,"knife3spd");
$f45=mysql_result($result,$i,"knife1op");
$f46=mysql_result($result,$i,"knife2op");
$f47=mysql_result($result,$i,"knife3op");
$f48=mysql_result($result,$i,"kc1");
$f49=mysql_result($result,$i,"kc2");
$f50=mysql_result($result,$i,"kc3");
$f51=mysql_result($result,$i,"neoutput");
$f52=mysql_result($result,$i,"nescale");
$f53=mysql_result($result,$i,"nesetpoint");
$f54=mysql_result($result,$i,"seoutput");
$f55=mysql_result($result,$i,"sescale");
$f56=mysql_result($result,$i,"sesetpoint");
$f57=mysql_result($result,$i,"woutput");
$f58=mysql_result($result,$i,"wscale");
$f59=mysql_result($result,$i,"wsetpoint");
$f60=mysql_result($result,$i,"latchon");
$f61=mysql_result($result,$i,"runhrstoday");
$f62=mysql_result($result,$i,"prevtons");
$f63=mysql_result($result,$i,"prevtime");
$f64=mysql_result($result,$i,"canetot");
$f65=mysql_result($result,$i,"avgtcd");
$f66=mysql_result($result,$i,"juicetankbit");
$f67=mysql_result($result,$i,"juicelvl");
$f68=mysql_result($result,$i,"nam");
$f69=mysql_result($result,$i,"sam");
$f70=mysql_result($result,$i,"wam");
$f71=mysql_result($result,$i,"tdoutput");
$f72=mysql_result($result,$i,"mill1highlvl");
$f73=mysql_result($result,$i,"mill5highlvl");
$f74=mysql_result($result,$i,"mill6highlvl");
$f75=mysql_result($result,$i,"imbflow");
$f76=mysql_result($result,$i,"imbsp");
$f77=mysql_result($result,$i,"pan8hrdpress");
$f78=mysql_result($result,$i,"mill1automan");
$f79=mysql_result($result,$i,"mill1output");
$f80=mysql_result($result,$i,"mill1automan1");
$f81=mysql_result($result,$i,"losstime");
$f82=mysql_result($result,$i,"tdratio");
$f83=mysql_result($result,$i,"tdsetpoint");
$f84=mysql_result($result,$i,"tdinput");
$f85=mysql_result($result,$i,"tdmg");
$f86=mysql_result($result,$i,"mill1sp");
$f87=mysql_result($result,$i,"mill2sp");
$f88=mysql_result($result,$i,"mill3sp");
$f89=mysql_result($result,$i,"mill4sp");
$f90=mysql_result($result,$i,"mill5sp");
$f91=mysql_result($result,$i,"mill6sp");
$f92=mysql_result($result,$i,"nesetpoint3");
$f93=mysql_result($result,$i,"nespswitch");
$f94=mysql_result($result,$i,"wsetpoint3");
$f95=mysql_result($result,$i,"wspswitch");
$f96=mysql_result($result,$i,"tdratios");
$f97=mysql_result($result,$i,"exhaustam");
$f98=mysql_result($result,$i,"b1pidswitch");
$f99=mysql_result($result,$i,"b1sf");
$f100=mysql_result($result,$i,"b2sf");
$f101=mysql_result($result,$i,"b3sf");
$f102=mysql_result($result,$i,"b4sf");
$f103=mysql_result($result,$i,"b5sf");
$f104=mysql_result($result,$i,"b6sf");
$f105=mysql_result($result,$i,"ttlstmflo");
$f106=mysql_result($result,$i,"tdsetpoint3");
$f107=mysql_result($result,$i,"tdsetpoint3switch");
$f108=mysql_result($result,$i,"stblsp3");
$f109=mysql_result($result,$i,"stblsp3switch");
$f110=mysql_result($result,$i,"dmbeltrunning");
$f111=mysql_result($result,$i,"tdbeltscale");
$f112=mysql_result($result,$i,"tdbeltscaleonoff");
$f113=mysql_result($result,$i,"syrupoverflow");
$f114=mysql_result($result,$i,"molbreclvl");
$f115=mysql_result($result,$i,"syruprcvrlvl");
$f116=mysql_result($result,$i,"amollvl");
$f117=mysql_result($result,$i,"amoloverflow");
$f118=mysql_result($result,$i,"bmoloverflow");
*/
?>
<table class="tftable1">
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td><font color="#e0e0e0">Mill 1 Set Point:</font></td>
<?php
if ($row['MILL1AUTOMAN1'] == 1)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#0B3B17\"><font color=\"#e0e0e0\">A</font></td>";
if ($row['MILL1AUTOMAN1'] == 0)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#8A0808\"><font color=\"#e0e0e0\">M</font></td>";
?>
<?php
if ($row['LEVELSWITCH'] == 1)
echo "<td align=\"right\"><font color=\"00FF00\"><b>". $row['WEIGHTWSP']." </b></font></td>";
if ($row['LEVELSWITCH'] == 0)
echo "<td align=\"right\"><font color=\"00FF00\"><b> ".$row['MILL1WSP']." </b></font></td>";
?>
<?php
if ($row['LEVELSWITCH'] == 1)
echo "<td><font color=\"#e0e0e0\">Tons/Hr</font></td>";
if ($row['LEVELSWITCH'] == 0)
echo "<td><font color=\"#e0e0e0\">%</font></td>";
?>
<td><font color="#e0e0e0">Grinding Rate:</font></td>
<?php
$color = "#FFFFFF";
if (($row['TONSHR'] >= 0) && ($row['TONSHR'] <= 299))
$color = "#FF0000";
else if (($row['TONSHR'] >= 200) && ($row['TONSHR'] <= 399))
$color = "#FFFF00";
else if ($row['TONSHR'] >= 400)
$color = "#00FF00";
echo "<td align=\"right\"><font color=\"$color\"><b>". $row['TONSHR']." </b></font></td>";
?>
<td><font color="#e0e0e0">Tons/Hr</font></td>
<td colspan="2"><font color="#e0e0e0">Total Tons Ground:</font></td>
<td align="right"><font color="00FF00"><b><?php include("../data/totground.php");?></b></font></td>
<td><font color="#e0e0e0">Tons</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td><font color="#e0e0e0">Mill 1 Turbine Output:</font></td>
<?php
if ($row['MILL1AUTOMAN'] == 0)
echo "<td align=\"center\" bgcolor=\"#0B3B17\"><font color=\"#e0e0e0\">A</font></td>";
if ($row['MILL1AUTOMAN'] == 1)
echo "<td align=\"center\" bgcolor=\"#8A0808\"><font color=\"#e0e0e0\">M</font></td>";
?>
<td align="right"><font color="00FF00"><b><?php echo $row['MILL1OUTPUT']; ?></b></font></td>
<td><font color="#e0e0e0">%</font></td>
<td><font color="#e0e0e0">15 Min Average:</font></td>
<td align="right"><font color="00FF00"><b><?php echo $row['15MINAVG']; ?></b></font></td>
<td><font color="#e0e0e0">Tons/Hr</font></td>
<td colspan="2"><font color="#e0e0e0">Prev Tons Ground:</font></td>
<td align="right"><font color="00FF00"><b><?php echo $row['PREVTONS']; ?></b></font></td>
<td><font color="#e0e0e0">Tons</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td colspan="2"><font color="#e0e0e0">MCC FPM:</font></td>
<td align="right" width="75"><font color="00FF00"><b><?php echo $row['MAINSPD']; ?></b></font></td>
<td><font color="#e0e0e0">FPM</font></td>
<td><font color="#e0e0e0">Tons Ground:</font></td>
<td align="right"><font color="00FF00"><b><?php echo $row['CANETOT']; ?></b></font></td>
<td><font color="#e0e0e0">Tons</font></td>
<td colspan="2"><font color="#e0e0e0">Run Hours:</font></td>
<td align="right"><font color="00FF00"><b><?php echo $row['RUNHRSTODAY']; ?></b></font></td>
<td><font color="#e0e0e0">Hours</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td><font color="#e0e0e0">MCC Output:</font></td>
<?php
if ($row['B1PIDSWITCH'] == 1)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#0B3B17\"><font color=\"#e0e0e0\">2</font></td>";
if ($row['B1PIDSWITCH'] == 0)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#8A0808\"><font color=\"#e0e0e0\">1</font></td>";
?>
<td align="right"><font color="00FF00"><b><?php echo $row['MCCOUTPUT']; ?></b></font></td>
<td><font color="#e0e0e0">%</font></td>
<td><font color="#e0e0e0">Average Tons/Day:</font></td>
<td align="right"><font color="00FF00"><b><?php echo $row['AVGTCD']; ?></b></font></td>
<td><font color="#e0e0e0">Tons</font></td>
<td colspan="2"><font color="#e0e0e0">Prev Run Hours:</font></td>
<td align="right"><font color="00FF00"><b><?php echo $row['PREVTIME']; ?></b></font></td>
<td><font color="#e0e0e0">Hours</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td colspan="2"><font color="#e0e0e0">MCC Tons:</font></td>
<td align="right"><font color="00FF00"><b><?php echo $row['NETABLWT']; ?></b></font></td>
<td><font color="#e0e0e0">Tons</font></td>
<td><font color="#e0e0e0">Imibition Flow:</font></td>
<td align="right" id="lsp"><font color="00FF00"><b><?php echo $row['IMBFLOW']; ?></b></font></td>
<td><font color="#e0e0e0">GPM</font></td>
<td colspan="2"><font color="#e0e0e0">Today's Tons In:</font></td>
<td align="right"><font color="00FF00"><b><?php include("tonsin.php");?></b></font></td>
<td><font color="#e0e0e0">Tons</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<?php
if ($row['JUICETANKBIT'] == 0)
echo "<td colspan=\"2\"><font color=\"#e0e0e0\">One Juice Tank</font></td>";
if ($row['JUICETANKBIT'] == 1)
echo "<td colspan=\"2\"><font color=\"#e0e0e0\">Two Juice Tanks</font></td>";
?>
<td align="right"><font color="00FF00"><b><?php echo $row['JUICELVL']; ?></b></font></td>
<td><font color="#e0e0e0">%</font></td>
<td><font color="#e0e0e0">Imibition SP:</font></td>
<td align="right" id="lsp"><font color="00FF00"><b><?php echo $row['IMBSP']; ?></b></font></td>
<td><font color="#e0e0e0">GPM</font></td>
<td colspan="2"><font color="#e0e0e0">Today's Loss Time:</font></td>
<td align="right" id="lsp"><font color="00FF00"><b><?php echo $row['LOSSTIME']; ?></b></font></td>
<td><font color="#e0e0e0">Hours</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
</table>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF PAGE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<?php
$i++;
?>

View File

@@ -0,0 +1,174 @@
<?php
include("../../items.php");
?>
<table class="tftable1">
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td><font color="#e0e0e0">Mill 1 Set Point:</font></td>
<?php
if ($value['MILL1AUTOMAN1'] == 1)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#0B3B17\"><font color=\"#e0e0e0\">A</font></td>";
if ($value['MILL1AUTOMAN1'] == 0)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#8A0808\"><font color=\"#e0e0e0\">M</font></td>";
?>
<?php
if ($value['LEVELSWITCH'] == 1)
echo "<td align=\"right\"><font color=\"00FF00\"><b> ".$value['WEIGHTWSP']." </b></font></td>";
if ($value['LEVELSWITCH'] == 0)
echo "<td align=\"right\"><font color=\"00FF00\"><b> ".$value['MILL1WSP']." </b></font></td>";
?>
<?php
if ($value['LEVELSWITCH']== 1)
echo "<td><font color=\"#e0e0e0\">Tons/Hr</font></td>";
if ($value['LEVELSWITCH'] == 0)
echo "<td><font color=\"#e0e0e0\">%</font></td>";
?>
<td><font color="#e0e0e0">Grinding Rate:</font></td>
<?php
$color = "#FFFFFF";
if (($value['TONSHR'] >= 0) && ($value['TONSHR'] <= 299))
$color = "#FF0000";
else if (($value['TONSHR'] >= 200) && ($value['TONSHR'] <= 399))
$color = "#FFFF00";
else if ($value['TONSHR'] >= 400)
$color = "#00FF00";
echo "<td align=\"right\"><font color=\"$color\"><b>". $value['TONSHR']." </b></font></td>";
?>
<td><font color="#e0e0e0">Tons/Hr</font></td>
<td colspan="2"><font color="#e0e0e0">Total Tons Ground:</font></td>
<td align="right"><font color="00FF00"><b><?php include("../data/totground.php");?></b></font></td>
<td><font color="#e0e0e0">Tons</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td><font color="#e0e0e0">Mill 1 Turbine Output:</font></td>
<?php
if ($value['MILL1AUTOMAN']== 0)
echo "<td align=\"center\" bgcolor=\"#0B3B17\"><font color=\"#e0e0e0\">A</font></td>";
if ($value['MILL1AUTOMAN'] == 1)
echo "<td align=\"center\" bgcolor=\"#8A0808\"><font color=\"#e0e0e0\">M</font></td>";
?>
<td align="right"><font color="00FF00"><b><?php echo $value['MILL1OUTPUT']; ?></b></font></td>
<td><font color="#e0e0e0">%</font></td>
<td><font color="#e0e0e0">15 Min Average:</font></td>
<td align="right"><font color="00FF00"><b><?php //echo $value['15MINAVG']; ?></b></font></td>
<td><font color="#e0e0e0">Tons/Hr</font></td>
<td colspan="2"><font color="#e0e0e0">Prev Tons Ground:</font></td>
<td align="right"><font color="00FF00"><b><?php echo $value['PREVTONS']; ?></b></font></td>
<td><font color="#e0e0e0">Tons</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td colspan="2"><font color="#e0e0e0">MCC FPM:</font></td>
<td align="right" width="75"><font color="00FF00"><b><?php echo $value['MAINSPD']; ?></b></font></td>
<td><font color="#e0e0e0">FPM</font></td>
<td><font color="#e0e0e0">Tons Ground:</font></td>
<td align="right"><font color="00FF00"><b><?php echo $value['PREVTIME']; ?></b></font></td>
<td><font color="#e0e0e0">Tons</font></td>
<td colspan="2"><font color="#e0e0e0">Run Hours:</font></td>
<td align="right"><font color="00FF00"><b><?php echo $value['RUNHRSTODAY']; ?></b></font></td>
<td><font color="#e0e0e0">Hours</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td><font color="#e0e0e0">MCC Output:</font></td>
<?php
if ($value['B1PIDSWITCH'] == 1)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#0B3B17\"><font color=\"#e0e0e0\">2</font></td>";
if ($value['B1PIDSWITCH'] == 0)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#8A0808\"><font color=\"#e0e0e0\">1</font></td>";
?>
<td align="right"><font color="00FF00"><b><?php echo $value['MCCOUTPUT']; ?></b></font></td>
<td><font color="#e0e0e0">%</font></td>
<td><font color="#e0e0e0">Average Tons/Day:</font></td>
<td align="right"><font color="00FF00"><b><?php echo $value['AVGTCD']; ?></b></font></td>
<td><font color="#e0e0e0">Tons</font></td>
<td colspan="2"><font color="#e0e0e0">Prev Run Hours:</font></td>
<td align="right"><font color="00FF00"><b><?php echo $value['PREVTIME']; ?></b></font></td>
<td><font color="#e0e0e0">Hours</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td colspan="2"><font color="#e0e0e0">MCC Tons:</font></td>
<td align="right"><font color="00FF00"><b><?php echo $value['NETABLWT']; ?></b></font></td>
<td><font color="#e0e0e0">Tons</font></td>
<td><font color="#e0e0e0">Imibition Flow:</font></td>
<td align="right" id="lsp"><font color="129dbd"><b><?php echo $value['IMBFLOW']; ?></b></font></td>
<td><font color="#e0e0e0">GPM</font></td>
<td colspan="2"><font color="#e0e0e0">Today's Tons In:</font></td>
<td align="right"><font color="00FF00"><b><?php include("tonsin.php");?></b></font></td>
<td><font color="#e0e0e0">Tons</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<?php
if ($value['JUICETANKBIT'] == 0)
echo "<td colspan=\"2\"><font color=\"#e0e0e0\">One Juice Tank</font></td>";
if ($value['JUICETANKBIT'] == 1)
echo "<td colspan=\"2\"><font color=\"#e0e0e0\">Two Juice Tanks</font></td>";
?>
<?php
$color = "#FFFFFF";
if (($value['JUICELVL'] >= 0) && ($value['JUICELVL'] <= 90))
$color = "#00ff00";
else if ($value['JUICELVL'] >= 90)
$color = "#e60000";
echo "<td align=\"right\"><font color=\"$color\"><b>". $value['JUICELVL']." </b></font></td>";
?>
<td><font color="#e0e0e0">%</font></td>
<td><font color="#e0e0e0">Imibition SP:</font></td>
<td align="right" id="lsp"><font color="129dbd"><b><?php echo $value['IMBSP']; ?></b></font></td>
<td><font color="#e0e0e0">GPM</font></td>
<td colspan="2"><font color="#e0e0e0">Today's Loss Time:</font></td>
<td align="right" id="lsp"><font color="00FF00"><b><?php echo $value['LOSSTIME']; ?></b></font></td>
<td><font color="#e0e0e0">Hours</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
</table>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF PAGE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->

View File

@@ -0,0 +1,5 @@
<?php include("header.php");?>
<?php // include("maintenence.php");?>
<?php include("newgeneral.php");?>
<?php include("newmills.php");?>
<?php include("boilers.php");?>

View File

@@ -0,0 +1,220 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f1=mysql_result($result,$i,"livstmpr");
$f2=mysql_result($result,$i,"mainspd");
$f3=mysql_result($result,$i,"mill1spd");
$f4=mysql_result($result,$i,"tonshr");
$f5=mysql_result($result,$i,"mccoutput");
$f6=mysql_result($result,$i,"exhaustpr");
$f7=mysql_result($result,$i,"mill1wsp");
$f8=mysql_result($result,$i,"canetot");
$f9=mysql_result($result,$i,"15minavg");
$f10=mysql_result($result,$i,"weightwsp");
$f11=mysql_result($result,$i,"Levelswitch");
$f12=mysql_result($result,$i,"cercoutput");
$f13=mysql_result($result,$i,"crecpv");
$f14=mysql_result($result,$i,"crecsp");
$f15=mysql_result($result,$i,"netablwt");
$f16=mysql_result($result,$i,"vaporpres");
$f17=mysql_result($result,$i,"pan8lvl");
$f18=mysql_result($result,$i,"pan8evapvapor");
$f19=mysql_result($result,$i,"pan7hdrpres");
$f20=mysql_result($result,$i,"pan9exhaust");
$f21=mysql_result($result,$i,"mill1lvl");
$f22=mysql_result($result,$i,"mill2lvl");
$f23=mysql_result($result,$i,"mill3lvl");
$f24=mysql_result($result,$i,"mill4lvl");
$f25=mysql_result($result,$i,"mill5lvl");
$f26=mysql_result($result,$i,"mill6lvl");
$f27=mysql_result($result,$i,"mill1pres");
$f28=mysql_result($result,$i,"mill2pres");
$f29=mysql_result($result,$i,"mill3pres");
$f30=mysql_result($result,$i,"mill4pres");
$f31=mysql_result($result,$i,"mill5pres");
$f32=mysql_result($result,$i,"mill6pres");
$f33=mysql_result($result,$i,"mill2spd");
$f34=mysql_result($result,$i,"mill3spd");
$f35=mysql_result($result,$i,"mill4spd");
$f36=mysql_result($result,$i,"mill5spd");
$f37=mysql_result($result,$i,"mill6spd");
$f38=mysql_result($result,$i,"mill1spd");
$f39=mysql_result($result,$i,"knife1pres");
$f40=mysql_result($result,$i,"knife2pres");
$f41=mysql_result($result,$i,"knife3pres");
$f42=mysql_result($result,$i,"knife1spd");
$f43=mysql_result($result,$i,"knife2spd");
$f44=mysql_result($result,$i,"knife3spd");
$f45=mysql_result($result,$i,"knife1op");
$f46=mysql_result($result,$i,"knife2op");
$f47=mysql_result($result,$i,"knife3op");
$f48=mysql_result($result,$i,"kc1");
$f49=mysql_result($result,$i,"kc2");
$f50=mysql_result($result,$i,"kc3");
$f51=mysql_result($result,$i,"neoutput");
$f52=mysql_result($result,$i,"nescale");
$f53=mysql_result($result,$i,"nesetpoint");
$f54=mysql_result($result,$i,"seoutput");
$f55=mysql_result($result,$i,"sescale");
$f56=mysql_result($result,$i,"sesetpoint");
$f57=mysql_result($result,$i,"woutput");
$f58=mysql_result($result,$i,"wscale");
$f59=mysql_result($result,$i,"wsetpoint");
$f60=mysql_result($result,$i,"latchon");
$f61=mysql_result($result,$i,"runhrstoday");
$f62=mysql_result($result,$i,"prevtons");
$f63=mysql_result($result,$i,"prevtime");
$f64=mysql_result($result,$i,"canetot");
$f65=mysql_result($result,$i,"avgtcd");
$f66=mysql_result($result,$i,"juicetankbit");
$f67=mysql_result($result,$i,"juicelvl");
$f68=mysql_result($result,$i,"nam");
$f69=mysql_result($result,$i,"sam");
$f70=mysql_result($result,$i,"wam");
$f71=mysql_result($result,$i,"tdoutput");
$f72=mysql_result($result,$i,"mill1highlvl");
$f73=mysql_result($result,$i,"mill5highlvl");
$f74=mysql_result($result,$i,"mill6highlvl");
$f75=mysql_result($result,$i,"imbflow");
$f76=mysql_result($result,$i,"imbsp");
$f77=mysql_result($result,$i,"pan8hrdpress");
$f78=mysql_result($result,$i,"mill1automan");
$f79=mysql_result($result,$i,"mill1output");
$f80=mysql_result($result,$i,"mill1automan1");
$f81=mysql_result($result,$i,"losstime");
$f82=mysql_result($result,$i,"tdratio");
$f83=mysql_result($result,$i,"tdsetpoint");
$f84=mysql_result($result,$i,"tdinput");
$f85=mysql_result($result,$i,"tdmg");
$f86=mysql_result($result,$i,"mill1sp");
$f87=mysql_result($result,$i,"mill2sp");
$f88=mysql_result($result,$i,"mill3sp");
$f89=mysql_result($result,$i,"mill4sp");
$f90=mysql_result($result,$i,"mill5sp");
$f91=mysql_result($result,$i,"mill6sp");
$f92=mysql_result($result,$i,"nesetpoint3");
$f93=mysql_result($result,$i,"nespswitch");
$f94=mysql_result($result,$i,"wsetpoint3");
$f95=mysql_result($result,$i,"wspswitch");
$f96=mysql_result($result,$i,"tdratios");
$f97=mysql_result($result,$i,"exhaustam");
$f98=mysql_result($result,$i,"b1pidswitch");
$f99=mysql_result($result,$i,"b1sf");
$f100=mysql_result($result,$i,"b2sf");
$f101=mysql_result($result,$i,"b3sf");
$f102=mysql_result($result,$i,"b4sf");
$f103=mysql_result($result,$i,"b5sf");
$f104=mysql_result($result,$i,"b6sf");
$f105=mysql_result($result,$i,"ttlstmflo");
$f106=mysql_result($result,$i,"tdsetpoint3");
$f107=mysql_result($result,$i,"tdsetpoint3switch");
$f108=mysql_result($result,$i,"stblsp3");
$f109=mysql_result($result,$i,"stblsp3switch");
$f110=mysql_result($result,$i,"dmbeltrunning");
$f111=mysql_result($result,$i,"tdbeltscale");
$f112=mysql_result($result,$i,"tdbeltscaleonoff");
$f113=mysql_result($result,$i,"syrupoverflow");
$f114=mysql_result($result,$i,"molbreclvl");
$f115=mysql_result($result,$i,"syruprcvrlvl");
$f116=mysql_result($result,$i,"amollvl");
$f117=mysql_result($result,$i,"amoloverflow");
$f118=mysql_result($result,$i,"bmoloverflow");
?>
<!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv MILLS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
<table class="tftable2" border="1">
<tr>
<td colspan="2" bgcolor="#0B3B17" align="center" ><font color="#e0e0e0">Mill 1</font></td>
<td colspan="2" bgcolor="#D7DF01" align="center" ><font color="#000000">Mill 2</font></td>
<td colspan="2" bgcolor="#04B404" align="center" ><font color="#e0e0e0">Mill 3</font></td>
<td colspan="2" bgcolor="#DF7401" align="center" ><font color="#000000">Mill 4</font></td>
<td colspan="2" bgcolor="#5858FA" align="center" ><font color="#e0e0e0">Mill 5</font></td>
<td colspan="2" bgcolor="#8A0808" align="center" ><font color="#e0e0e0">Mill 6</font></td>
</tr>
<tr>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#0B3B17" align="left"><font color="#00FF00"><?php echo $f38; ?></font></td>
<td bgcolor="#D7DF01" align="right"><font color="#000000">RPM</font></td>
<td bgcolor="#D7DF01" align="left"><font color="#298A08"><?php echo $f33; ?></font></td>
<td bgcolor="#04B404" align="right"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#04B404" align="left"><font color="#81F781"><?php echo $f34; ?></font></td>
<td bgcolor="#DF7401" align="right"><font color="#000000">RPM</font></td>
<td bgcolor="#DF7401" align="left"><font color="#00FF00"><?php echo $f35; ?></font></td>
<td bgcolor="#5858FA" align="right"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#5858FA" align="left"><font color="#00FF00"><?php echo $f36; ?></font></td>
<td bgcolor="#8A0808" align="right"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#8A0808" align="left"><font color="#00FF00"><?php echo $f37; ?></font></td>
</tr>
<tr>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">SP</font></td>
<td bgcolor="#0B3B17" align="left"><font color="#00FF00"><?php echo $f86; ?></font></td>
<td bgcolor="#D7DF01" align="right"><font color="#000000">SP</font></td>
<td bgcolor="#D7DF01" align="left"><font color="#298A08"><?php echo $f87; ?></font></td>
<td bgcolor="#04B404" align="right"><font color="#e0e0e0">SP</font></td>
<td bgcolor="#04B404" align="left"><font color="#81F781"><?php echo $f88; ?></font></td>
<td bgcolor="#DF7401" align="right"><font color="#000000">SP</font></td>
<td bgcolor="#DF7401" align="left"><font color="#00FF00"><?php echo $f89; ?></font></td>
<td bgcolor="#5858FA" align="right"><font color="#e0e0e0">SP</font></td>
<td bgcolor="#5858FA" align="left"><font color="#00FF00"><?php echo $f90; ?></font></td>
<td bgcolor="#8A0808" align="right"><font color="#e0e0e0">SP</font></td>
<td bgcolor="#8A0808" align="left"><font color="#00FF00"><?php echo $f91; ?></font></td>
</tr>
<tr>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">Level</font></td>
<td bgcolor="#0B3B17" align="left"><font color="#00FF00"><?php echo $f21; ?>%</font></td>
<td bgcolor="#D7DF01" align="right"><font color="#000000">Level</font></td>
<td bgcolor="#D7DF01" align="left"><font color="#298A08"><?php echo $f22; ?>%</font></td>
<td bgcolor="#04B404" align="right"><font color="#e0e0e0">Level</font></td>
<td bgcolor="#04B404" align="left"><font color="#81F781"><?php echo $f23; ?>%</font></td>
<td bgcolor="#DF7401" align="right"><font color="#000000">Level</font></td>
<td bgcolor="#DF7401" align="left"><font color="#00FF00"><?php echo $f24; ?>%</font></td>
<td bgcolor="#5858FA" align="right"><font color="#e0e0e0">Level</font></td>
<td bgcolor="#5858FA" align="left"><font color="#00FF00"><?php echo $f25; ?>%</font></td>
<td bgcolor="#8A0808" align="right"><font color="#e0e0e0">Level</font></td>
<td bgcolor="#8A0808" align="left"><font color="#00FF00"><?php echo $f26; ?>%</font></td>
</tr>
<!--
<tr>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">PSI</font></td>
<td bgcolor="#0B3B17" align="left"><font color="#00FF00"><?php echo $f27; ?></font></td>
<td bgcolor="#D7DF01" align="right"><font color="#000000">PSI</font></td>
<td bgcolor="#D7DF01" align="left"><font color="#298A08"><?php echo $f28; ?></font></td>
<td bgcolor="#04B404" align="right"><font color="#e0e0e0">PSI</font></td>
<td bgcolor="#04B404" align="left"><font color="#81F781"><?php echo $f29; ?></font></td>
<td bgcolor="#DF7401" align="right"><font color="#000000">PSI</font></td>
<td bgcolor="#DF7401" align="left"><font color="#00FF00"><?php echo $f30; ?></font></td>
<td bgcolor="#5858FA" align="right"><font color="#e0e0e0">PSI</font></td>
<td bgcolor="#5858FA" align="left"><font color="#00FF00"><?php echo $f31; ?></font></td>
<td bgcolor="#8A0808" align="right"><font color="#e0e0e0">PSI</font></td>
<td bgcolor="#8A0808" align="left"><font color="#00FF00"><?php echo $f32; ?></font></td>
</tr>
-->
</table>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF MILLS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF PAGE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<?php
$i++;
}
?>

View File

@@ -0,0 +1,248 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f1=mysql_result($result,$i,"livstmpr");
$f2=mysql_result($result,$i,"mainspd");
$f3=mysql_result($result,$i,"mill1spd");
$f4=mysql_result($result,$i,"tonshr");
$f5=mysql_result($result,$i,"mccoutput");
$f6=mysql_result($result,$i,"exhaustpr");
$f7=mysql_result($result,$i,"mill1wsp");
$f8=mysql_result($result,$i,"canetot");
$f9=mysql_result($result,$i,"15minavg");
$f10=mysql_result($result,$i,"weightwsp");
$f11=mysql_result($result,$i,"Levelswitch");
$f12=mysql_result($result,$i,"cercoutput");
$f13=mysql_result($result,$i,"crecpv");
$f14=mysql_result($result,$i,"crecsp");
$f15=mysql_result($result,$i,"netablwt");
$f16=mysql_result($result,$i,"vaporpres");
$f17=mysql_result($result,$i,"pan8lvl");
$f18=mysql_result($result,$i,"pan8evapvapor");
$f19=mysql_result($result,$i,"pan7hdrpres");
$f20=mysql_result($result,$i,"pan9exhaust");
$f21=mysql_result($result,$i,"mill1lvl");
$f22=mysql_result($result,$i,"mill2lvl");
$f23=mysql_result($result,$i,"mill3lvl");
$f24=mysql_result($result,$i,"mill4lvl");
$f25=mysql_result($result,$i,"mill5lvl");
$f26=mysql_result($result,$i,"mill6lvl");
$f27=mysql_result($result,$i,"mill1pres");
$f28=mysql_result($result,$i,"mill2pres");
$f29=mysql_result($result,$i,"mill3pres");
$f30=mysql_result($result,$i,"mill4pres");
$f31=mysql_result($result,$i,"mill5pres");
$f32=mysql_result($result,$i,"mill6pres");
$f33=mysql_result($result,$i,"mill2spd");
$f34=mysql_result($result,$i,"mill3spd");
$f35=mysql_result($result,$i,"mill4spd");
$f36=mysql_result($result,$i,"mill5spd");
$f37=mysql_result($result,$i,"mill6spd");
$f38=mysql_result($result,$i,"mill1spd");
$f39=mysql_result($result,$i,"knife1pres");
$f40=mysql_result($result,$i,"knife2pres");
$f41=mysql_result($result,$i,"knife3pres");
$f42=mysql_result($result,$i,"knife1spd");
$f43=mysql_result($result,$i,"knife2spd");
$f44=mysql_result($result,$i,"knife3spd");
$f45=mysql_result($result,$i,"knife1op");
$f46=mysql_result($result,$i,"knife2op");
$f47=mysql_result($result,$i,"knife3op");
$f48=mysql_result($result,$i,"kc1");
$f49=mysql_result($result,$i,"kc2");
$f50=mysql_result($result,$i,"kc3");
$f51=mysql_result($result,$i,"neoutput");
$f52=mysql_result($result,$i,"nescale");
$f53=mysql_result($result,$i,"nesetpoint");
$f54=mysql_result($result,$i,"seoutput");
$f55=mysql_result($result,$i,"sescale");
$f56=mysql_result($result,$i,"sesetpoint");
$f57=mysql_result($result,$i,"woutput");
$f58=mysql_result($result,$i,"wscale");
$f59=mysql_result($result,$i,"wsetpoint");
$f60=mysql_result($result,$i,"latchon");
$f61=mysql_result($result,$i,"runhrstoday");
$f62=mysql_result($result,$i,"prevtons");
$f63=mysql_result($result,$i,"prevtime");
$f64=mysql_result($result,$i,"canetot");
$f65=mysql_result($result,$i,"avgtcd");
$f66=mysql_result($result,$i,"juicetankbit");
$f67=mysql_result($result,$i,"juicelvl");
$f68=mysql_result($result,$i,"nam");
$f69=mysql_result($result,$i,"sam");
$f70=mysql_result($result,$i,"wam");
$f71=mysql_result($result,$i,"tdoutput");
$f72=mysql_result($result,$i,"mill1highlvl");
$f73=mysql_result($result,$i,"mill5highlvl");
$f74=mysql_result($result,$i,"mill6highlvl");
$f75=mysql_result($result,$i,"imbflow");
$f76=mysql_result($result,$i,"imbsp");
$f77=mysql_result($result,$i,"pan8hrdpress");
$f78=mysql_result($result,$i,"mill1automan");
$f79=mysql_result($result,$i,"mill1output");
$f80=mysql_result($result,$i,"mill1automan1");
$f81=mysql_result($result,$i,"losstime");
$f82=mysql_result($result,$i,"tdratio");
$f83=mysql_result($result,$i,"tdsetpoint");
$f84=mysql_result($result,$i,"tdinput");
$f85=mysql_result($result,$i,"tdmg");
$f86=mysql_result($result,$i,"mill1sp");
$f87=mysql_result($result,$i,"mill2sp");
$f88=mysql_result($result,$i,"mill3sp");
$f89=mysql_result($result,$i,"mill4sp");
$f90=mysql_result($result,$i,"mill5sp");
$f91=mysql_result($result,$i,"mill6sp");
$f92=mysql_result($result,$i,"nesetpoint3");
$f93=mysql_result($result,$i,"nespswitch");
$f94=mysql_result($result,$i,"wsetpoint3");
$f95=mysql_result($result,$i,"wspswitch");
$f96=mysql_result($result,$i,"tdratios");
$f97=mysql_result($result,$i,"exhaustam");
$f98=mysql_result($result,$i,"b1pidswitch");
$f99=mysql_result($result,$i,"b1sf");
$f100=mysql_result($result,$i,"b2sf");
$f101=mysql_result($result,$i,"b3sf");
$f102=mysql_result($result,$i,"b4sf");
$f103=mysql_result($result,$i,"b5sf");
$f104=mysql_result($result,$i,"b6sf");
$f105=mysql_result($result,$i,"ttlstmflo");
$f106=mysql_result($result,$i,"tdsetpoint3");
$f107=mysql_result($result,$i,"tdsetpoint3switch");
$f108=mysql_result($result,$i,"stblsp3");
$f109=mysql_result($result,$i,"stblsp3switch");
$f110=mysql_result($result,$i,"dmbeltrunning");
$f111=mysql_result($result,$i,"tdbeltscale");
$f112=mysql_result($result,$i,"tdbeltscaleonoff");
$f113=mysql_result($result,$i,"syrupoverflow");
$f114=mysql_result($result,$i,"molbreclvl");
$f115=mysql_result($result,$i,"syruprcvrlvl");
$f116=mysql_result($result,$i,"amollvl");
?>
<style type="text/css">
.tftable1 {font-family:sans-serif;font-size:12px;color:#fbfbfb;width:100%;border-width: 1px;border-color: #686767;border-collapse: collapse;empty-cells: hide;}
.tftable1 th {font-family:arial;font-size:12px;background-color:#171515;border-width: 1px;padding: 8px;border-style: solid;border-color: #686767;text-align:left;}
.tftable1 tr {background-color:#171515;}
.tftable1 td {font-family:sans-serif;font-size:28px;font-weight:bold;border-width: 2px;padding: 3px;border-style: solid;border-color: #686767;}
.tftable2 {font-family:sans-serif;font-size:10px;color:#fbfbfb;width:100%;border-width: 1px;border-color: #686767;border-collapse: collapse;empty-cells: hide;}
.tftable2 th {font-family:sans-serif;font-size:10px;background-color:#171515;border-width: 1px;padding: 8px;border-style: solid;border-color: #686767;text-align:left;}
.tftable2 tr {background-color:#171515;}
.tftable2 td {font-family:sans-serif;font-size:28px;font-weight:bold;border-width: 2px;padding: 3px;border-style: solid;border-color: #686767;}
.tftable3 {font-family:sans-serif;font-size:12px;color:#fbfbfb;width:100%;border-width: 1px;border-color: #686767;border-collapse: collapse;empty-cells: hide;}
.tftable3 th {font-family:sans-serif;font-size:12px;background-color:#171515;border-width: 1px;padding: 8px;border-style: solid;border-color: #686767;text-align:left;}
.tftable3 tr {background-color:#171515;}
.tftable3 td {font-family:sans-serif;font-size:28px;font-weight:bold;border-width: 2px;padding: 3px;border-style: solid;border-color: #686767;}
.tftable4 {font-family:sans-serif;font-size:12px;color:#fbfbfb;width:100%;border-width: 1px;border-color: #686767;border-collapse: collapse;empty-cells: hide;}
.tftable4 th {font-family:sans-serif;font-size:12px;background-color:#171515;border-width: 1px;padding: 8px;border-style: solid;border-color: #686767;text-align:left;}
.tftable4 tr {background-color:#171515;}
.tftable4 td {font-family:sans-serif;font-size:28px;font-weight:bold;border-width: 1px;padding: 1px;border-style: solid;border-color: #686767;}
</style>
<!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv MILLS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
<table class="tftable2" border="1">
<tr>
<td colspan="2" bgcolor="#0B3B17" align="center" width="12%"><font color="#e0e0e0">E Mill 1</font></td>
<td bgcolor="#D7DF01" align="center" width="8.4%"><font color="#000000">E Mill 2</font></td>
<td bgcolor="#04B404" align="center" width="8.4%"><font color="#e0e0e0">E Mill 3</font></td>
<td bgcolor="#DF7401" align="center" width="8.4%"><font color="#000000">E Mill 4</font></td>
<td bgcolor="#5858FA" align="center" width="8.4%"><font color="#e0e0e0">E Mill 5</font></td>
<td bgcolor="#8A0808" align="center" width="8.4%"><font color="#e0e0e0">E Mill 6</font></td>
<td colspan="2" bgcolor="#0B3B17" align="center" width="12%"><font color="#e0e0e0">W Mill 1</font></td>
<td bgcolor="#D7DF01" align="center" width="8.4%"><font color="#000000">W Mill 2</font></td>
<td bgcolor="#04B404" align="center" width="8.4%"><font color="#e0e0e0">W Mill 3</font></td>
<td bgcolor="#DF7401" align="center" width="8.4%"><font color="#000000">W Mill 4</font></td>
<td bgcolor="#5858FA" align="center" width="8.4%"><font color="#e0e0e0">W Mill 5</font></td>
</tr>
<tr>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#0B3B17" align="center"><font color="#00FF00"><?php echo $f38; ?></font></td>
<td bgcolor="#D7DF01" align="center"><font color="#298A08"><?php echo $f33; ?></font></td>
<td bgcolor="#04B404" align="center"><font color="#81F781"><?php echo $f34; ?></font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"><?php echo $f35; ?></font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"><?php echo $f36; ?></font></td>
<td bgcolor="#8A0808" align="center"><font color="#00FF00"><?php echo $f37; ?></font></td>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#0B3B17" align="center"><font color="#00FF00"><?php echo $f37; ?></font></td>
<td bgcolor="#D7DF01" align="center"><font color="#298A08"><?php echo $f37; ?></font></td>
<td bgcolor="#04B404" align="center"><font color="#00FF00"><?php echo $f37; ?></font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"><?php echo $f35; ?></font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"><?php echo $f36; ?></font></td>
</tr>
<tr>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">SP</font></td>
<td bgcolor="#0B3B17" align="center"><font color="#00FF00"><?php echo $f86; ?></font></td>
<td bgcolor="#D7DF01" align="center"><font color="#298A08"><?php echo $f87; ?></font></td>
<td bgcolor="#04B404" align="center"><font color="#81F781"><?php echo $f88; ?></font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"><?php echo $f89; ?></font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"><?php echo $f90; ?></font></td>
<td bgcolor="#8A0808" align="center"><font color="#00FF00"><?php echo $f91; ?></font></td>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">SP</font></td>
<td bgcolor="#0B3B17" align="center"><font color="#00FF00"><?php echo $f91; ?></font></td>
<td bgcolor="#D7DF01" align="center"><font color="#298A08"><?php echo $f91; ?></font></td>
<td bgcolor="#04B404" align="center"><font color="#00FF00"><?php echo $f91; ?></font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"><?php echo $f89; ?></font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"><?php echo $f90; ?></font></td>
</tr>
<tr>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">Lvl</font></td>
<td bgcolor="#0B3B17" align="center"><font color="#00FF00"><?php echo $f21; ?>%</font></td>
<td bgcolor="#D7DF01" align="center"><font color="#298A08"><?php echo $f22; ?>%</font></td>
<td bgcolor="#04B404" align="center"><font color="#81F781"><?php echo $f23; ?>%</font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"><?php echo $f24; ?>%</font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"><?php echo $f25; ?>%</font></td>
<td bgcolor="#8A0808" align="center"><font color="#00FF00"><?php echo $f26; ?>%</font></td>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">Lvl</font></td>
<td bgcolor="#0B3B17" align="center"><font color="#00FF00"><?php echo $f26; ?>%</font></td>
<td bgcolor="#D7DF01" align="center"><font color="#298A08"><?php echo $f26; ?>%</font></td>
<td bgcolor="#04B404" align="center"><font color="#00FF00"><?php echo $f26; ?>%</font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"><?php echo $f24; ?>%</font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"><?php echo $f25; ?>%</font></td>
</tr>
<!--
<tr>
<td bgcolor="#0B3B17" align="right"><font color="#e0e0e0">PSI</font></td>
<td bgcolor="#0B3B17" align="left"><font color="#00FF00"><?php echo $f27; ?></font></td>
<td bgcolor="#D7DF01" align="right"><font color="#000000">PSI</font></td>
<td bgcolor="#D7DF01" align="left"><font color="#298A08"><?php echo $f28; ?></font></td>
<td bgcolor="#04B404" align="right"><font color="#e0e0e0">PSI</font></td>
<td bgcolor="#04B404" align="left"><font color="#81F781"><?php echo $f29; ?></font></td>
<td bgcolor="#DF7401" align="right"><font color="#000000">PSI</font></td>
<td bgcolor="#DF7401" align="left"><font color="#00FF00"><?php echo $f30; ?></font></td>
<td bgcolor="#5858FA" align="right"><font color="#e0e0e0">PSI</font></td>
<td bgcolor="#5858FA" align="left"><font color="#00FF00"><?php echo $f31; ?></font></td>
<td bgcolor="#8A0808" align="right"><font color="#e0e0e0">PSI</font></td>
<td bgcolor="#8A0808" align="left"><font color="#00FF00"><?php echo $f32; ?></font></td>
</tr>
-->
</table>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF MILLS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF PAGE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<?php
$i++;
}
?>

View File

@@ -0,0 +1,173 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f21=mysql_result($result,$i,"mill1lvl");
$f22=mysql_result($result,$i,"mill2lvl");
$f23=mysql_result($result,$i,"mill3lvl");
$f24=mysql_result($result,$i,"mill4lvl");
$f25=mysql_result($result,$i,"mill5lvl");
$f26=mysql_result($result,$i,"mill6lvl");
$f38=mysql_result($result,$i,"mill1spd");
$f33=mysql_result($result,$i,"mill2spd");
$f34=mysql_result($result,$i,"mill3spd");
$f35=mysql_result($result,$i,"mill4spd");
$f36=mysql_result($result,$i,"mill5spd");
$f37=mysql_result($result,$i,"mill6spd");
$f15=mysql_result($result,$i,"netablwt");
$f2=mysql_result($result,$i,"mainspd");
$f5=mysql_result($result,$i,"mccoutput");
$f79=mysql_result($result,$i,"mill1output");
$f110=mysql_result($result,$i,"dmbeltrunning");
$f111=mysql_result($result,$i,"tdbeltscale");
$f112=mysql_result($result,$i,"tdbeltscaleonoff");
$f113=mysql_result($result,$i,"syrupoverflow");
$f114=mysql_result($result,$i,"molbreclvl");
$f115=mysql_result($result,$i,"syruprcvrlvl");
$f116=mysql_result($result,$i,"amollvl");
$f117=mysql_result($result,$i,"amoloverflow");
$f118=mysql_result($result,$i,"bmoloverflow");
?>
<table width="100%">
<tr>
<td width="50%">
<table class="tftable1">
<tr>
<td width="50%" align="center" colspan="5" border="0"><font color="#00BFFF"><i>BOILERS</i></font></td>
</tr>
</table>
<table class="tftableBOILERS">
<tr height="30">
<td align="center"><font color="#e0e0e0">BOILER 1</font></td>
<td align="center"><font color="#e0e0e0">Steam Flow</font></td>
<td align="right"><font color="#00FF00"><?php echo $f38; ?></font></td>
<td align="left"><font color="#e0e0e0">KPPH</font></td>
</tr>
<tr height="30">
<td align="center"><font color="#e0e0e0">BOILER 2</font></td>
<td align="center"><font color="#e0e0e0">Steam Flow</font></td>
<td align="right"><font color="#00FF00"><?php echo $f38; ?></font></td>
<td align="left"><font color="#e0e0e0">KPPH</font></td>
</tr>
<tr height="30">
<td align="center"><font color="#e0e0e0">BOILER 3</font></td>
<td align="center"><font color="#e0e0e0">Steam Flow</font></td>
<td align="right"><font color="#00FF00"><?php echo $f38; ?></font></td>
<td align="left"><font color="#e0e0e0">KPPH</font></td>
</tr>
<tr height="30">
<td align="center"><font color="#e0e0e0">BOILER 4</font></td>
<td align="center"><font color="#e0e0e0">Steam Flow</font></td>
<td align="right"><font color="#00FF00"><?php echo $f38; ?></font></td>
<td align="left"><font color="#e0e0e0">KPPH</font></td>
</tr>
<tr height="30">
<td align="center"><font color="#e0e0e0">BOILER 5</font></td>
<td align="center"><font color="#e0e0e0">Steam Flow</font></td>
<td align="right"><font color="#00FF00"><?php echo $f38; ?></font></td>
<td align="left"><font color="#e0e0e0">KPPH</font></td>
</tr>
<tr height="30">
<td align="center"><font color="#e0e0e0">BOILER 6</font></td>
<td align="center"><font color="#e0e0e0">Steam Flow</font></td>
<td align="right"><font color="#00FF00"><?php echo $f38; ?></font></td>
<td align="left"><font color="#e0e0e0">KPPH</font></td>
</tr>
<tr height="30">
<td align="center"><font color="#e0e0e0">BOILER 7</font></td>
<td align="center"><font color="#e0e0e0">Steam Flow</font></td>
<td align="right"><font color="#00FF00"><?php echo $f38; ?></font></td>
<td align="left"><font color="#e0e0e0">KPPH</font></td>
</tr>
<tr height="30">
<td align="center"><font color="#e0e0e0">BOILER 8</font></td>
<td align="center"><font color="#e0e0e0">Steam Flow</font></td>
<td align="right"><font color="#00FF00"><?php echo $f38; ?></font></td>
<td align="left"><font color="#e0e0e0">KPPH</font></td>
</tr>
<tr>
</tr>
</table>
</td>
<td width="50%">
<table class="tftable1">
<tr>
<td width="50%" align="center" colspan="6" border="0"><font color="#00BFFF"><i>TANK LEVELS</i></font></td>
</tr>
</table>
<table class="tftableLEVELS">
<tr>
<td align="left"><font color="#e0e0e0">SYRUP RCVR LVL</font></td>
<td width="70" align="right"><font color="#00FF00"></font></td>
<td align="left"><progress max="100" value=""></progress></td>
</tr>
<tr>
<td align="left"><font color="#e0e0e0">SYRUP OVERFLOW LVL</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><progress max="100" value=""></progress></td>
</tr>
<tr>
<td align="left"><font color="#e0e0e0">TOTAL SYRUP LVL</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><progress max="100" value=""></progress></td>
</tr>
<tr>
<td align="left"><font color="#e0e0e0">A MOLASSES RCVR LVL</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><progress max="100" value=""></progress></td>
</tr>
<tr>
<td align="left"><font color="#e0e0e0">A MOLASSES OVERFLOW LVL</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><progress max="100" value=""></progress></td>
</tr>
<tr>
<td align="left"><font color="#e0e0e0">B MOLASSES RCVR LVL</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><progress max="100" value=""></progress></td>
</tr>
<tr>
<td align="left"><font color="#e0e0e0">B MOLASSES OVERFLOW LVL</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><progress max="100" value=""></progress></td>
</tr>
<tr>
<td width="140" colspan="3" bgcolor="#000000" align="center"><font color="#e0e0e0"></font></td>
</tr>
<tr>
</tr>
</table>
</td>
</tr>
</table>
<?php
$i++;
}
?>

View File

@@ -0,0 +1,258 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f4=mysql_result($result,$i,"tonshr");
$f7=mysql_result($result,$i,"mill1wsp");
$f9=mysql_result($result,$i,"15minavg");
$f10=mysql_result($result,$i,"weightwsp");
$f11=mysql_result($result,$i,"Levelswitch");
$f21=mysql_result($result,$i,"mill1lvl");
$f22=mysql_result($result,$i,"mill2lvl");
$f23=mysql_result($result,$i,"mill3lvl");
$f24=mysql_result($result,$i,"mill4lvl");
$f25=mysql_result($result,$i,"mill5lvl");
$f26=mysql_result($result,$i,"mill6lvl");
$f38=mysql_result($result,$i,"mill1spd");
$f33=mysql_result($result,$i,"mill2spd");
$f34=mysql_result($result,$i,"mill3spd");
$f35=mysql_result($result,$i,"mill4spd");
$f36=mysql_result($result,$i,"mill5spd");
$f37=mysql_result($result,$i,"mill6spd");
$f15=mysql_result($result,$i,"netablwt");
$f2=mysql_result($result,$i,"mainspd");
$f5=mysql_result($result,$i,"mccoutput");
$f57=mysql_result($result,$i,"imb5flow");
$f58=mysql_result($result,$i,"imb5sp");
$f75=mysql_result($result,$i,"imbflow");
$f76=mysql_result($result,$i,"imbsp");
$f79=mysql_result($result,$i,"mill1output");
$f80=mysql_result($result,$i,"mill1automan1");
$f110=mysql_result($result,$i,"dmbeltrunning");
$f111=mysql_result($result,$i,"tdbeltscale");
$f112=mysql_result($result,$i,"tdbeltscaleonoff");
$f113=mysql_result($result,$i,"syrupoverflow");
$f114=mysql_result($result,$i,"molbreclvl");
$f115=mysql_result($result,$i,"syruprcvrlvl");
$f116=mysql_result($result,$i,"amollvl");
$f117=mysql_result($result,$i,"amoloverflow");
$f118=mysql_result($result,$i,"bmoloverflow");
?>
<table width="100%">
<tr>
<td width="50%">
<table class="tftable2">
<tr>
<td width="50%" align="center" colspan="5" border="0"><font color="#00BFFF"><i>EAST MILL TANDEM</i></font></td>
</tr>
</table>
<table class="tftableEAST">
<tr height="30">
<td bgcolor="#0B3B17" align="center"><font color="#e0e0e0">1</font></td>
<td bgcolor="#0B3B17" align="center"><font color="#e0e0e0">Level</font></td>
<td width="76" bgcolor="#0B3B17" align="center"><font color="#00FF00"><?php echo $f21; ?>%</font></td>
<td width="130" bgcolor="#0B3B17" align="left"><progress id="progressmills" data-label="<?php echo $f21; ?>%" max="100" value="<?php echo $f21; ?>"></progress></td>
<td width="70" bgcolor="#0B3B17" align="center"><font color="#e0e0e0">RPM</font></td>
<td width="70" bgcolor="#0B3B17" align="left"><font color="#00FF00"><?php echo $f38; ?></font></td>
<td align="left" colspan="2"><font color="#e0e0e0">MCC FPM</font></td>
<td width="50" align="right"><font color="#00FF00"><?php echo $f2; ?></font></td>
<td align="left"><font color="#e0e0e0">FPM</font></td>
</tr>
<tr>
<td bgcolor="#D7DF01" align="center"><font color="#000000">2</font></td>
<td bgcolor="#D7DF01" align="center"><font color="#000000">Level</font></td>
<td bgcolor="#D7DF01" align="center"><font color="#000000"><?php echo $f22; ?>%</font></td>
<td bgcolor="#D7DF01" align="left"><progress id="progressmills" data-label="<?php echo $f22; ?>%" max="100" value="<?php echo $f22; ?>"></progress></td>
<td bgcolor="#D7DF01" align="center"><font color="#000000">RPM</font></td>
<td bgcolor="#D7DF01" align="left"><font color="#000000"><?php echo $f33; ?></font></td>
<td align="left" colspan="2"><font color="#e0e0e0">MCC Output</font></td>
<td align="right"><font color="#00FF00"><?php echo $f5; ?></font></td>
<td align="left"><font color="#e0e0e0">%</font></td>
</tr>
<tr>
<td bgcolor="#04B404" align="center"><font color="#e0e0e0">3</font></td>
<td bgcolor="#04B404" align="center"><font color="#e0e0e0">Level</font></td>
<td bgcolor="#04B404" align="center"><font color="#00FF00"><?php echo $f23; ?>%</font></td>
<td bgcolor="#04B404" align="left"><progress id="progressmills" data-label="<?php echo $f23; ?>%" max="100" value="<?php echo $f23; ?>"></progress></td>
<td bgcolor="#04B404" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#04B404" align="left"><font color="#00FF00"><?php echo $f34; ?></font></td>
<td align="left" colspan="2"><font color="#e0e0e0">MCC Tons</font></td>
<td align="right"><font color="#00FF00"><?php echo $f15; ?></font></td>
<td align="left"><font color="#e0e0e0">Tons</font></td>
</tr>
<tr>
<td bgcolor="#DF7401" align="center"><font color="#e0e0e0">4</font></td>
<td bgcolor="#DF7401" align="center"><font color="#e0e0e0">Level</font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"><?php echo $f24; ?>%</font></td>
<td bgcolor="#DF7401" align="left"><progress id="progressmills" data-label="<?php echo $f24; ?>%" max="100" value="<?php echo $f24; ?>"></progress></td>
<td bgcolor="#DF7401" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#DF7401" align="left"><font color="#00FF00"><?php echo $f35; ?></font></td>
<td align="left"><font color="#e0e0e0">Mill 1 SP</font></td><?php
if ($f80 == 1)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#0B3B17\"><font color=\"#e0e0e0\">A</font></td>";
if ($f80 == 0)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#8A0808\"><font color=\"#e0e0e0\">M</font></td>";
?>
<?php
if ($f11 == 1)
echo "<td align=\"right\"><font color=\"00FF00\"><b> $f10 </b></font></td>";
if ($f11 == 0)
echo "<td align=\"right\"><font color=\"00FF00\"><b> $f7 </b></font></td>";
?>
<?php
if ($f11 == 1)
echo "<td><font color=\"#e0e0e0\">Tons/Hr</font></td>";
if ($f11 == 0)
echo "<td><font color=\"#e0e0e0\">%</font></td>";
?>
</tr>
<tr>
<td bgcolor="#5858FA" align="center"><font color="#e0e0e0">5</font></td>
<td bgcolor="#5858FA" align="center"><font color="#e0e0e0">Level</font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"><?php echo $f25; ?>%</font></td>
<td bgcolor="#5858FA" align="left"><progress id="progressmills" data-label="<?php echo $f25; ?>%" max="100" value="<?php echo $f25; ?>"></progress></td>
<td bgcolor="#5858FA" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#5858FA" align="left"><font color="#00FF00"><?php echo $f36; ?></font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Tons Per Hour</font></td>
<td align="right"><font color="#00FF00"><?php echo $f4; ?></font></td>
<td align="left"><font color="#e0e0e0">TPH</font></td>
</tr>
<tr>
<td bgcolor="#8A0808" align="center"><font color="#e0e0e0">6</font></td>
<td bgcolor="#8A0808" align="center"><font color="#e0e0e0">Level</font></td>
<td bgcolor="#8A0808" align="center"><font color="#00FF00"><?php echo $f26; ?>%</font></td>
<td bgcolor="#8A0808" align="left"><progress id="progressmills" data-label="<?php echo $f26; ?>%" max="100" value="<?php echo $f26; ?>"></progress></td>
<td bgcolor="#8A0808" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#8A0808" align="left"><font color="#00FF00"><?php echo $f37; ?></font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Avg Tons Per Hour</font></td>
<td align="right"><font color="#00FF00"><?php echo $f9; ?></font></td>
<td align="left"><font color="#e0e0e0">TPH</font></td>
</tr>
<tr>
<td bgcolor="#2E2E2E" colspan="4"><font color="#e0e0e0">East Imibition 6 Flow:</font></td>
<td bgcolor="#2E2E2E" align="right" id="lsp"><font color="00FF00"><b><?php echo $f75; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">GPM</font></td>
<td colspan="2"><font color="#e0e0e0">East Imibition 6 SP:</font></td>
<td align="right" id="lsp"><font color="00FF00"><b><?php echo $f76; ?></b></font></td>
<td><font color="#e0e0e0">GPM</font></td>
</tr>
<tr>
<td bgcolor="#2E2E2E" colspan="4"><font color="#e0e0e0">East Imibition 5 Flow:</font></td>
<td bgcolor="#2E2E2E" align="right" id="lsp"><font color="00FF00"><b><?php echo $f57; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">GPM</font></td>
<td colspan="2"><font color="#e0e0e0">East Imibition 5 SP:</font></td>
<td align="right" id="lsp"><font color="00FF00"><b><?php echo $f58; ?></b></font></td>
<td><font color="#e0e0e0">GPM</font></td>
</tr>
</table>
</td>
<td width="50%">
<table class="tftable2">
<tr>
<td width="50%" align="center" colspan="6" border="0"><font color="#00BFFF"><i>WEST MILL TANDEM</i></font></td>
</tr>
</table>
<table class="tftableWEST">
<tr>
<td bgcolor="#0B3B17" align="center"><font color="#e0e0e0">1</font></td>
<td bgcolor="#0B3B17" align="center"><font color="#e0e0e0">Level</font></td>
<td width="76" bgcolor="#0B3B17" align="center"><font color="#00FF00"></font></td>
<td width="130" bgcolor="#0B3B17" align="left"><progress id="progressmills" max="100" value=""></progress></td>
<td width="80" bgcolor="#0B3B17" align="center"><font color="#e0e0e0">RPM</font></td>
<td width="70" bgcolor="#0B3B17" align="left"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">MCC FPM</font></td>
<td width="50" align="right"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">FPM</font></td>
</tr>
<tr>
<td bgcolor="#D7DF01" align="center"><font color="#000000">2</font></td>
<td bgcolor="#D7DF01" align="center"><font color="#000000">Level</font></td>
<td bgcolor="#D7DF01" align="center"><font color="#000000"></font></td>
<td bgcolor="#D7DF01" align="left"><progress id="progressmills" max="100" value=""></progress></td>
<td bgcolor="#D7DF01" align="center"><font color="#000000">RPM</font></td>
<td bgcolor="#D7DF01" align="left"><font color="#000000"></font></td>
<td align="left"><font color="#e0e0e0">MCC Output</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">%</font></td>
</tr>
<tr>
<td bgcolor="#04B404" align="center"><font color="#e0e0e0">3</font></td>
<td bgcolor="#04B404" align="center"><font color="#e0e0e0">Level</font></td>
<td bgcolor="#04B404" align="center"><font color="#00FF00"></font></td>
<td bgcolor="#04B404" align="left"><progress id="progressmills" max="100" value=""></progress></td>
<td bgcolor="#04B404" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#04B404" align="left"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">MCC Tons</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">Tons</font></td>
</tr>
<tr>
<td bgcolor="#DF7401" align="center"><font color="#e0e0e0">4</font></td>
<td bgcolor="#DF7401" align="center"><font color="#e0e0e0">Level</font></td>
<td bgcolor="#DF7401" align="center"><font color="#00FF00"></font></td>
<td bgcolor="#DF7401" align="left"><progress id="progressmills" max="100" value=""></progress></td>
<td bgcolor="#DF7401" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#DF7401" align="left"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">Mill 1 SP</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">%</font></td>
</tr>
<tr>
<td bgcolor="#5858FA" align="center"><font color="#e0e0e0">5</font></td>
<td bgcolor="#5858FA" align="center"><font color="#e0e0e0">Level</font></td>
<td bgcolor="#5858FA" align="center"><font color="#00FF00"></font></td>
<td bgcolor="#5858FA" align="left"><progress id="progressmills" max="100" value=""></progress></td>
<td bgcolor="#5858FA" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#5858FA" align="left"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">Tons Per Hour</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">TPH</font></td>
</tr>
<tr>
<td bgcolor="#8A0808" colspan="6" align="center"><font color="#e0e0e0"></font></td>
<td align="left"><font color="#e0e0e0">Avg Tons Per Hour</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">TPH</font></td>
</tr>
<tr>
<td bgcolor="#2E2E2E" colspan="4"><font color="#e0e0e0">West Imibition 5 Flow:</font></td>
<td bgcolor="#2E2E2E" align="right" id="lsp"><font color="00FF00"><b></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">GPM</font></td>
<td colspan="1"><font color="#e0e0e0">West Imibition 5 SP:</font></td>
<td align="right" id="lsp"><font color="00FF00"><b></b></font></td>
<td><font color="#e0e0e0">GPM</font></td>
</tr>
<tr>
<td colspan="9"><font color="#e0e0e0"></font></td>
</tr>
</table>
</td>
</tr>
</table>
<?php
$i++;
}
?>

View File

@@ -0,0 +1,180 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f21=mysql_result($result,$i,"mill1lvl");
$f22=mysql_result($result,$i,"mill2lvl");
$f23=mysql_result($result,$i,"mill3lvl");
$f24=mysql_result($result,$i,"mill4lvl");
$f25=mysql_result($result,$i,"mill5lvl");
$f26=mysql_result($result,$i,"mill6lvl");
$f38=mysql_result($result,$i,"mill1spd");
$f33=mysql_result($result,$i,"mill2spd");
$f34=mysql_result($result,$i,"mill3spd");
$f35=mysql_result($result,$i,"mill4spd");
$f36=mysql_result($result,$i,"mill5spd");
$f37=mysql_result($result,$i,"mill6spd");
$f15=mysql_result($result,$i,"netablwt");
$f2=mysql_result($result,$i,"mainspd");
$f5=mysql_result($result,$i,"mccoutput");
$f79=mysql_result($result,$i,"mill1output");
$f110=mysql_result($result,$i,"dmbeltrunning");
$f111=mysql_result($result,$i,"tdbeltscale");
$f112=mysql_result($result,$i,"tdbeltscaleonoff");
$f113=mysql_result($result,$i,"syrupoverflow");
$f114=mysql_result($result,$i,"molbreclvl");
$f115=mysql_result($result,$i,"syruprcvrlvl");
$f116=mysql_result($result,$i,"amollvl");
$f117=mysql_result($result,$i,"amoloverflow");
$f118=mysql_result($result,$i,"bmoloverflow");
?>
<table width="100%">
<tr>
<td width="50%">
<table class="tftable1">
<tr>
<td width="50%" align="center" colspan="5" border="0"><font color="#00BFFF"><i>EAST MILL TANDEM</i></font></td>
</tr>
</table>
<table class="tftableEAST">
<tr height="30">
<td bgcolor="#0B3B17" align="center"><font color="#e0e0e0">Mill 1 LVL</font></td>
<td width="70" bgcolor="#0B3B17" align="left"><font color="#00FF00"><?php echo $f21; ?>%</font></td>
<td width="180" bgcolor="#0B3B17" align="left"><progress max="100" value="<?php echo $f21; ?>"></progress></td>
<td width="80" bgcolor="#0B3B17" align="center"><font color="#e0e0e0">RPM</font></td>
<td width="70" bgcolor="#0B3B17" align="left"><font color="#00FF00"><?php echo $f38; ?></font></td>
<td align="left"><font color="#e0e0e0">MCC FPM</font></td>
<td width="50" align="right"><font color="#00FF00"><?php echo $f2; ?></font></td>
<td align="left"><font color="#e0e0e0">FPM</font></td>
</tr>
<tr>
<td bgcolor="#D7DF01" align="center"><font color="#000000">Mill 2 LVL</font></td>
<td bgcolor="#D7DF01" align="left"><font color="#000000"><?php echo $f22; ?>%</font></td>
<td bgcolor="#D7DF01" align="left"><progress max="100" value="<?php echo $f22; ?>"></progress></td>
<td bgcolor="#D7DF01" align="center"><font color="#000000">RPM</font></td>
<td bgcolor="#D7DF01" align="left"><font color="#000000"><?php echo $f33; ?></font></td>
<td align="left"><font color="#e0e0e0">MCC Output</font></td>
<td align="right"><font color="#00FF00"><?php echo $f5; ?></font></td>
<td align="left"><font color="#e0e0e0">%</font></td>
</tr>
<tr>
<td bgcolor="#04B404" align="center"><font color="#e0e0e0">Mill 3 LVL</font></td>
<td bgcolor="#04B404" align="left"><font color="#00FF00"><?php echo $f23; ?>%</font></td>
<td bgcolor="#04B404" align="left"><progress max="100" value="<?php echo $f23; ?>"></progress></td>
<td bgcolor="#04B404" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#04B404" align="left"><font color="#00FF00"><?php echo $f34; ?></font></td>
<td align="left"><font color="#e0e0e0">MCC Tons</font></td>
<td align="right"><font color="#00FF00"><?php echo $f15; ?></font></td>
<td align="left"><font color="#e0e0e0">Tons</font></td>
</tr>
<tr>
<td bgcolor="#DF7401" align="center"><font color="#e0e0e0">Mill 4 LVL</font></td>
<td bgcolor="#DF7401" align="left"><font color="#00FF00"><?php echo $f24; ?>%</font></td>
<td bgcolor="#DF7401" align="left"><progress max="100" value="<?php echo $f24; ?>"></progress></td>
<td bgcolor="#DF7401" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#DF7401" align="left"><font color="#00FF00"><?php echo $f35; ?></font></td>
</tr>
<tr>
<td bgcolor="#5858FA" align="center"><font color="#e0e0e0">Mill 5 LVL</font></td>
<td bgcolor="#5858FA" align="left"><font color="#00FF00"><?php echo $f25; ?>%</font></td>
<td bgcolor="#5858FA" align="left"><progress max="100" value="<?php echo $f25; ?>"></progress></td>
<td bgcolor="#5858FA" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#5858FA" align="left"><font color="#00FF00"><?php echo $f36; ?></font></td>
</tr>
<tr>
<td bgcolor="#8A0808" align="center"><font color="#e0e0e0">Mill 6 LVL</font></td>
<td bgcolor="#8A0808" align="left"><font color="#00FF00"><?php echo $f26; ?>%</font></td>
<td bgcolor="#8A0808" align="left"><progress max="100" value="<?php echo $f26; ?>"></progress></td>
<td bgcolor="#8A0808" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#8A0808" align="left"><font color="#00FF00"><?php echo $f37; ?></font></td>
</tr>
<tr>
</tr>
</table>
</td>
<td width="50%">
<table class="tftable1">
<tr>
<td width="50%" align="center" colspan="6" border="0"><font color="#00BFFF"><i>WEST MILL TANDEM</i></font></td>
</tr>
</table>
<table class="tftableWEST">
<tr>
<td bgcolor="#0B3B17" align="center"><font color="#e0e0e0">Mill 1 LVL</font></td>
<td width="70" bgcolor="#0B3B17" align="left"><font color="#00FF00"></font></td>
<td width="180" bgcolor="#0B3B17" align="left"><progress max="100" value=""></progress></td>
<td width="80" bgcolor="#0B3B17" align="center"><font color="#e0e0e0">RPM</font></td>
<td width="70" bgcolor="#0B3B17" align="left"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">MCC FPM</font></td>
<td width="50" align="right"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">FPM</font></td>
</tr>
<tr>
<td bgcolor="#D7DF01" align="center"><font color="#000000">Mill 2 LVL</font></td>
<td bgcolor="#D7DF01" align="left"><font color="#000000"></font></td>
<td bgcolor="#D7DF01" align="left"><progress max="100" value=""></progress></td>
<td bgcolor="#D7DF01" align="center"><font color="#000000">RPM</font></td>
<td bgcolor="#D7DF01" align="left"><font color="#000000"></font></td>
<td align="left"><font color="#e0e0e0">MCC Output</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">%</font></td>
</tr>
<tr>
<td bgcolor="#04B404" align="center"><font color="#e0e0e0">Mill 3 LVL</font></td>
<td bgcolor="#04B404" align="left"><font color="#00FF00"></font></td>
<td bgcolor="#04B404" align="left"><progress max="100" value=""></progress></td>
<td bgcolor="#04B404" align="center"><font color="#e0e0e0">RPM</font></td>
<td bgcolor="#04B404" align="left"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">MCC Tons</font></td>
<td align="right"><font color="#00FF00"></font></td>
<td align="left"><font color="#e0e0e0">Tons</font></td>
</tr>
<tr>
<td width="140" bgcolor="#DF7401" align="center"><font color="#e0e0e0">Mill 4 LVL</font></td>
<td width="70" bgcolor="#DF7401" align="left"><font color="#00FF00"></font></td>
<td width="200" bgcolor="#DF7401" align="left"><progress max="100" value=""></progress></td>
<td width="70" bgcolor="#DF7401" align="center"><font color="#e0e0e0">RPM</font></td>
<td width="70" bgcolor="#DF7401" align="left"><font color="#00FF00"></font></td>
</tr>
<tr>
<td width="140" bgcolor="#5858FA" align="center"><font color="#e0e0e0">Mill 5 LVL</font></td>
<td width="70" bgcolor="#5858FA" align="left"><font color="#00FF00"></font></td>
<td width="200" bgcolor="#5858FA" align="left"><progress max="100" value=""></progress></td>
<td width="70" bgcolor="#5858FA" align="center"><font color="#e0e0e0">RPM</font></td>
<td width="70" bgcolor="#5858FA" align="left"><font color="#00FF00"></font></td>
</tr>
<tr>
<td width="140" colspan="5" height="30" bgcolor="#000000" align="center"><font color="#e0e0e0"></font></td>
</tr>
<tr>
</tr>
</table>
</td>
</tr>
</table>
<?php
$i++;
}
?>

View File

@@ -0,0 +1,165 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f1=mysql_result($result,$i,"livstmpr");
$f2=mysql_result($result,$i,"mainspd");
$f3=mysql_result($result,$i,"mill1spd");
$f4=mysql_result($result,$i,"tonshr");
$f5=mysql_result($result,$i,"mccoutput");
$f6=mysql_result($result,$i,"exhaustpr");
$f7=mysql_result($result,$i,"mill1wsp");
$f8=mysql_result($result,$i,"canetot");
$f9=mysql_result($result,$i,"15minavg");
$f10=mysql_result($result,$i,"weightwsp");
$f11=mysql_result($result,$i,"Levelswitch");
$f12=mysql_result($result,$i,"cercoutput");
$f13=mysql_result($result,$i,"crecpv");
$f14=mysql_result($result,$i,"crecsp");
$f15=mysql_result($result,$i,"netablwt");
$f16=mysql_result($result,$i,"vaporpres");
$f17=mysql_result($result,$i,"pan8lvl");
$f18=mysql_result($result,$i,"pan8evapvapor");
$f19=mysql_result($result,$i,"pan7hdrpres");
$f20=mysql_result($result,$i,"pan9exhaust");
$f21=mysql_result($result,$i,"mill1lvl");
$f22=mysql_result($result,$i,"mill2lvl");
$f23=mysql_result($result,$i,"mill3lvl");
$f24=mysql_result($result,$i,"mill4lvl");
$f25=mysql_result($result,$i,"mill5lvl");
$f26=mysql_result($result,$i,"mill6lvl");
$f27=mysql_result($result,$i,"mill1pres");
$f28=mysql_result($result,$i,"mill2pres");
$f29=mysql_result($result,$i,"mill3pres");
$f30=mysql_result($result,$i,"mill4pres");
$f31=mysql_result($result,$i,"mill5pres");
$f32=mysql_result($result,$i,"mill6pres");
$f33=mysql_result($result,$i,"mill2spd");
$f34=mysql_result($result,$i,"mill3spd");
$f35=mysql_result($result,$i,"mill4spd");
$f36=mysql_result($result,$i,"mill5spd");
$f37=mysql_result($result,$i,"mill6spd");
$f38=mysql_result($result,$i,"mill1spd");
$f39=mysql_result($result,$i,"knife1pres");
$f40=mysql_result($result,$i,"knife2pres");
$f41=mysql_result($result,$i,"knife3pres");
$f42=mysql_result($result,$i,"knife1spd");
$f43=mysql_result($result,$i,"knife2spd");
$f44=mysql_result($result,$i,"knife3spd");
$f45=mysql_result($result,$i,"knife1op");
$f46=mysql_result($result,$i,"knife2op");
$f47=mysql_result($result,$i,"knife3op");
$f48=mysql_result($result,$i,"kc1");
$f49=mysql_result($result,$i,"kc2");
$f50=mysql_result($result,$i,"kc3");
$f51=mysql_result($result,$i,"neoutput");
$f52=mysql_result($result,$i,"nescale");
$f53=mysql_result($result,$i,"nesetpoint");
$f54=mysql_result($result,$i,"seoutput");
$f55=mysql_result($result,$i,"sescale");
$f56=mysql_result($result,$i,"sesetpoint");
$f57=mysql_result($result,$i,"woutput");
$f58=mysql_result($result,$i,"wscale");
$f59=mysql_result($result,$i,"wsetpoint");
$f60=mysql_result($result,$i,"latchon");
$f61=mysql_result($result,$i,"runhrstoday");
$f62=mysql_result($result,$i,"prevtons");
$f63=mysql_result($result,$i,"prevtime");
$f64=mysql_result($result,$i,"canetot");
$f65=mysql_result($result,$i,"avgtcd");
$f66=mysql_result($result,$i,"juicetankbit");
$f67=mysql_result($result,$i,"juicelvl");
$f68=mysql_result($result,$i,"nam");
$f69=mysql_result($result,$i,"sam");
$f70=mysql_result($result,$i,"wam");
$f71=mysql_result($result,$i,"tdoutput");
$f72=mysql_result($result,$i,"mill1highlvl");
$f73=mysql_result($result,$i,"mill5highlvl");
$f74=mysql_result($result,$i,"mill6highlvl");
$f75=mysql_result($result,$i,"imbflow");
$f76=mysql_result($result,$i,"imbsp");
$f77=mysql_result($result,$i,"pan8hrdpress");
$f78=mysql_result($result,$i,"mill1automan");
$f79=mysql_result($result,$i,"mill1output");
$f80=mysql_result($result,$i,"mill1automan1");
$f81=mysql_result($result,$i,"losstime");
$f82=mysql_result($result,$i,"tdratio");
$f83=mysql_result($result,$i,"tdsetpoint");
$f84=mysql_result($result,$i,"tdinput");
$f85=mysql_result($result,$i,"tdmg");
$f86=mysql_result($result,$i,"mill1sp");
$f87=mysql_result($result,$i,"mill2sp");
$f88=mysql_result($result,$i,"mill3sp");
$f89=mysql_result($result,$i,"mill4sp");
$f90=mysql_result($result,$i,"mill5sp");
$f91=mysql_result($result,$i,"mill6sp");
$f92=mysql_result($result,$i,"nesetpoint3");
$f93=mysql_result($result,$i,"nespswitch");
$f94=mysql_result($result,$i,"wsetpoint3");
$f95=mysql_result($result,$i,"wspswitch");
$f96=mysql_result($result,$i,"tdratios");
$f97=mysql_result($result,$i,"exhaustam");
$f98=mysql_result($result,$i,"b1pidswitch");
$f99=mysql_result($result,$i,"b1sf");
$f100=mysql_result($result,$i,"b2sf");
$f101=mysql_result($result,$i,"b3sf");
$f102=mysql_result($result,$i,"b4sf");
$f103=mysql_result($result,$i,"b5sf");
$f104=mysql_result($result,$i,"b6sf");
$f105=mysql_result($result,$i,"ttlstmflo");
$f106=mysql_result($result,$i,"tdsetpoint3");
$f107=mysql_result($result,$i,"tdsetpoint3switch");
$f108=mysql_result($result,$i,"stblsp3");
$f109=mysql_result($result,$i,"stblsp3switch");
$f110=mysql_result($result,$i,"dmbeltrunning");
$f111=mysql_result($result,$i,"tdbeltscale");
$f112=mysql_result($result,$i,"tdbeltscaleonoff");
$f113=mysql_result($result,$i,"syrupoverflow");
$f114=mysql_result($result,$i,"molbreclvl");
$f115=mysql_result($result,$i,"syruprcvrlvl");
$f116=mysql_result($result,$i,"amollvl");
$f117=mysql_result($result,$i,"amoloverflow");
$f118=mysql_result($result,$i,"bmoloverflow");
?>
<table class="tftable1">
<tr>
<td bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">Syrup RCVR</font></td>
<td bgcolor="#2E2E2E" align="left"><font color="#00FF00"><?php echo $f115; ?>%</font></td>
<td bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">Syrup Overflow</font></td>
<td bgcolor="#2E2E2E" align="left"><font color="#00FF00"><?php echo $f113; ?>%</font></td>
<td bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">Total Syrup</font></td>
<td bgcolor="#2E2E2E" align="left"><font color="#00FF00"><?php echo round(($f113*.388)+($f115*.612),0); ?>%</font></td>
<td bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">A RCVR</font></td>
<td bgcolor="#2E2E2E" align="left"><font color="#00FF00"><?php echo $f116; ?>%</font></td>
<td bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">A Overflow</font></td>
<td bgcolor="#2E2E2E" align="left"><font color="#00FF00"><?php echo $f117; ?>%</font></td>
<td bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">B RCVR</font></td>
<td bgcolor="#2E2E2E" align="left"><font color="#00FF00"><?php echo $f114; ?>%</font></td>
<td bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">B Overflow</font></td>
<td bgcolor="#2E2E2E" align="left"><font color="#00FF00"><?php echo $f118; ?>%</font></td>
</tr>
</table>
<?php
$i++;
}
?>

View File

@@ -0,0 +1,80 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f66=mysql_result($result,$i,"juicetankbit");
$f67=mysql_result($result,$i,"juicelvl");
$f110=mysql_result($result,$i,"dmbeltrunning");
$f111=mysql_result($result,$i,"tdbeltscale");
$f112=mysql_result($result,$i,"tdbeltscaleonoff");
$f113=mysql_result($result,$i,"syrupoverflow");
$f114=mysql_result($result,$i,"molbreclvl");
$f115=mysql_result($result,$i,"syruprcvrlvl");
$f116=mysql_result($result,$i,"amollvl");
$f117=mysql_result($result,$i,"amoloverflow");
$f118=mysql_result($result,$i,"bmoloverflow");
?>
<table class="tftable2">
<tr>
<td width="1000%" align="center" colspan="6" border="0"><font color="#00BFFF"><i>TANK LEVELS</i></font></td>
</tr>
</table>
<table class="tftable1">
<tr>
<?php
if ($f66 == 0)
echo "<td colspan=\"2\" align=\"center\"><font color=\"#e0e0e0\">One Juice Tank</font></td>";
if ($f66 == 1)
echo "<td colspan=\"2\" align=\"center\"><font color=\"#e0e0e0\">Two Juice Tanks</font></td>";
?>
<td colspan="2" bgcolor="#2E2E2E" align="center"><font color="#e0e0e0" >Syrup RCVR</font></td>
<td colspan="2" align="center"><font color="#e0e0e0">Syrup Overflow</font></td>
<td colspan="2" bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">Total Syrup</font></td>
<td colspan="2" align="center"><font color="#e0e0e0">A RCVR</font></td>
<td colspan="2" bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">A Overflow</font></td>
<td colspan="2" align="center"><font color="#e0e0e0">B RCVR</font></td>
<td colspan="2" bgcolor="#2E2E2E" align="center"><font color="#e0e0e0">B Overflow</font></td>
</tr>
<tr>
<td align="right"><font color="00FF00"><b><?php echo $f67; ?>%</b></font></td>
<td align="left"><progress id="progresstanks" data-label="<?php echo $f67; ?>%" max="100" value="<?php echo $f67; ?>"></progress></td>
<td bgcolor="#2E2E2E" align="left"><font color="#00FF00"><?php echo $f115; ?>%</font></td>
<td bgcolor="#2E2E2E" align="left"><progress id="progresstanks" data-label="<?php echo $f115; ?>%" max="100" value="<?php echo $f115; ?>"></progress></td>
<td align="left"><font color="#00FF00"><?php echo $f113; ?>%</font></td>
<td align="left"><progress id="progresstanks" data-label="<?php echo $f113; ?>%" max="100" value="<?php echo $f113; ?>"></progress></td>
<td bgcolor="#2E2E2E" align="left"><font color="#00FF00"><?php echo round(($f113*.388)+($f115*.612),0); ?>%</font></td>
<td bgcolor="#2E2E2E" align="left"><progress id="progresstanks" data-label="<?php echo round(($f113*.388)+($f115*.612),0); ?>%" max="100" value="<?php echo round(($f113*.388)+($f115*.612),0); ?>"></meter></td>
<td align="left"><font color="#00FF00"><?php echo $f116; ?>%</font></td>
<td align="left"><progress id="progresstanks" data-label="<?php echo $f116; ?>%" max="100" value="<?php echo $f116; ?>"></progress></td>
<td bgcolor="#2E2E2E" align="left"><font color="#00FF00"><?php echo $f117; ?>%</font></td>
<td bgcolor="#2E2E2E" align="left"><progress id="progresstanks" data-label="<?php echo $f117; ?>%" max="100" value="<?php echo $f117; ?>"></progress></td>
<td align="left"><font color="#00FF00"><?php echo $f114; ?>%</font></td>
<td align="left"><progress id="progresstanks" data-label="<?php echo $f114; ?>%" max="100" value="<?php echo $f114; ?>"></progress></td>
<td bgcolor="#2E2E2E" align="left"><font color="#00FF00"><?php echo $f118; ?>%</font></td>
<td bgcolor="#2E2E2E" align="left"><progress id="progresstanks" data-label="<?php echo $f118; ?>%" max="100" value="<?php echo $f118; ?>"></progress></td>
</tr>
</table>
<?php
$i++;
}
?>

View File

@@ -0,0 +1,96 @@
<?php
include("../../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['00046']),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['00074']),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['00192'] >= 0) && ($ID['00192'] <= 9))
$color = "#FF0000";
else if (($ID['00192'] >= 6) && ($ID['00192'] <= 13))
$color = "#FFFF00";
else if ($ID['00192'] >= 14)
$color = "#00FF00";
echo "<td bgcolor=\"#2E2E2E\" align=\"right\" width=\"75\"><font color=\"$color\"><b>". $ID['00192'] ."</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
?>

View File

@@ -0,0 +1,194 @@
<?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($ID['00242']) ? (int) $ID['00242'] : null, 0);
$exhaustPressure = module_numeric($ID['00244'] ?? null);
if ($exhaustPressure === null) {
$exhaustPill = module_status('No Signal', 'module-pill--alert');
} elseif ($exhaustPressure < 6) {
$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',
'steam' => ['value' => module_numeric($ID['00252'] ?? null), 'capacity' => 110],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($value['LT_102'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($value['FT_103'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($value['PT_105'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($value['SIT_104'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
[
'label' => 'Boiler 2',
'steam' => ['value' => module_numeric($ID['00256'] ?? null), 'capacity' => 105],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($value['LT_202'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($value['FT_203'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($value['PT_205'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($value['SIT_204'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
[
'label' => 'Boiler 3',
'steam' => ['value' => module_numeric($value['FT_301'] ?? null), 'capacity' => 100],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($value['LT_302'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($value['FT_303'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($value['PT_305'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($value['SIT_304'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
[
'label' => 'Boiler 4',
'steam' => ['value' => module_numeric($value['FT_401'] ?? null), 'capacity' => 60],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($value['LT_402'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($value['FT_403'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($value['PT_405'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($value['SIT_404'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
[
'label' => 'Boiler 5',
'steam' => ['value' => module_numeric($value['FT_501'] ?? null), 'capacity' => 55],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($value['LT_502'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($value['FT_503'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($value['PT_505'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($value['SIT_504'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
[
'label' => 'Boiler 6',
'steam' => ['value' => module_numeric($value['FT_601'] ?? null), 'capacity' => 90],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($value['LT_602'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($value['FT_603'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($value['PT_605'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($value['SIT_604'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
[
'label' => 'Boiler 7',
'steam' => ['value' => module_numeric($ID['00046'] ?? null), 'capacity' => 270],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($ID['00004'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($ID['00014'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($ID['00010'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($ID['00020'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
[
'label' => 'Boiler 8',
'steam' => ['value' => module_numeric($ID['00074'] ?? null), 'capacity' => 270],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($ID['00032'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($ID['00042'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($ID['00038'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($ID['00048'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
];
$boilerGroups = array_chunk($boilers, 4);
?>
<section class="module-card">
<div class="module-heading">
<h2 class="module-heading__title">Boiler Performance</h2>
<span class="module-heading__meta">Detailed steam and drum metrics</span>
</div>
<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>
<div class="module-row">
<span class="module-row__label">Exhaust Control</span>
<div class="module-row__value"><?php echo $exhaustMode; ?></div>
</div>
<div class="module-divider"></div>
<div class="module-grid module-grid--two">
<?php foreach ($boilerGroups as $group) : ?>
<div class="module-stack">
<?php foreach ($group as $boiler) : ?>
<?php
$steamValue = $boiler['steam']['value'];
$steamCapacity = $boiler['steam']['capacity'];
$steamPercent = 0.0;
if ($steamValue !== null && $steamCapacity > 0) {
$steamPercent = max(0.0, min(100.0, ($steamValue / $steamCapacity) * 100));
}
?>
<div class="module-subcard">
<div class="module-subcard__title"><?php echo module_html($boiler['label']); ?></div>
<div class="module-row">
<span class="module-row__label">Steam Flow</span>
<span class="module-row__value"><?php echo module_number($steamValue, 0); ?> kpph</span>
</div>
<div class="module-progress">
<div class="module-bar">
<div class="module-bar__fill" style="width: <?php echo number_format($steamPercent, 2); ?>%;"></div>
</div>
<span class="module-notes">Capacity <?php echo number_format($steamCapacity); ?> kpph</span>
</div>
<?php foreach ($boiler['metrics'] as $metric) : ?>
<div class="module-row">
<span class="module-row__label"><?php echo module_html($metric['label']); ?></span>
<span class="module-row__value"><?php echo module_number($metric['value'], $metric['decimals'] ?? 0); ?> <?php echo module_html($metric['unit']); ?></span>
</div>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
</div>
</section>

View File

@@ -0,0 +1,94 @@
<?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)],
];
?>
<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>
<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>
<div class="module-row">
<span class="module-row__label">Exhaust Control</span>
<div class="module-row__value"><?php echo $exhaustMode; ?></div>
</div>
<div class="module-divider"></div>
<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>

View File

@@ -0,0 +1,29 @@
<?php
$serverName = "CBM2K12\SQLEXPRESS";
$uid = "cbmclient";
$pwd = "ascbm2k";
$connectionInfo = array( "UID"=>$uid, "PWD"=>$pwd,'ReturnDatesAsStrings'=> true, "CharacterSet" => 'utf-8', "Database"=>"SugarCaneScale" );
/* Connect using SQL Server Authentication. */
$conn = sqlsrv_connect( $serverName, $connectionInfo);
if( $conn === false )
{
echo "Unable to connect.</br>";
die( print_r( sqlsrv_errors(), true));
}
$sql = "SELECT CropDay FROM Parameters";
$stmt = sqlsrv_query( $conn, $sql );
if( $stmt === false) {
die( print_r( sqlsrv_errors(), true) );
}
while( $row = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_ASSOC) ) {
echo $row['CropDay'];
}
sqlsrv_free_stmt( $stmt);
sqlsrv_close( $conn);
?>

View File

@@ -0,0 +1,172 @@
<?php
include("../../items.php");
?>
<table width="100%" class="tftable1" border="1" cellspacing="0" cellpadding="4">
<tr>
<td width="100%" align="center" colspan="6" border="0"><font color="#00BFFF"><i>DRYERS RUN/STOP</i></font></td>
</tr>
<tr>
<td colspan="1" width="25%" id="vtitle" id="padded" align="center">Broadbent Tank :</a></td>
<td colspan="1" width="25%"><progress id="progresstanks" data-label="<?php echo $value['BBTankLvl']; ?>%" max="100" value="<?php echo $value['BBTankLvl']; ?>"></progress></td>
<td colspan="1" width="25%" id="vtitle" id="padded" align="center">A CVP Massecuite Tank :</a></td>
<td colspan="1" width="25%" width="25%"><progress id="progresstanks" data-label="<?php echo $value['ACVPMassecuiteLVL']; ?>%" max="100" value="<?php echo $value['ACVPMassecuiteLVL']; ?>"></progress></td>
</tr>
<br>
</table>
<table class="tftable7" border="1" cellspacing="0" cellpadding="4">
<tr width="20%">
<?php
//A1
if ($value['A1Running'] == 1) {
echo "<td width=\"6.66%\" id=\"dryerson\">A1</td>";
}
else if ($value['A1Running'] == 0) {
echo "<td width=\"6.66%\" id=\"dryersoff\">A1</td>";
}
else {
echo "<td width=\"6.66%\" id=\"dryersoff\">ERROR</td>";
}
//A2
if ($value['A2Running'] == 1) {
echo "<td width=\"6.66%\" id=\"dryerson\">A2</td>";
}
else if ($value['A2Running'] == 0) {
echo "<td width=\"6.66%\" id=\"dryersoff\">A2</td>";
}
else {
echo "<td width=\"6.66%\" id=\"dryersoff\">ERROR</td>";
}
//A3
if ($value['A3Running'] == 1) {
echo "<td width=\"6.66%\" id=\"dryerson\">A3</td>";
}
else if ($value['A3Running'] == 0) {
echo "<td width=\"6.66%\" id=\"dryersoff\">A3</td>";
}
else {
echo "<td width=\"6.66%\" id=\"dryersoff\">ERROR</td>";
}
//A4
if ($value['A4Running'] == 1) {
echo "<td width=\"6.66%\" id=\"dryerson\">A4</td>";
}
else if ($value['A4Running'] == 0) {
echo "<td width=\"6.66%\" id=\"dryersoff\">A4</td>";
}
else {
echo "<td width=\"6.66%\" id=\"dryersoff\">ERROR</td>";
}
//A5
if ($value['A5Running'] == 1) {
echo "<td width=\"6.66%\" id=\"dryerson\">A5</td>";
}
else if ($value['A5Running'] == 0) {
echo "<td width=\"6.66%\" id=\"dryersoff\">A5</td>";
}
else {
echo "<td width=\"6.66%\" id=\"dryersoff\">ERROR</td>";
}
//A6
if ($value['A6Running'] == 1) {
echo "<td width=\"6.66%\" id=\"dryerson\">A6</td>";
}
else if ($value['A6Running'] == 0) {
echo "<td width=\"6.66%\" id=\"dryersoff\">A6</td>";
}
else {
echo "<td width=\"6.66%\" id=\"dryersoff\">ERROR</td>";
}
//A7
if ($value['A7Running'] == 1) {
echo "<td width=\"6.66%\" id=\"dryerson\">A7</td>";
}
else if ($value['A7Running'] == 0) {
echo "<td width=\"6.66%\" id=\"dryersoff\">A7</td>";
}
else {
echo "<td width=\"6.66%\" id=\"dryersoff\">ERROR</td>";
}
//A8
if ($value['OnOff'] == 1) {
echo "<td width=\"6.66%\" id=\"dryerson\">BB</td>";
}
else if ($value['OnOff'] == 0) {
echo "<td width=\"6.66%\" id=\"dryersoff\">BB</td>";
}
else {
echo "<td width=\"6.66%\" id=\"dryersoff\">ERROR</td>";
}
//A9
if ($value['A9Running'] == 1) {
echo "<td width=\"6.66%\" id=\"dryerson\">A9</td>";
}
else if ($value['A9Running'] == 0) {
echo "<td width=\"6.66%\" id=\"dryersoff\">A9</td>";
}
else {
echo "<td width=\"6.66%\" id=\"dryersoff\">ERROR</td>";
}
//A10
if ($value['A10Running'] == 1) {
echo "<td width=\"6.66%\" id=\"dryerson\">A10</td>";
}
else if ($value['A10Running'] == 0) {
echo "<td width=\"6.66%\" id=\"dryersoff\">A10</td>";
}
else {
echo "<td width=\"6.66%\" id=\"dryersoff\">ERROR</td>";
}
//A11
if ($value['A11Running'] == 1) {
echo "<td width=\"6.66%\" id=\"dryerson\">A11</td>";
}
else if ($value['A11Running'] == 0) {
echo "<td width=\"6.66%\" id=\"dryersoff\">A11</td>";
}
else {
echo "<td width=\"6.66%\" id=\"dryersoff\">ERROR</td>";
}
//A12
if ($value['A12Running'] == 1) {
echo "<td width=\"6.66%\" id=\"dryerson\">A12</td>";
}
else if ($value['A12Running'] == 0) {
echo "<td width=\"6.66%\" id=\"dryersoff\">A12</td>";
}
else {
echo "<td width=\"6.66%\" id=\"dryersoff\">ERROR</td>";
}
//A13
if ($value['A13Running'] == 1) {
echo "<td width=\"6.66%\" id=\"dryerson\">A13</td>";
}
else if ($value['A13Running'] == 0) {
echo "<td width=\"6.66%\" id=\"dryersoff\">A13</td>";
}
else {
echo "<td width=\"6.66%\" id=\"dryersoff\">ERROR</td>";
}
//A14
if ($value['A14Running'] == 1) {
echo "<td width=\"6.66%\" id=\"dryerson\">A14</td>";
}
else if ($value['A14Running'] == 0) {
echo "<td width=\"6.66%\" id=\"dryersoff\">A14</td>";
}
else {
echo "<td width=\"6.66%\" id=\"dryersoff\">ERROR</td>";
}
//A15
echo "<td width=\"6.66%\" id=\"dryersonoffblank\" align=\"center\">A15</td>";
/* if ($value['A15Running'] == 1) {
echo "<td width=\"6.66%\" id=\"dryerson\">A15</td>";
}
else if ($value['A15Running'] == 0) {
echo "<td width=\"6.66%\" id=\"dryersoff\">A15</td>";
}
else {
echo "<td width=\"6.66%\" id=\"dryersoff\">ERROR</td>";
}*/
?>
</tr>
</table>

View File

@@ -0,0 +1,156 @@
<?php
include("../../items.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['TubeHeater1Temp']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['TubeHeater2Temp']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['TubeHeater3Temp']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['TubeHeater4Temp']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['TubeHeater5Temp']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['TubeHeater6Temp']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['TubeHeater7Temp']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['TubeHeater8TempPV']; ?></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['TubeHeater1SP']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['TubeHeater2SP']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['TubeHeater3SP']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['TubeHeater4SP']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['TubeHeater5SP']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['TubeHeater6SP']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['TubeHeater7SP']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['TubeHeater8TempSP']; ?></font></td>
</tr>
</table>

View File

@@ -0,0 +1,9 @@
<head>
<link rel="stylesheet" href="data/4kfix.css">
</head>
<table class="tftable1">
<tr>
<td width="50%" align="left" border="0"><font color="#00BFFF"><i>LASUCA CONTROLS &nbsp<?php date_default_timezone_set('America/Chicago'); $date = date('M j, Y g:i:s A'); echo "$date";?> &nbsp Crop Day <?php include("cropday.php");?></i></font></td>
<td width="50%" align="right" border="0"><font color="#00BFFF"><i>CONTROLS OVERVIEW</i></font></td>
</tr>
</table>

View File

@@ -0,0 +1,40 @@
<?php
include("../../items.php");
?>
<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['TubeHeater1Temp']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['TubeHeater2Temp']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['TubeHeater3Temp']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['TubeHeater4Temp']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['TubeHeater5Temp']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['TubeHeater6Temp']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['TubeHeater7Temp']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $rounded['TubeHeater8TempPV']; ?></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['TubeHeater1SP']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['TubeHeater2SP']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['TubeHeater3SP']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['TubeHeater4SP']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['TubeHeater5SP']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['TubeHeater6SP']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['TubeHeater7SP']; ?></font></td>
<td colspan="1" width="11.11%" bgcolor="#272727" align="center"><font color="#FFFFFF"><?php echo $value['TubeHeater8TempSP']; ?></font></td>
</tr>
</table>
<?php
?>

View File

@@ -0,0 +1,951 @@
<?php
declare(strict_types=1);
// phpcs:disable
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Pragma: no-cache');
header('Content-Type: text/html; charset=UTF-8');
date_default_timezone_set('America/Chicago');
/**
* Capture the rendered output of a partial include and return it as a string.
*/
function capture_include(string $relativePath): string
{
ob_start();
include __DIR__ . '/' . $relativePath;
return trim(ob_get_clean());
}
/**
* Safely fetch a value from an array.
*
* @param array<mixed> $source
*/
function array_value(array $source, string $key)
{
return array_key_exists($key, $source) ? $source[$key] : null;
}
function numeric_or_null($value): ?float
{
if ($value === null) {
return null;
}
if (is_numeric($value)) {
return (float) $value;
}
$normalised = str_replace([',', ' '], '', (string) $value);
$normalised = preg_replace('/[^0-9.\-]/', '', $normalised ?? '');
if ($normalised === '' || !is_numeric($normalised)) {
return null;
}
return (float) $normalised;
}
function format_number($value, int $decimals = 0): string
{
$numeric = numeric_or_null($value);
return $numeric === null ? '—' : number_format($numeric, $decimals);
}
function format_with_unit($value, string $unit, int $decimals = 0): string
{
$formatted = format_number($value, $decimals);
return $formatted === '—' ? $formatted : $formatted . ' ' . $unit;
}
/**
* @param array<float|null> $values
*/
function sum_numeric(array $values): ?float
{
$total = 0.0;
$found = false;
foreach ($values as $value) {
$numeric = numeric_or_null($value);
if ($numeric === null) {
continue;
}
$total += $numeric;
$found = true;
}
return $found ? $total : null;
}
function clamp_percent(?float $value): float
{
if ($value === null) {
return 0.0;
}
return max(0.0, min(100.0, $value));
}
function percent_label($value, int $decimals = 0): string
{
$numeric = numeric_or_null($value);
return $numeric === null ? '—' : format_number($numeric, $decimals) . '%';
}
function html(string $value): string
{
return htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
}
/**
* @param array<mixed> $source
*/
function value_num(array $source, string $key): ?float
{
return numeric_or_null(array_value($source, $key));
}
/**
* @param array<mixed> $source
*/
function value_as_int(array $source, string $key): ?int
{
$numeric = value_num($source, $key);
return $numeric === null ? null : (int) round($numeric);
}
function build_status(?int $rawValue, bool $autoIsZero = true): ?array
{
if ($rawValue === null) {
return null;
}
$isAuto = $autoIsZero ? $rawValue === 0 : $rawValue === 1;
return [
'label' => $isAuto ? 'Auto' : 'Manual',
'class' => $isAuto ? 'status-pill--ok' : 'status-pill--alert',
];
}
function build_switch(?int $rawValue, string $labelOn = 'On', string $labelOff = 'Off'): ?array
{
if ($rawValue === null) {
return null;
}
$isOn = $rawValue === 0;
return [
'label' => $isOn ? $labelOn : $labelOff,
'class' => $isOn ? 'status-pill--ok' : 'status-pill--warn',
];
}
function classify_live_steam(?float $value): ?array
{
if ($value === null) {
return null;
}
if ($value <= 155) {
return ['label' => 'Low', 'class' => 'status-pill--alert'];
}
if ($value <= 165) {
return ['label' => 'Watch', 'class' => 'status-pill--warn'];
}
return ['label' => 'Stable', 'class' => 'status-pill--ok'];
}
function classify_exhaust(?float $value): ?array
{
if ($value === null) {
return null;
}
if ($value <= 9) {
return ['label' => 'Low', 'class' => 'status-pill--alert'];
}
if ($value <= 13) {
return ['label' => 'Watch', 'class' => 'status-pill--warn'];
}
return ['label' => 'Stable', 'class' => 'status-pill--ok'];
}
function tank_level_state(?float $value): ?string
{
if ($value === null) {
return null;
}
if ($value <= 20) {
return 'low';
}
if ($value >= 90) {
return 'caution';
}
return null;
}
include '../../items.php';
$valuesZero = $value ?? [];
$roundedZero = $rounded ?? [];
$idsZero = $ID ?? [];
$roundedOneZero = $rounded1 ?? [];
include '../../items2dec.php';
$valuesTwo = $value ?? [];
$idsTwo = $ID ?? [];
$value = $valuesZero;
$rounded = $roundedZero;
$ID = $idsZero;
$rounded1 = $roundedOneZero;
$now = new DateTimeImmutable('now', new DateTimeZone('America/Chicago'));
$generatedAt = $now->format(DateTimeInterface::RFC3339);
$cropDayRaw = capture_include('cropday.php');
$cropDay = $cropDayRaw !== '' ? $cropDayRaw : null;
$tonsIn = numeric_or_null(capture_include('tonsin.php'));
$recordTons = numeric_or_null(capture_include('record.php'));
$recordDateRaw = capture_include('recorddate.php');
$recordDate = $recordDateRaw !== '' ? $recordDateRaw : null;
$westAvg = numeric_or_null(capture_include('west15minavg.php'));
$groundToday = sum_numeric([
value_num($value, 'CANETOT'),
value_num($value, 'W TONS GROUND'),
]);
$groundYesterday = sum_numeric([
value_num($value, 'PREVTONS'),
value_num($value, 'WPREVGROUND'),
]);
$runHours = value_num($value, 'RUNHRSTODAY');
$prevRunHours = value_num($value, 'PREVTIME');
$totalTonsPerHour = sum_numeric([
value_num($value, 'TONS_PER_HOUR'),
value_num($value, 'RATE'),
]);
$lossTime = value_num($value, 'LOSSTIME');
$eastAverage = value_num($value, 'AVG_TONS_PER_HOUR');
$summaryCards = [
[
'label' => 'Cane In Today',
'value' => format_number($tonsIn),
'unit' => 'tons',
],
[
'label' => 'Ground Today',
'value' => format_number($groundToday),
'unit' => 'tons',
],
[
'label' => 'Total Ground Yesterday',
'value' => format_number($groundYesterday),
'unit' => 'tons',
],
[
'label' => 'Run Hours',
'value' => format_number($runHours, 1),
'unit' => 'hours',
],
[
'label' => 'Prev Run Hours',
'value' => format_number($prevRunHours, 1),
'unit' => 'hours',
],
[
'label' => 'Total Tons per Hour',
'value' => format_number($totalTonsPerHour),
'unit' => 'tons/hr',
],
[
'label' => 'East 15 Minute Avg',
'value' => format_number($eastAverage),
'unit' => 'tons/hr',
],
[
'label' => 'West 15 Minute Avg',
'value' => format_number($westAvg),
'unit' => 'tons/hr',
],
[
'label' => 'Loss Time Today',
'value' => format_number($lossTime, 2),
'unit' => 'hours',
],
[
'label' => 'Record Day',
'value' => format_number($recordTons),
'unit' => 'tons',
'note' => $recordDate ? 'on ' . $recordDate : null,
],
];
$levelThroughputSwitch = value_as_int($value, 'LEVEL_THROUGHPUT_SWITCH');
$millFourUnit = $levelThroughputSwitch === 1 ? 'tons/hr' : '%';
$eastStages = [
[
'label' => 'Mill 1',
'stage' => '1',
'level' => value_num($value, 'MILL1LVLPV'),
'setpoint' => value_num($value, 'MILL1SP'),
'setpointUnit' => '%',
'rpm' => value_num($value, 'EMILL1RPM'),
'outputLabel' => 'Mill 1 OP',
'outputValue' => value_num($value, 'MILL1OUTPUT'),
'outputUnit' => '%',
'mode' => build_status(value_as_int($value, 'MILL1AUTOMAN'), true),
],
[
'label' => 'Mill 2',
'stage' => '2',
'level' => value_num($value, 'M2LVL'),
'setpoint' => value_num($value, 'MILL2SP'),
'setpointUnit' => '%',
'rpm' => value_num($value, 'EMILL2RPM'),
'outputLabel' => 'MCC Output',
'outputValue' => value_num($value, 'MCCOUTPUT'),
'outputUnit' => '%',
'mode' => null,
],
[
'label' => 'Mill 3',
'stage' => '3',
'level' => value_num($value, 'MIL3LVL'),
'setpoint' => value_num($value, 'MILL3SP'),
'setpointUnit' => '%',
'rpm' => value_num($value, 'EMILL3RPM'),
'outputLabel' => 'MCC Tons',
'outputValue' => value_num($rounded1, 'MCCTONS'),
'outputUnit' => 'tons',
'mode' => null,
],
[
'label' => 'Mill 4',
'stage' => '4',
'level' => value_num($value, 'MIL4LVL'),
'setpoint' => value_num($value, 'MILL4SP'),
'setpointUnit' => '%',
'rpm' => value_num($value, 'EMILL4RPM'),
'outputLabel' => 'Mill 1 SP',
'outputValue' => value_num($value, 'WEIGHT_WSP'),
'outputUnit' => $millFourUnit,
'mode' => build_status(value_as_int($value, 'MILL1AUTOMAN1'), false),
],
[
'label' => 'Mill 5',
'stage' => '5',
'level' => value_num($value, 'MIL5LVL'),
'setpoint' => value_num($value, 'MILL5SP'),
'setpointUnit' => '%',
'rpm' => value_num($value, 'EMILL5RPM'),
'outputLabel' => 'Grinding Rate',
'outputValue' => value_num($value, 'TONS_PER_HOUR'),
'outputUnit' => 'tons/hr',
'mode' => null,
],
[
'label' => 'Mill 6',
'stage' => '6',
'level' => value_num($value, 'MIL6LVL'),
'setpoint' => value_num($value, 'MILL6SP'),
'setpointUnit' => '%',
'rpm' => value_num($value, 'EMILL6RPM'),
'outputLabel' => 'Average Rate',
'outputValue' => value_num($value, 'AVG_TONS_PER_HOUR'),
'outputUnit' => 'tons/15 min',
'mode' => null,
],
];
$eastFooterMetrics = [
['label' => 'Imbibition 6 Flow', 'value' => format_with_unit(value_num($value, 'IMBFLOW'), 'gpm')],
['label' => 'Imbibition 6 SP', 'value' => format_with_unit(value_num($value, 'IMBSP'), 'gpm')],
['label' => 'Imbibition 5 Flow', 'value' => format_with_unit(value_num($value, 'IMBFLOW'), 'gpm')],
['label' => 'Imbibition 5 SP', 'value' => format_with_unit(value_num($value, 'IMB5SP'), 'gpm')],
];
$westStages = [
[
'label' => 'Mill 1',
'stage' => '1',
'level' => value_num($ID, '00654'),
'setpoint' => null,
'setpointUnit' => '%',
'rpm' => value_num($ID, '00666'),
'outputLabel' => 'MCC FPM',
'outputValue' => value_num($value, 'Feet/Minute'),
'outputUnit' => 'fpm',
'mode' => null,
],
[
'label' => 'Mill 2',
'stage' => '2',
'level' => value_num($ID, '00656'),
'setpoint' => null,
'setpointUnit' => '%',
'rpm' => value_num($ID, '00670'),
'outputLabel' => 'MCC Output',
'outputValue' => value_num($ID, '00638'),
'outputUnit' => '%',
'mode' => null,
],
[
'label' => 'Mill 4',
'stage' => '4',
'level' => value_num($ID, '00658'),
'setpoint' => null,
'setpointUnit' => '%',
'rpm' => value_num($ID, '00674'),
'outputLabel' => 'Mill 1 SP',
'outputValue' => null,
'outputUnit' => '%',
'mode' => null,
],
[
'label' => 'Mill 5',
'stage' => '5',
'level' => value_num($ID, '00660'),
'setpoint' => null,
'setpointUnit' => '%',
'rpm' => value_num($ID, '00680'),
'outputLabel' => 'Grinding Rate',
'outputValue' => value_num($value, 'RATE'),
'outputUnit' => 'tons/hr',
'mode' => null,
],
];
$westFooterMetrics = [
['label' => 'Imbibition Flow', 'value' => format_with_unit(value_num($ID, '00624'), 'gpm')],
['label' => 'Average Rate', 'value' => format_with_unit($westAvg, 'tons/15 min')],
];
$steamFlow = value_num($value, 'TTL_STEAMFLOW2');
$liveSteam = value_num($value, 'PT_001');
$exhaustPressure = value_num($ID, '00244');
$exhaustMode = build_status(value_as_int($value, 'ExhaustAM'), true);
$vaporHeader = value_num($value, 'VAPOR HDR PRES');
$boilerOverview = [
[
'label' => 'Total Steam Flow',
'value' => format_number($steamFlow),
'unit' => 'kpph',
],
[
'label' => 'Live Steam Pressure',
'value' => format_number($liveSteam),
'unit' => 'psi',
'status' => classify_live_steam($liveSteam),
],
[
'label' => 'Exhaust Pressure',
'value' => format_number($exhaustPressure),
'unit' => 'psi',
'status' => classify_exhaust($exhaustPressure),
'mode' => $exhaustMode,
],
[
'label' => 'Vapor Header Pressure',
'value' => format_number($vaporHeader),
'unit' => 'psi',
],
];
$boilerFlows = [
['label' => 'Boiler 1', 'value' => format_number(value_num($ID, '00252'))],
['label' => 'Boiler 2', 'value' => format_number(value_num($ID, '00256'))],
['label' => 'Boiler 3', 'value' => format_number(value_num($value, 'FT_301'))],
['label' => 'Boiler 4', 'value' => format_number(value_num($value, 'FT_401'))],
['label' => 'Boiler 5', 'value' => format_number(value_num($value, 'FT_501'))],
['label' => 'Boiler 6', 'value' => format_number(value_num($value, 'FT_601'))],
['label' => 'Boiler 7', 'value' => format_number(value_num($ID, '00046'))],
['label' => 'Boiler 8', 'value' => format_number(value_num($ID, '00074'))],
];
$syrupOverflow = value_num($value, 'Syrup Overflow Lvl');
$syrupReceiver = value_num($value, 'Syrup RCVR');
$totalSyrup = null;
if ($syrupOverflow !== null || $syrupReceiver !== null) {
$totalSyrup = 0.0;
if ($syrupOverflow !== null) {
$totalSyrup += $syrupOverflow * 0.82569;
}
if ($syrupReceiver !== null) {
$totalSyrup += $syrupReceiver * 0.17431;
}
}
$tankLevels = [
['label' => 'Juice Tank 1', 'value' => value_num($value, 'Juice Tank1')],
['label' => 'Juice Tank 2', 'value' => value_num($value, 'Juice Tank2')],
['label' => 'Syrup Receiver', 'value' => $syrupReceiver],
['label' => 'Syrup Overflow', 'value' => $syrupOverflow],
['label' => 'Total Syrup', 'value' => $totalSyrup],
['label' => 'Condensate Water', 'value' => value_num($value, 'CondensateWater')],
['label' => 'Sweet Water', 'value' => value_num($value, 'SweetwaterTank')],
['label' => 'Cold Water INJ', 'value' => value_num($value, 'Cold Water Injection LVL')],
['label' => 'A1 Receiver', 'value' => value_num($value, 'A1 RCVR')],
['label' => 'A1 Overflow', 'value' => value_num($value, 'A1 Molasses Overflow Lvl')],
['label' => 'A2 Receiver', 'value' => value_num($value, 'A2 RCVR')],
['label' => 'A2 Overflow', 'value' => value_num($value, 'A2 Molasses Overflow Lvl')],
['label' => 'B Receiver', 'value' => value_num($value, 'B RCVR')],
['label' => 'B Overflow', 'value' => value_num($value, 'B Molasses Overflow Lvl')],
['label' => 'Flash Tank', 'value' => value_num($value, 'FlashTankLVL')],
];
$truckDumpState = build_status(value_as_int($value, 'LATCHON'), true);
$truckDumpMetrics = [
['label' => 'PV', 'value' => format_number(value_num($valuesTwo, 'TD INPUT'), 1)],
[
'label' => 'Setpoint',
'value' => format_number(
value_as_int($value, 'TD SP3 ON/OFF') === 1
? value_num($valuesTwo, 'TD SP3')
: value_num($valuesTwo, 'TD SP1'),
1
),
'suffix' => value_as_int($value, 'TD SP3 ON/OFF') === 1 ? 'SP3' : 'SP',
],
['label' => 'Output', 'value' => format_with_unit(value_num($valuesTwo, 'TD OUTPUT'), '%', 1)],
['label' => 'Ratio', 'value' => format_number(value_num($valuesTwo, 'TD RATIO'), 2)],
['label' => 'Belt Scale', 'value' => format_with_unit(value_num($valuesTwo, 'TDBELTSCALE'), 'lbs', 0)],
[
'label' => 'Belt State',
'status' => build_switch(value_as_int($value, 'TDBELTSCALEONOFF'), 'Scale On', 'Scale Off'),
],
[
'label' => 'Mode',
'value' => value_as_int($value, 'TD MILLGROUND') === null
? '—'
: (
value_as_int($value, 'TD MILLGROUND') === 0
? 'Dump Mill'
: 'Dump Ground'
),
],
];
$tables = [
[
'label' => 'S Table',
'pv' => format_number(value_num($valuesTwo, 'SE SCALE'), 1),
'sp' => format_number(
value_as_int($value, 'STABLE SP3 ON/OFF') === 1
? value_num($valuesTwo, 'STABLE SP1')
: value_num($valuesTwo, 'SE SETPOINT'),
1
),
'spLabel' => value_as_int($value, 'STABLE SP3 ON/OFF') === 1 ? 'SP3' : 'SP',
'output' => format_with_unit(value_num($valuesTwo, 'SE OUTPUT'), '%', 1),
'mode' => build_status(value_as_int($value, 'SAM'), true),
],
[
'label' => 'NE Table',
'pv' => format_number(value_num($valuesTwo, 'NE SCALE'), 1),
'sp' => format_number(
value_as_int($value, 'NE SP SWITCH') === 1
? value_num($valuesTwo, 'NE SETPOINT2')
: value_num($valuesTwo, 'NE SETPOINT'),
1
),
'spLabel' => value_as_int($value, 'NE SP SWITCH') === 1 ? 'SP3' : 'SP',
'output' => format_with_unit(value_num($valuesTwo, 'NE OUTPUT'), '%', 1),
'mode' => build_status(value_as_int($value, 'NAM'), true),
],
[
'label' => 'W Table',
'pv' => format_number(value_num($valuesTwo, 'W SCALE'), 1),
'sp' => format_number(
value_as_int($value, 'W SP SWITCH') === 1
? value_num($valuesTwo, 'W SETPOINT2')
: value_num($valuesTwo, 'W SETPOINT'),
1
),
'spLabel' => value_as_int($value, 'W SP SWITCH') === 1 ? 'SP3' : 'SP',
'output' => format_with_unit(value_num($valuesTwo, 'W OUTPUT'), '%', 1),
'mode' => build_status(value_as_int($value, 'WAM'), true),
],
];
$knives = [
[
'label' => 'Knife 1',
'pressure' => format_with_unit(value_num($valuesTwo, 'KNF1PRES'), 'psi', 1),
'speed' => format_with_unit(value_num($valuesTwo, 'K1SPD'), 'rpm', 0),
'output' => format_with_unit(value_num($valuesTwo, 'KNIFE1OP'), '%', 1),
'mode' => value_as_int($value, 'KC1') === null
? null
: (
value_as_int($value, 'KC1') === 1
? ['label' => 'Control', 'class' => 'status-pill--ok']
: ['label' => 'Knife', 'class' => 'status-pill--warn']
),
],
[
'label' => 'Knife 2',
'pressure' => format_with_unit(value_num($valuesTwo, 'KNF2PRES'), 'psi', 1),
'speed' => format_with_unit(value_num($valuesTwo, 'KNF2SPD'), 'rpm', 0),
'output' => format_with_unit(value_num($valuesTwo, 'KNIFE2OP'), '%', 1),
'mode' => value_as_int($value, 'KC2') === null
? null
: (
value_as_int($value, 'KC2') === 1
? ['label' => 'Control', 'class' => 'status-pill--ok']
: ['label' => 'Knife', 'class' => 'status-pill--warn']
),
],
[
'label' => 'Knife 3',
'pressure' => format_with_unit(value_num($valuesTwo, 'KNF3PRES'), 'psi', 1),
'speed' => format_with_unit(value_num($valuesTwo, 'KNF3SPD'), 'rpm', 0),
'output' => format_with_unit(value_num($valuesTwo, 'KNIFE3OP'), '%', 1),
'mode' => value_as_int($value, 'KC3') === null
? null
: (
value_as_int($value, 'KC3') === 1
? ['label' => 'Control', 'class' => 'status-pill--ok']
: ['label' => 'Knife', 'class' => 'status-pill--warn']
),
],
];
?>
<div class="board-stack" data-generated-at="<?php echo html($generatedAt); ?>">
<div class="meta-banner">
<?php if ($cropDay !== null) { ?>
<span>Crop Day <strong><?php echo html($cropDay); ?></strong></span>
<?php } ?>
<span>Server time <strong><?php echo html($now->format('M j, Y g:i:s A')); ?></strong></span>
</div>
<section class="section">
<header class="section__header">
<h2 class="section__title">Key Production Metrics</h2>
<p class="section__meta">Plant-wide summary</p>
</header>
<div class="stat-grid">
<?php foreach ($summaryCards as $card) { ?>
<article class="stat-card">
<p class="stat-card__label"><?php echo html($card['label']); ?></p>
<p class="stat-card__value"><?php echo html($card['value']); ?></p>
<?php if (!empty($card['unit'])) { ?>
<p class="stat-card__unit"><?php echo html($card['unit']); ?></p>
<?php } ?>
<?php if (!empty($card['note'])) { ?>
<p class="stat-card__note"><?php echo html($card['note']); ?></p>
<?php } ?>
</article>
<?php } ?>
</div>
</section>
<section class="section">
<header class="section__header">
<h2 class="section__title">East Tandem</h2>
<p class="section__meta">Six-mill train status</p>
</header>
<div class="tandem-grid">
<?php foreach ($eastStages as $stage) { ?>
<article class="stage-card">
<div class="stage-card__header">
<div class="stage-card__title">
<span class="stage-card__badge"><?php echo html($stage['stage']); ?></span>
<span><?php echo html($stage['label']); ?></span>
</div>
<?php if (!empty($stage['mode'])) { ?>
<span class="status-pill <?php echo html($stage['mode']['class']); ?>">
<?php echo html($stage['mode']['label']); ?>
</span>
<?php } ?>
</div>
<div class="progress">
<div class="progress__track">
<div
class="progress__bar"
style="width: <?php echo clamp_percent(numeric_or_null($stage['level'])); ?>%;"
></div>
</div>
<div class="progress__label">
<span>Level</span>
<span><?php echo html(percent_label($stage['level'])); ?></span>
</div>
</div>
<div class="metric-list">
<div class="metric">
<span class="metric__label">Setpoint</span>
<span class="metric__value">
<?php echo html(format_number($stage['setpoint'])); ?>
<em><?php echo html($stage['setpointUnit']); ?></em>
</span>
</div>
<div class="metric">
<span class="metric__label">RPM</span>
<span class="metric__value">
<?php echo html(format_with_unit($stage['rpm'], 'rpm')); ?>
</span>
</div>
<div class="metric">
<span class="metric__label"><?php echo html($stage['outputLabel']); ?></span>
<span class="metric__value">
<?php echo html(format_with_unit($stage['outputValue'], $stage['outputUnit'])); ?>
</span>
</div>
</div>
</article>
<?php } ?>
</div>
<div class="mini-grid">
<?php foreach ($eastFooterMetrics as $metric) { ?>
<div class="mini-card">
<span class="mini-card__label"><?php echo html($metric['label']); ?></span>
<span class="mini-card__value"><?php echo html($metric['value']); ?></span>
</div>
<?php } ?>
</div>
</section>
<section class="section">
<header class="section__header">
<h2 class="section__title">West Tandem</h2>
<p class="section__meta">Grinding performance</p>
</header>
<div class="tandem-grid">
<?php foreach ($westStages as $stage) { ?>
<article class="stage-card">
<div class="stage-card__header">
<div class="stage-card__title">
<span class="stage-card__badge"><?php echo html($stage['stage']); ?></span>
<span><?php echo html($stage['label']); ?></span>
</div>
</div>
<div class="progress">
<div class="progress__track">
<div
class="progress__bar"
style="width: <?php echo clamp_percent(numeric_or_null($stage['level'])); ?>%;"
></div>
</div>
<div class="progress__label">
<span>Level</span>
<span><?php echo html(percent_label($stage['level'])); ?></span>
</div>
</div>
<div class="metric-list">
<div class="metric">
<span class="metric__label">RPM</span>
<span class="metric__value"><?php echo html(format_with_unit($stage['rpm'], 'rpm')); ?></span>
</div>
<div class="metric">
<span class="metric__label"><?php echo html($stage['outputLabel']); ?></span>
<span class="metric__value"><?php echo html(format_with_unit($stage['outputValue'], $stage['outputUnit'])); ?></span>
</div>
</div>
</article>
<?php } ?>
</div>
<div class="mini-grid">
<?php foreach ($westFooterMetrics as $metric) { ?>
<div class="mini-card">
<span class="mini-card__label"><?php echo html($metric['label']); ?></span>
<span class="mini-card__value"><?php echo html($metric['value']); ?></span>
</div>
<?php } ?>
</div>
</section>
<section class="section">
<header class="section__header">
<h2 class="section__title">Boilers</h2>
<p class="section__meta">Steam generation health</p>
</header>
<div class="stat-grid">
<?php foreach ($boilerOverview as $card) { ?>
<article class="stat-card">
<p class="stat-card__label"><?php echo html($card['label']); ?></p>
<p class="stat-card__value"><?php echo html($card['value']); ?></p>
<p class="stat-card__unit"><?php echo html($card['unit']); ?></p>
<?php if (!empty($card['status'])) { ?>
<p class="stat-card__note">
<span class="status-pill <?php echo html($card['status']['class']); ?>">
<?php echo html($card['status']['label']); ?>
</span>
</p>
<?php } ?>
<?php if (!empty($card['mode'])) { ?>
<p class="stat-card__note">
<span class="status-pill <?php echo html($card['mode']['class']); ?>">
<?php echo html($card['mode']['label']); ?>
</span>
</p>
<?php } ?>
</article>
<?php } ?>
</div>
<div class="mini-grid">
<?php foreach ($boilerFlows as $boiler) { ?>
<div class="mini-card">
<span class="mini-card__label"><?php echo html($boiler['label']); ?></span>
<span class="mini-card__value"><?php echo html($boiler['value']); ?> <small>kpph</small></span>
</div>
<?php } ?>
</div>
</section>
<section class="section">
<header class="section__header">
<h2 class="section__title">Tank Levels</h2>
<p class="section__meta">Percent of capacity</p>
</header>
<div class="tank-grid">
<?php foreach ($tankLevels as $tank) { ?>
<?php $state = tank_level_state($tank['value']); ?>
<article
class="tank-card"
<?php if ($state !== null) { ?>data-level="<?php echo html($state); ?>"<?php } ?>
>
<div class="tank-card__title">
<span><?php echo html($tank['label']); ?></span>
<span class="tank-card__meta"><?php echo html(percent_label($tank['value'])); ?></span>
</div>
<div class="progress">
<div class="progress__track">
<div
class="progress__bar"
style="width: <?php echo clamp_percent(numeric_or_null($tank['value'])); ?>%;"
></div>
</div>
</div>
</article>
<?php } ?>
</div>
</section>
<section class="section">
<header class="section__header">
<h2 class="section__title">Truck Dump & Tables</h2>
<p class="section__meta">Front-end preparation</p>
</header>
<div class="equipment-grid">
<article class="equipment-card">
<div class="equipment-card__title">
<span>Truck Dump</span>
<?php if ($truckDumpState !== null) { ?>
<span class="status-pill <?php echo html($truckDumpState['class']); ?>">
<?php echo html($truckDumpState['label']); ?>
</span>
<?php } ?>
</div>
<div class="equipment-card__rows">
<?php foreach ($truckDumpMetrics as $metric) { ?>
<div class="equipment-row">
<span class="equipment-row__label"><?php echo html($metric['label']); ?></span>
<span class="equipment-row__value">
<?php if (!empty($metric['status'])) { ?>
<span class="status-pill <?php echo html($metric['status']['class']); ?>">
<?php echo html($metric['status']['label']); ?>
</span>
<?php } else { ?>
<?php echo html($metric['value'] ?? '—'); ?>
<?php if (!empty($metric['suffix'])) { ?>
<small><?php echo html($metric['suffix']); ?></small>
<?php } ?>
<?php } ?>
</span>
</div>
<?php } ?>
</div>
</article>
<?php foreach ($tables as $table) { ?>
<article class="equipment-card">
<div class="equipment-card__title">
<span><?php echo html($table['label']); ?></span>
<?php if ($table['mode'] !== null) { ?>
<span class="status-pill <?php echo html($table['mode']['class']); ?>">
<?php echo html($table['mode']['label']); ?>
</span>
<?php } ?>
</div>
<div class="equipment-card__rows">
<div class="equipment-row">
<span class="equipment-row__label">PV</span>
<span class="equipment-row__value"><?php echo html($table['pv']); ?></span>
</div>
<div class="equipment-row">
<span class="equipment-row__label">Setpoint</span>
<span class="equipment-row__value">
<?php echo html($table['sp']); ?>
<small><?php echo html($table['spLabel']); ?></small>
</span>
</div>
<div class="equipment-row">
<span class="equipment-row__label">Output</span>
<span class="equipment-row__value"><?php echo html($table['output']); ?></span>
</div>
</div>
</article>
<?php } ?>
</div>
<div class="equipment-card">
<div class="equipment-card__title">
<span>Knife Train</span>
</div>
<div class="equipment-subgrid">
<?php foreach ($knives as $knife) { ?>
<div class="equipment-mini">
<div class="equipment-mini__title">
<span><?php echo html($knife['label']); ?></span>
<?php if ($knife['mode'] !== null) { ?>
<span class="status-pill <?php echo html($knife['mode']['class']); ?>">
<?php echo html($knife['mode']['label']); ?>
</span>
<?php } ?>
</div>
<div class="equipment-row">
<span class="equipment-row__label">Pressure</span>
<span class="equipment-row__value"><?php echo html($knife['pressure']); ?></span>
</div>
<div class="equipment-row">
<span class="equipment-row__label">Speed</span>
<span class="equipment-row__value"><?php echo html($knife['speed']); ?></span>
</div>
<div class="equipment-row">
<span class="equipment-row__label">Output</span>
<span class="equipment-row__value"><?php echo html($knife['output']); ?></span>
</div>
</div>
<?php } ?>
</div>
</div>
</section>
</div>
<?php // phpcs:enable ?>

View File

@@ -0,0 +1,8 @@
<head>
<link rel="stylesheet" href="data/4kfix.css">
</head>
<table class="tftable1">
<tr>
<td width="100%" align="center" border="0"><font color="#FFFFFF" size="300"><i>UNDER MAINTENENACE</i></font></td>
</tr>
</table>

View File

@@ -0,0 +1,109 @@
<?php
declare(strict_types=1);
// phpcs:disable
function module_numeric($value): ?float
{
if ($value === null) {
return null;
}
if (is_numeric($value)) {
return (float) $value;
}
$normalised = str_replace([',', ' '], '', (string) $value);
$normalised = preg_replace('/[^0-9.\-]/', '', $normalised ?? '');
if ($normalised === '' || !is_numeric($normalised)) {
return null;
}
return (float) $normalised;
}
function module_number($value, int $decimals = 0, string $placeholder = '—'): string
{
$numeric = module_numeric($value);
return $numeric === null ? $placeholder : number_format($numeric, $decimals);
}
function module_with_unit($value, string $unit, int $decimals = 0, string $placeholder = '—'): string
{
$formatted = module_number($value, $decimals, $placeholder);
return $formatted === $placeholder ? $formatted : $formatted . ' ' . $unit;
}
function module_percent($value, int $decimals = 0, string $placeholder = '—'): string
{
$numeric = module_numeric($value);
if ($numeric === null) {
return $placeholder;
}
return number_format($numeric, $decimals) . '%';
}
function module_clamp_percent($value): float
{
$numeric = module_numeric($value);
if ($numeric === null) {
return 0.0;
}
return max(0.0, min(100.0, $numeric));
}
function module_status(string $label, string $class): string
{
return '<span class="module-pill ' . htmlspecialchars($class, ENT_QUOTES, 'UTF-8') . '">' .
htmlspecialchars($label, ENT_QUOTES, 'UTF-8') .
'</span>';
}
function module_html(string $value): string
{
return htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
}
function module_wrap(string $content, string $class): string
{
return '<div class="' . module_html($class) . '">' . $content . '</div>';
}
function module_if(bool $condition, callable $callback): string
{
return $condition ? (string) $callback() : '';
}
function module_non_empty(?string $value, string $fallback = '—'): string
{
return $value === null || $value === '' ? $fallback : $value;
}
function module_capture(string $path): string
{
ob_start();
include $path;
return trim((string) ob_get_clean());
}
function module_mode(?int $value, int $autoValue = 1, string $fallback = '—'): string
{
if ($value === null) {
return $fallback;
}
$isAuto = (int) $value === $autoValue;
$label = $isAuto ? 'Auto' : 'Manual';
$class = $isAuto ? 'module-pill--success' : 'module-pill--warn';
return module_status($label, $class);
}
// phpcs:enable

View File

@@ -0,0 +1,89 @@
<?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(module_capture(__DIR__ . '/west15minavg.php'));
$totalTph = (module_numeric($value['TONS_PER_HOUR']) ?? 0.0) + (module_numeric($value['RATE']) ?? 0.0);
$lossTime = module_numeric($value['LOSSTIME']);
?>
<section class="module-card module-card--tight">
<div class="module-heading">
<h2 class="module-heading__title">General Data</h2>
<span class="module-heading__meta">Live production snapshot</span>
</div>
<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>
<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>
<div class="module-divider"></div>
<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>
<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>
</section>

View File

@@ -0,0 +1,155 @@
<?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']);
?>
<section class="module-card module-card--tight">
<div class="module-heading">
<h2 class="module-heading__title">General &amp; Steam Data</h2>
<span class="module-heading__meta">Throughput with live steam signals</span>
</div>
<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>
<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>
<div class="module-divider"></div>
<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>
<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>
<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>
<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>

View File

@@ -0,0 +1,261 @@
<?php
// phpcs:ignoreFile
declare(strict_types=1);
include __DIR__ . '/../../items.php';
require_once __DIR__ . '/module-helpers.php';
$eastMillMode = module_mode(isset($value['MILL1AUTOMAN']) ? (int) $value['MILL1AUTOMAN'] : null, 0);
$eastMillRows = [
[
'stage' => '1',
'level' => module_numeric($value['MILL1LVLPV']),
'sp' => module_numeric($value['MILL1SP']),
'rpm' => module_numeric($value['EMILL1RPM']),
'metric' => 'MCC FPM',
'metric_value' => module_numeric($value['MAINSPD']),
'metric_unit' => 'fpm',
],
[
'stage' => '2',
'level' => module_numeric($value['M2LVL']),
'sp' => module_numeric($value['MILL2SP']),
'rpm' => module_numeric($value['EMILL2RPM']),
'metric' => 'MCC Output',
'metric_value' => module_numeric($value['MCCOUTPUT']),
'metric_unit' => '%',
],
[
'stage' => '3',
'level' => module_numeric($value['MIL3LVL']),
'sp' => module_numeric($value['MILL3SP']),
'rpm' => module_numeric($value['EMILL3RPM']),
'metric' => 'MCC Tons',
'metric_value' => module_numeric($rounded1['MCCTONS'] ?? null),
'metric_unit' => 'tons',
],
[
'stage' => '4',
'level' => module_numeric($value['MIL4LVL']),
'sp' => module_numeric($value['MILL4SP']),
'rpm' => module_numeric($value['EMILL4RPM']),
'metric' => 'Mill 1 SP',
'metric_value' => module_numeric($value['WEIGHT_WSP']),
'metric_unit' => ($value['LEVEL_THROUGHPUT_SWITCH'] ?? 0) == 1 ? 'tons/hr' : '%',
'mode' => module_mode(isset($value['MILL1AUTOMAN1']) ? (int) $value['MILL1AUTOMAN1'] : null, 1),
],
[
'stage' => '5',
'level' => module_numeric($value['MIL5LVL']),
'sp' => module_numeric($value['MILL5SP']),
'rpm' => module_numeric($value['EMILL5RPM']),
'metric' => 'Grinding Rate',
'metric_value' => module_numeric($value['TONS_PER_HOUR']),
'metric_unit' => 'tons/hr',
],
[
'stage' => '6',
'level' => module_numeric($value['MIL6LVL']),
'sp' => module_numeric($value['MILL6SP']),
'rpm' => module_numeric($value['EMILL6RPM']),
'metric' => 'Average Rate',
'metric_value' => module_numeric($value['AVG_TONS_PER_HOUR']),
'metric_unit' => 'tons/15 min',
],
];
$eastImbibition = [
[
'label' => 'Imbibition 6',
'value' => module_numeric($value['IMBFLOW']),
'unit' => 'gpm',
'sp_label' => 'Imbibition 6 SP',
'sp_value' => module_numeric($value['IMBSP']),
],
[
'label' => 'Imbibition 5',
'value' => module_numeric($value['IMBFLOW']),
'unit' => 'gpm',
'sp_label' => 'Imbibition 5 SP',
'sp_value' => module_numeric($value['IMB5SP']),
],
];
$westAverage = module_numeric(module_capture(__DIR__ . '/west15minavg.php'));
$westRows = [
[
'stage' => '1',
'level' => module_numeric($ID['00654'] ?? null),
'sp' => null,
'rpm' => module_numeric($ID['00666'] ?? null),
'metric' => 'MCC FPM',
'metric_value' => module_numeric($value['Feet/Minute'] ?? null),
'metric_unit' => 'fpm',
],
[
'stage' => '2',
'level' => module_numeric($ID['00656'] ?? null),
'sp' => null,
'rpm' => module_numeric($ID['00670'] ?? null),
'metric' => 'MCC Output',
'metric_value' => module_numeric($ID['00638'] ?? null),
'metric_unit' => '%',
],
[
'stage' => '3',
'level' => module_numeric($ID['00657'] ?? null),
'sp' => null,
'rpm' => module_numeric($ID['00672'] ?? null),
'metric' => 'MCC Tons',
'metric_value' => module_numeric($ID['00640'] ?? null),
'metric_unit' => 'tons',
],
[
'stage' => '4',
'level' => module_numeric($ID['00658'] ?? null),
'sp' => null,
'rpm' => module_numeric($ID['00674'] ?? null),
'metric' => 'Mill 1 SP',
'metric_value' => module_numeric($ID['00642'] ?? null),
'metric_unit' => '%',
],
[
'stage' => '5',
'level' => module_numeric($ID['00660'] ?? null),
'sp' => null,
'rpm' => module_numeric($ID['00680'] ?? null),
'metric' => 'Grinding Rate',
'metric_value' => module_numeric($value['RATE'] ?? null),
'metric_unit' => 'tons/hr',
],
[
'stage' => '—',
'level' => null,
'sp' => null,
'rpm' => null,
'metric' => 'Average Rate',
'metric_value' => $westAverage,
'metric_unit' => 'tons/15 min',
],
];
$westImbibition = module_numeric($ID['00624'] ?? null);
?>
<section class="module-card">
<div class="module-heading">
<h2 class="module-heading__title">Mill Tandems</h2>
<span class="module-heading__meta">East &amp; West tandem performance</span>
</div>
<div class="module-grid module-grid--two">
<div class="module-stack">
<div class="module-tag">East Tandem</div>
<div class="module-row">
<span class="module-row__label">Mill 1 Output</span>
<span class="module-row__value"><?php echo module_number($value['MILL1OUTPUT'] ?? null); ?>%</span>
</div>
<div class="module-row">
<span class="module-row__label">Control Mode</span>
<div class="module-row__value"><?php echo $eastMillMode; ?></div>
</div>
<table class="module-table module-table--tight">
<thead>
<tr>
<th>Mill</th>
<th>Level</th>
<th>SP</th>
<th>RPM</th>
<th>Metric</th>
<th>Value</th>
<th>Units</th>
<th>Mode</th>
</tr>
</thead>
<tbody>
<?php foreach ($eastMillRows as $row) : ?>
<tr>
<td><?php echo module_html($row['stage']); ?></td>
<td>
<div class="module-progress">
<div class="module-bar">
<div class="module-bar__fill" style="width: <?php echo module_clamp_percent($row['level'] ?? 0); ?>%;"></div>
</div>
<span class="module-notes"><?php echo module_number($row['level'], 0); ?>%</span>
</div>
</td>
<td class="module-table__number"><?php echo module_number($row['sp'], 0); ?></td>
<td class="module-table__number"><?php echo module_number($row['rpm'], 0); ?></td>
<td><?php echo module_html($row['metric']); ?></td>
<td class="module-table__number"><?php echo module_number($row['metric_value'], 1); ?></td>
<td><?php echo module_html(strtoupper($row['metric_unit'])); ?></td>
<td>
<?php echo $row['mode'] ?? '—'; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="module-divider"></div>
<?php foreach ($eastImbibition as $imb) : ?>
<div class="module-row">
<span class="module-row__label"><?php echo module_html($imb['label']); ?></span>
<span class="module-row__value"><?php echo module_number($imb['value'], 0); ?> <?php echo module_html(strtoupper($imb['unit'])); ?></span>
</div>
<div class="module-row">
<span class="module-row__label"><?php echo module_html($imb['sp_label']); ?></span>
<span class="module-row__value"><?php echo module_number($imb['sp_value'], 0); ?> <?php echo module_html(strtoupper($imb['unit'])); ?></span>
</div>
<?php endforeach; ?>
</div>
<div class="module-stack">
<div class="module-tag">West Tandem</div>
<table class="module-table module-table--tight">
<thead>
<tr>
<th>Mill</th>
<th>Level</th>
<th>SP</th>
<th>RPM</th>
<th>Metric</th>
<th>Value</th>
<th>Units</th>
</tr>
</thead>
<tbody>
<?php foreach ($westRows as $row) : ?>
<tr>
<td><?php echo module_html($row['stage']); ?></td>
<td>
<div class="module-progress">
<div class="module-bar">
<div class="module-bar__fill" style="width: <?php echo module_clamp_percent($row['level'] ?? 0); ?>%;"></div>
</div>
<span class="module-notes"><?php echo module_number($row['level'], 0); ?>%</span>
</div>
</td>
<td class="module-table__number"><?php echo module_number($row['sp'], 0); ?></td>
<td class="module-table__number"><?php echo module_number($row['rpm'], 0); ?></td>
<td><?php echo module_html($row['metric']); ?></td>
<td class="module-table__number"><?php echo module_number($row['metric_value'], 1); ?></td>
<td><?php echo module_html(strtoupper($row['metric_unit'])); ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="module-divider"></div>
<div class="module-row">
<span class="module-row__label">Imbibition</span>
<span class="module-row__value"><?php echo module_number($westImbibition, 0); ?> GPM</span>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,14 @@
<?php
include("../dbinfo.php");
$con=mysqli_connect($host,$username,$password,$database);
$query = "SELECT DISTINCT record FROM record ORDER BY record DESC LIMIT 1";
$result=mysqli_query($con,$query);
$include1=mysqli_fetch_array($result,MYSQLI_ASSOC);
mysqli_close($con);
?>
<?php echo round($include1['record']); ?>

View File

@@ -0,0 +1,14 @@
<?php
include("../dbinfo.php");
$con=mysqli_connect($host,$username,$password,$database);
$query = "SELECT DISTINCT record, timestamp FROM record ORDER BY record DESC LIMIT 1";
$result=mysqli_query($con,$query);
$include1=mysqli_fetch_array($result,MYSQLI_ASSOC);
mysqli_close($con);
?>
<?php echo date('F, d', strtotime($include1['timestamp'])); ?>

View File

@@ -0,0 +1,232 @@
<?php
include("../../items2dec.php");
?>
<!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv TRUCK DUMP, TABLES AND KNIVES vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
<table class="tftable2">
<tr>
<td width="1000%" align="center" colspan="6" border="0"><font color="#00BFFF"><i>TRUCK DUMP / TABLES / KNIVES</i></font></td>
</tr>
</table>
<!-- ****************************************** ROW START ******************************************** -->
<!-- ****************************************** ROW END ******************************************** -->
<table class="tftable1" border="1">
<tr>
<?php
if ($value['LATCHON'] == 0)
echo "<td colspan=\"2\" align=\"center\" bgcolor=\"#0B3B17\" width=\"11%\"><font color=\"#e0e0e0\">Truck Dump</font></td>";
if ($value['LATCHON'] == 1)
echo "<td colspan=\"2\" align=\"center\" bgcolor=\"#8A0808\"><font color=\"#e0e0e0\">Truck Dump</font></td>";
?>
<td colspan="2" align="center" bgcolor="#0B173B" width="11%"><font color="#e0e0e0">Knife 1</font></td>
<td colspan="2" align="center" bgcolor="#0B173B" width="11%"><font color="#e0e0e0">Knife 2</font></td>
<td colspan="2" align="center" bgcolor="#0B173B" width="11%"><font color="#e0e0e0">Knife 3</font></td>
<td colspan="2" align="center" bgcolor="#0B173B" width="11%"><font color="#e0e0e0">Shredder</font></td>
<td colspan="2" align="center" bgcolor="#2E2E2E" width="11%"><font color="#e0e0e0">S Table</font></td>
<td colspan="2" align="center" bgcolor="#2E2E2E" width="11%"><font color="#e0e0e0">NE Table</font></td>
<td colspan="2" align="center" bgcolor="#2E2E2E" width="11%"><font color="#e0e0e0">W Table</font></td>
<td colspan="2" align="center" bgcolor="#2E2E2E" width="11%"><font color="#e0e0e0">W Belt</font></td>
</tr>
<tr>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">PV</font></td>
<td align="left" bgcolor="#0B173B" width="100"><font color="#00FF00"><?php echo $value['TD INPUT']; ?></font></td>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">PSI</font></td>
<td align="left" bgcolor="#0B173B" width="100"><font color="#00FF00"><?php echo $value["KNF1PRES"]; ?></font></td>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">PSI</font></td>
<td align="left" bgcolor="#0B173B" width="100"><font color="#00FF00"><?php echo $value['KNF2PRES']; ?></font></td>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">PSI</font></td>
<td align="left" bgcolor="#0B173B" width="100"><font color="#00FF00"><?php echo $value['KNF3PRES']; ?></font></td>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">PSI</font></td>
<td align="left" bgcolor="#0B173B" width="100"><font color="#00FF00"></font></td>
<td bgcolor="#2E2E2E" align="right"><font color="#e0e0e0">PV</font></td>
<td align="left" bgcolor="#2E2E2E" width="100"><font color="#00FF00"><?php echo $value['SE SCALE']; ?></font></td>
<td bgcolor="#2E2E2E" align="right"><font color="#e0e0e0">PV</font></td>
<td align="left" bgcolor="#2E2E2E" width="100"><font color="#00FF00"><?php echo $value['NE SCALE']; ?></font></td>
<td bgcolor="#2E2E2E" align="right"><font color="#e0e0e0">PV</font></td>
<td align="left" bgcolor="#2E2E2E" width="100"><font color="#00FF00"><?php echo $value['W SCALE']; ?></font></td>
<td bgcolor="#2E2E2E" align="right"><font color="#e0e0e0">PV</font></td>
<td align="left" bgcolor="#2E2E2E" width="100"><font color="#00FF00"></font></td>
</tr>
<tr>
<?php
if ($value['TD SP3 ON/OFF'] == 1)
echo "<td bgcolor=\"#0B3B17\" align=\"right\"><font color=\"#e0e0e0\">SP3</font></td>";
if ($value['TD SP3 ON/OFF'] ==0)
echo "<td bgcolor=\"#0B173B\" align=\"right\"><font color=\"#e0e0e0\">SP</font></td>";
?>
<?php
if ($value['TD SP3 ON/OFF'] == 1)
echo "<td align=\"left\" bgcolor=\"#0B173B\"><font color=\"#00FF00\">". $value['TD SP3']." </font></td>";
if ($value['TD SP3 ON/OFF'] == 0)
echo "<td align=\"left\" bgcolor=\"#0B173B\"><font color=\"#00FF00\">". $value['TD SP1'] ."</font></td>";
?>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">RPM</font></td>
<td align="left" bgcolor="#0B173B"><font color="#00FF00"><?php echo $value['K1SPD']; ?></font></td>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">RPM</font></td>
<td align="left" bgcolor="#0B173B"><font color="#00FF00"><?php echo $value['KNF2SPD']; ?></font></td>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">RPM</font></td>
<td align="left" bgcolor="#0B173B"><font color="#00FF00"><?php echo $value['KNF3SPD']; ?></font></td>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">RPM</font></td>
<td align="left" bgcolor="#0B173B"><font color="#00FF00"></font></td>
<?php
if ($value['STABLE SP3 ON/OFF'] == 1)
echo "<td bgcolor=\"#0B3B17\" align=\"right\"><font color=\"#e0e0e0\">SP3</font></td>";
if ($value['STABLE SP3 ON/OFF'] ==0)
echo "<td bgcolor=\"#2E2E2E\" align=\"right\"><font color=\"#e0e0e0\">SP</font></td>";
?>
<?php
if ($value['STABLE SP3 ON/OFF'] == 1)
echo "<td align=\"left\" bgcolor=\"#2E2E2E\"><font color=\"#00FF00\">". $value['STABLE SP1']." </font></td>";
if ($value['STABLE SP3 ON/OFF'] == 0)
echo "<td align=\"left\" bgcolor=\"#2E2E2E\"><font color=\"#00FF00\">". $value['SE SETPOINT'] ."</font></td>";
?>
<?php
if ($value['NE SP SWITCH'] == 1)
echo "<td bgcolor=\"#0B3B17\" align=\"right\"><font color=\"#e0e0e0\">SP3</font></td>";
if ($value['NE SP SWITCH'] ==0)
echo "<td bgcolor=\"#2E2E2E\" align=\"right\"><font color=\"#e0e0e0\">SP</font></td>";
?>
<?php
if ($value['NE SP SWITCH'] == 1)
echo "<td align=\"left\" bgcolor=\"#2E2E2E\"><font color=\"#00FF00\">". $value['NE SETPOINT2']." </font></td>";
if ($value['NE SP SWITCH'] == 0)
echo "<td align=\"left\" bgcolor=\"#2E2E2E\"><font color=\"#00FF00\">". $value['NE SETPOINT'] ."</font></td>";
?>
<?php
if ($value['W SP SWITCH'] == 1)
echo "<td bgcolor=\"#0B3B17\" align=\"right\"><font color=\"#e0e0e0\">SP3</font></td>";
if ($value['W SP SWITCH'] == 0)
echo "<td bgcolor=\"#2E2E2E\" align=\"right\"><font color=\"#e0e0e0\">SP</font></td>";
?>
<?php
if ($value['W SP SWITCH'] == 1)
echo "<td align=\"left\" bgcolor=\"#2E2E2E\"><font color=\"#00FF00\">". $value['W SETPOINT2']." </font></td>";
if ($value['W SP SWITCH'] == 0)
echo "<td align=\"left\" bgcolor=\"#2E2E2E\"><font color=\"#00FF00\">". $value['W SETPOINT'] ."</font></td>";
?>
<td bgcolor="#2E2E2E" align="right"><font color="#e0e0e0">RPM</font></td>
<td align="left" bgcolor="#2E2E2E"><font color="#00FF00"></font></td>
</tr>
<tr>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">Output</font></td>
<td align="left" bgcolor="#0B173B"><font color="#00FF00"><?php echo $value['TD OUTPUT']; ?></font></td>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">Output</font></td>
<td align="left" bgcolor="#0B173B"><font color="#00FF00"><?php echo $value['KNIFE1OP']; ?></font></td>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">Output</font></td>
<td align="left" bgcolor="#0B173B"><font color="#00FF00"><?php echo $value['KNIFE2OP']; ?></font></td>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">Output</font></td>
<td align="left" bgcolor="#0B173B"><font color="#00FF00"><?php echo $value['KNIFE3OP']; ?></font></td>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">Output</font></td>
<td align="left" bgcolor="#0B173B"><font color="#00FF00"></font></td>
<td bgcolor="#2E2E2E" align="right"><font color="#e0e0e0">Output</font></td>
<td align="left" bgcolor="#2E2E2E"><font color="#00FF00"><?php echo $value['SE OUTPUT']; ?></font></td>
<td bgcolor="#2E2E2E" align="right"><font color="#e0e0e0">Output</font></td>
<td align="left" bgcolor="#2E2E2E"><font color="#00FF00"><?php echo $value['NE OUTPUT']; ?></font></td>
<td bgcolor="#2E2E2E" align="right"><font color="#e0e0e0">Output</font></td>
<td align="left" bgcolor="#2E2E2E"><font color="#00FF00"><?php echo $value['W OUTPUT']; ?></font></td>
<td bgcolor="#2E2E2E" align="right"><font color="#e0e0e0">Output</font></td>
<td align="left" bgcolor="#2E2E2E"><font color="#00FF00"></font></td>
</tr>
<tr>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">RatioN</font></td>
<td align="left" bgcolor="#0B173B"><font color="#00FF00"><?php echo $value['TD RATIO']; ?></font></td>
<td colspan="2" align="center" bgcolor="#0B173B"><font color="#e0e0e0">
<?php
if ($value['KC1'] == 1)
echo "<font color=\"#00FF00\">Control</font>";
if ($value['KC1'] == 0)
echo "<font color=\"#FF0000\">Knife</font>";
?>
</font></td>
<td colspan="2" align="center" bgcolor="#0B173B"><font color="#e0e0e0">
<?php
if ($value['KC2'] == 1)
echo "<font color=\"#00FF00\">Control</font>";
if ($value['KC2'] == 0)
echo "<font color=\"#FF0000\">Knife</font>";
?>
</font></td>
<td colspan="2" align="center" bgcolor="#0B173B"><font color="#e0e0e0">
<?php
if ($value['KC3'] == 1)
echo "<font color=\"#00FF00\">Control</font>";
if ($value['KC3'] == 0)
echo "<font color=\"#FF0000\">Knife</font>";
?>
</font></td>
<td colspan="2" align="center" bgcolor="#0B173B"><font color="#e0e0e0">
<?php
if ($value['KC3'] == 1)
echo "<font color=\"#00FF00\">Control</font>";
if ($value['KC3'] == 0)
echo "<font color=\"#FF0000\">Knife</font>";
?>
</font></td>
<td colspan="2" align="center" bgcolor="#2E2E2E"><font color="#e0e0e0">
<?php
if ($value['SAM'] == 0)
echo "<font color=\"#00FF00\">Auto</font>";
if ($value['SAM'] == 1)
echo "<font color=\"#FF0000\">Manual</font>";
?>
</font></td>
<td colspan="2" align="center" bgcolor="#2E2E2E"><font color="#e0e0e0">
<?php
if ($value['NAM'] == 0)
echo "<font color=\"#00FF00\">Auto</font>";
if ($value['NAM'] == 1)
echo "<font color=\"#FF0000\">Manual</font>";
?>
</font></td>
<td colspan="2" align="center" bgcolor="#2E2E2E"><font color="#e0e0e0">
<?php
if ($value['WAM'] == 0)
echo "<font color=\"#00FF00\">Auto</font>";
if ($value['WAM'] == 1)
echo "<font color=\"#FF0000\">Manual</font>";
?>
</font></td>
<td colspan="2" align="center" bgcolor="#2E2E2E"><font color="#e0e0e0">
<?php
if ($value['WAM'] == 0)
echo "<font color=\"#00FF00\">Auto</font>";
if ($value['WAM'] == 1)
echo "<font color=\"#FF0000\">Manual</font>";
?>
</font></td>
</tr>
<tr>
<td bgcolor="#0B173B" align="right"><font color="#e0e0e0">RatioS</font></td>
<td align="left" bgcolor="#0B173B"><font color="#00FF00"><?php echo $value['TD RATIO']; ?></font></td>
<td colspan="2" align="center" bgcolor="#0B173B"><font color="#e0e0e0">
<?php
if ($value['TD MILLGROUND'] == 0)
echo "<font color=\"#00FF00\">Dump Mill</font>";
if ($value['TD MILLGROUND'] == 1)
echo "<font color=\"#FF0000\">Dump Ground</font>";
?>
</font></td>
<td colspan="3"><font color="#e0e0e0">Truck Dump Scale:</font></td>
<?php
if ($value['TDBELTSCALEONOFF'] == 0)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#0B3B17\"><font color=\"#e0e0e0\">ON</font></td>";
if ($value['TDBELTSCALEONOFF'] == 1)
echo "<td colspan=\"1\" align=\"center\" bgcolor=\"#8A0808\"><font color=\"#e0e0e0\">OFF</font></td>";
?>
<td align="right"><font color="00FF00"><b><?php echo $value['TDBELTSCALE']; ?></b></font></td>
<td><font color="#e0e0e0">LBS</font></td>
</tr>
</table>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF TRUCK DUMP, TABLES AND KNIVES ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF PAGE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->

View File

@@ -0,0 +1,55 @@
<?php
// phpcs:ignoreFile
declare(strict_types=1);
include __DIR__ . '/../../items.php';
require_once __DIR__ . '/module-helpers.php';
$syrupOverflow = module_numeric($value['Syrup Overflow Lvl'] ?? null) ?? 0.0;
$syrupRcvr = module_numeric($value['Syrup RCVR'] ?? null) ?? 0.0;
$totalSyrup = ($syrupOverflow * 0.82569) + ($syrupRcvr * 0.17431);
$tanks = [
['label' => 'Juice Tank 1', 'value' => module_numeric($value['Juice Tank1'] ?? null)],
['label' => 'Juice Tank 2', 'value' => module_numeric($value['Juice Tank2'] ?? null)],
['label' => 'Syrup Receiver', 'value' => module_numeric($value['Syrup RCVR'] ?? null)],
['label' => 'Syrup Overflow', 'value' => module_numeric($value['Syrup Overflow Lvl'] ?? null)],
['label' => 'Total Syrup', 'value' => module_numeric($totalSyrup)],
['label' => 'A1 Receiver', 'value' => module_numeric($value['A1 RCVR'] ?? null)],
['label' => 'A1 Overflow', 'value' => module_numeric($value['A1 Molasses Overflow Lvl'] ?? null)],
['label' => 'A2 Receiver', 'value' => module_numeric($value['A2 RCVR'] ?? null)],
['label' => 'A2 Overflow', 'value' => module_numeric($value['A2 Molasses Overflow Lvl'] ?? null)],
['label' => 'B Receiver', 'value' => module_numeric($value['B RCVR'] ?? null)],
['label' => 'B Overflow', 'value' => module_numeric($value['B Molasses Overflow Lvl'] ?? null)],
];
$tankGroups = array_chunk($tanks, (int) ceil(count($tanks) / 2));
?>
<section class="module-card module-card--tight">
<div class="module-heading">
<h2 class="module-heading__title">Tank Levels</h2>
<span class="module-heading__meta">Percent levels across juice, syrup, and molasses</span>
</div>
<div class="module-grid module-grid--two">
<?php foreach ($tankGroups as $group) : ?>
<div class="module-stack">
<?php foreach ($group as $tank) : ?>
<?php $percent = module_clamp_percent($tank['value']); ?>
<div class="module-subcard module-subcard--compact">
<div class="module-row">
<span class="module-row__label"><?php echo module_html($tank['label']); ?></span>
<span class="module-row__value"><?php echo module_number($tank['value'], 0); ?>%</span>
</div>
<div class="module-progress">
<div class="module-bar">
<div class="module-bar__fill" style="width: <?php echo number_format($percent, 2); ?>%;"></div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
</div>
</section>

View File

@@ -0,0 +1,59 @@
<?php
// phpcs:ignoreFile
declare(strict_types=1);
include __DIR__ . '/../../items.php';
require_once __DIR__ . '/module-helpers.php';
$syrupOverflow = module_numeric($value['Syrup Overflow Lvl'] ?? null) ?? 0.0;
$syrupRcvr = module_numeric($value['Syrup RCVR'] ?? null) ?? 0.0;
$totalSyrup = ($syrupOverflow * 0.82569) + ($syrupRcvr * 0.17431);
$tanks = [
['label' => 'Juice Tank 1', 'value' => module_numeric($value['Juice Tank1'] ?? null)],
['label' => 'Juice Tank 2', 'value' => module_numeric($value['Juice Tank2'] ?? null)],
['label' => 'Syrup Receiver', 'value' => module_numeric($value['Syrup RCVR'] ?? null)],
['label' => 'Syrup Overflow', 'value' => module_numeric($value['Syrup Overflow Lvl'] ?? null)],
['label' => 'Total Syrup', 'value' => module_numeric($totalSyrup)],
['label' => 'Condensate Water', 'value' => module_numeric($value['CondensateWater'] ?? null)],
['label' => 'Sweet Water', 'value' => module_numeric($value['SweetwaterTank'] ?? null)],
['label' => 'Cold Water Injection', 'value' => module_numeric($value['Cold Water Injection LVL'] ?? null)],
['label' => 'A1 Receiver', 'value' => module_numeric($value['A1 RCVR'] ?? null)],
['label' => 'A1 Overflow', 'value' => module_numeric($value['A1 Molasses Overflow Lvl'] ?? null)],
['label' => 'A2 Receiver', 'value' => module_numeric($value['A2 RCVR'] ?? null)],
['label' => 'A2 Overflow', 'value' => module_numeric($value['A2 Molasses Overflow Lvl'] ?? null)],
['label' => 'B Receiver', 'value' => module_numeric($value['B RCVR'] ?? null)],
['label' => 'B Overflow', 'value' => module_numeric($value['B Molasses Overflow Lvl'] ?? null)],
['label' => 'Flash Tank', 'value' => module_numeric($value['FlashTankLVL'] ?? null)],
];
$tankGroups = array_chunk($tanks, (int) ceil(count($tanks) / 2));
?>
<section class="module-card module-card--tight">
<div class="module-heading">
<h2 class="module-heading__title">Tank Levels (Stacked)</h2>
<span class="module-heading__meta">Combined juice, syrup, water, and molasses storage</span>
</div>
<div class="module-grid module-grid--two">
<?php foreach ($tankGroups as $group) : ?>
<div class="module-stack">
<?php foreach ($group as $tank) : ?>
<?php $percent = module_clamp_percent($tank['value']); ?>
<div class="module-subcard module-subcard--compact">
<div class="module-row">
<span class="module-row__label"><?php echo module_html($tank['label']); ?></span>
<span class="module-row__value"><?php echo module_number($tank['value'], 0); ?>%</span>
</div>
<div class="module-progress">
<div class="module-bar">
<div class="module-bar__fill" style="width: <?php echo number_format($percent, 2); ?>%;"></div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
</div>
</section>

View File

@@ -0,0 +1,49 @@
<?php
// phpcs:ignoreFile
declare(strict_types=1);
include __DIR__ . '/../../items.php';
require_once __DIR__ . '/module-helpers.php';
$syrupOverflow = module_numeric($value['Syrup Overflow Lvl'] ?? null) ?? 0.0;
$syrupRcvr = module_numeric($value['Syrup RCVR'] ?? null) ?? 0.0;
$totalSyrup = ($syrupOverflow * 0.82569) + ($syrupRcvr * 0.17431);
$tanks = [
['label' => 'Juice Tank 1', 'value' => module_numeric($value['Juice Tank1'] ?? null)],
['label' => 'Juice Tank 2', 'value' => module_numeric($value['Juice Tank2'] ?? null)],
['label' => 'Syrup Receiver', 'value' => module_numeric($value['Syrup RCVR'] ?? null)],
['label' => 'Syrup Overflow', 'value' => module_numeric($value['Syrup Overflow Lvl'] ?? null)],
['label' => 'Total Syrup', 'value' => module_numeric($totalSyrup)],
['label' => 'A1 Receiver', 'value' => module_numeric($value['A1 RCVR'] ?? null)],
['label' => 'A1 Overflow', 'value' => module_numeric($value['A1 Molasses Overflow Lvl'] ?? null)],
['label' => 'A2 Receiver', 'value' => module_numeric($value['A2 RCVR'] ?? null)],
['label' => 'A2 Overflow', 'value' => module_numeric($value['A2 Molasses Overflow Lvl'] ?? null)],
['label' => 'B Receiver', 'value' => module_numeric($value['B RCVR'] ?? null)],
['label' => 'B Overflow', 'value' => module_numeric($value['B Molasses Overflow Lvl'] ?? null)],
['label' => 'Flash Tank', 'value' => module_numeric($value['FlashTankLVL'] ?? null)],
['label' => 'Condensate Water', 'value' => module_numeric($value['CondensateWater'] ?? null)],
['label' => 'Sweet Water', 'value' => module_numeric($value['SweetwaterTank'] ?? null)],
['label' => 'Cold Water Injection', 'value' => module_numeric($value['Cold Water Injection LVL'] ?? null)],
];
?>
<section class="module-card module-card--tight">
<div class="module-heading">
<h2 class="module-heading__title">Tank Levels (Vertical)</h2>
<span class="module-heading__meta">Quick scan of tank headspace</span>
</div>
<div class="module-vertical-grid">
<?php foreach ($tanks as $tank) : ?>
<?php $percent = module_clamp_percent($tank['value']); ?>
<div class="module-vertical">
<div class="module-vertical__bar">
<div class="module-vertical__fill" style="height: <?php echo number_format($percent, 2); ?>%;"></div>
</div>
<div class="module-vertical__value"><?php echo module_number($tank['value'], 0); ?>%</div>
<div class="module-vertical__label"><?php echo module_html($tank['label']); ?></div>
</div>
<?php endforeach; ?>
</div>
</section>

View File

@@ -0,0 +1,35 @@
<?php
$serverName = "CBM2K12\SQLEXPRESS";
$uid = "cbmclient";
$pwd = "ascbm2k";
$connectionInfo = array( "UID"=>$uid, "PWD"=>$pwd,'ReturnDatesAsStrings'=> true, "CharacterSet" => 'utf-8', "Database"=>"SugarCaneScale" );
/* Connect using SQL Server Authentication. */
$conn = sqlsrv_connect( $serverName, $connectionInfo);
if( $conn === false )
{
echo "Unable to connect.</br>";
die( print_r( sqlsrv_errors(), true));
}
$sql = "SELECT ROUND (Tons,0) AS Tons FROM LoadData WHERE CropDay = ( SELECT Max(CropDay) FROM LoadData)";
$stmt = sqlsrv_query( $conn, $sql );
if( $stmt === false) {
die( print_r( sqlsrv_errors(), true) );
}
$tonsin = 0;
while( $rowtonsin = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_ASSOC) )
{
$tonsin += $rowtonsin['Tons'];
}
//end
?>
<?php echo $tonsin; ?>
<?
$db = null;
?>

View File

@@ -0,0 +1,28 @@
<?php
$servername = "192.168.0.2";
$username = "corey";
$password = "41945549";
$dbname = "controls";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$query = "SELECT DISTINCT PREVTONS FROM totaltons";
$result=$conn->query($query);
$tonsin = 0;
if ($result->num_rows > 0) {
// output data of each row
while($rowtotground = $result->fetch_assoc()) {
$tonsin += $rowtotground['PREVTONS'];
}
} else {
echo "0 results";
}
$conn->close();
?>
<?php echo ($tonsin)+0; ?>

View File

@@ -0,0 +1,13 @@
<?php
include("../../dbinfo.php");
$con=mysqli_connect($host,$username,$password,$database);
$query = "SELECT AVG(wtonshr) AS rate FROM (SELECT wtonshr FROM milling ORDER BY id DESC LIMIT 900) tbl";
$result=mysqli_query($con,$query);
$row3=mysqli_fetch_assoc($result);
mysqli_close($con);
?>
<?php echo round($row3['rate'],0); ?>

View File

@@ -0,0 +1,13 @@
<?php
include("../../dbinfo.php");
$con=mysqli_connect($host,$username,$password,$database);
$query = "SELECT AVG(wtonshr) AS rate FROM (SELECT wtonshr FROM milling ORDER BY id DESC LIMIT 600) tbl";
$result=mysqli_query($con,$query);
$roww24hravg=mysqli_fetch_array($result, MYSQLI_ASSOC);
mysqli_close($con);
echo round($roww24hravg['rate'],0)*24;
?>

View File

@@ -0,0 +1,33 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "SELECT (SELECT AVG(wtonshr) FROM milling ORDER BY id DESC LIMIT 600) AS rate, (SELECT avgtcd FROM milling ORDER BY id DESC LIMIT 1) AS eavg";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f1=mysql_result($result,$i,"rate");
$f2=mysql_result($result,$i,"eavg");
?>
<?php echo round($f1,0)*24; ?>
<?php
$i++;
}
?>

View File

@@ -0,0 +1,15 @@
<?php
include("../dbinfo.php");
$con=mysqli_connect($host,$username,$password,$database);
$query = "SELECT ((SELECT westtotground FROM westtotalground ORDER BY id DESC LIMIT 1) - (SELECT westtotground FROM westtotalground ORDER BY id DESC LIMIT 899, 1))*4 AS westavg";
$result=mysqli_query($con,$query);
$include4=mysqli_fetch_array($result,MYSQLI_ASSOC);
mysqli_close($con);
?>
<?php echo round($include4['westavg']); ?>

View File

@@ -0,0 +1,32 @@
<?php
error_reporting(E_ERROR);
$username="corey";
$password="41945549";
$database="controls";
mysql_connect('127.0.0.1',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "SELECT AVG(wtonshr) AS rate FROM (SELECT wtonshr FROM milling ORDER BY id DESC LIMIT 600) tbl";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<?php
$i=0;
while ($i < $num) {
$f1=mysql_result($result,$i,"rate");
?>
<?php echo round($f1,0); ?>
<?php
$i++;
}
?>

View File

@@ -0,0 +1,9 @@
<?php
$host="192.168.0.2";
$username="corey";
$password="41945549";
$database="controls";
$con = mysqli_connect($host ,$username, $password, $database);
@mysqli_select_db($con, $database) or die( "Unable to select database");
?>

View File

@@ -0,0 +1,6 @@
<?php
$host="192.168.0.10";
$username="corey";
$password="41945549";
$database="controls";
?>

View File

@@ -0,0 +1,5 @@
<?php include("../data/header.php");?>
<?php include("../data/newgeneralwithsteam.php");?>
<?php include("../data/evaporators.php");?>
<?php include("../data/tanklvlsvert.php");?>
<?php include("../data/dryers.php");?>

View File

@@ -0,0 +1,32 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
<link href="../style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>LASUCA Controls </title>
<script type="text/javascript" src="../script.js"></script>
<script src="../js/prototype.js" type="text/javascript"></script>
<script src="../js/scriptaculous.js" type="text/javascript"></script>
<script type="text/javascript">
function showHint()
{
var sid = Math.random();
new Ajax.Updater('overview_values', 'evaporators.php?sid=' + sid, {asynchronous:true});
}
function startShowing()
{
new PeriodicalExecuter(showHint, 1);
new PeriodicalExecuter(function(pe) {}, 5);
}
startShowing();
</script>
</head>
<body bgcolor="#000000">
<div id='overview_values' name='overview_values'></div>
</body>
</html>

View File

@@ -0,0 +1,32 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
<link href="../style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>LASUCA Controls </title>
<script type="text/javascript" src="../script.js"></script>
<script src="../js/prototype.js" type="text/javascript"></script>
<script src="../js/scriptaculous.js" type="text/javascript"></script>
<script type="text/javascript">
function showHint()
{
var sid = Math.random();
new Ajax.Updater('overview_values', 'main.php?sid=' + sid, {asynchronous:true});
}
function startShowing()
{
new PeriodicalExecuter(showHint, 1);
new PeriodicalExecuter(function(pe) {}, 5);
}
startShowing();
</script>
</head>
<body bgcolor="#000000">
<div id='overview_values' name='overview_values'></div>
</body>
</html>

View File

@@ -0,0 +1,6 @@
<?php include("../data/header.php");?>
<?php include("../data/newgeneral.php");?>
<?php include("../data/newmills.php");?>
<?php include("../data/boilersfull.php");?>
<?php include("../data/tanklevelsbar.php");?>

View File

@@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>LASUCA Controls • Factory Overview</title>
<link rel="stylesheet" href="dashboard.css?v=1" />
</head>
<body>
<main class="board-shell">
<header class="board-header">
<div>
<h1 class="board-header__title">LASUCA Controls</h1>
<div class="board-header__meta">
<span>Factory overview display</span>
</div>
</div>
<div class="board-header__meta board-header__status">
<span>Local time <time data-board-clock>--</time></span>
<span>Last data update <time data-refresh-status>--</time></span>
<span
class="board-header__error"
data-refresh-error
aria-hidden="true"
></span>
</div>
</header>
<div class="board-content" data-board-root>
<div class="board-loader">Loading live data…</div>
</div>
</main>
<script src="dashboard.js?v=1" defer></script>
</body>
</html>

View File

@@ -0,0 +1,32 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
<link href="style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>LASUCA Controls </title>
<script type="text/javascript" src="script.js"></script>
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js" type="text/javascript"></script>
<script type="text/javascript">
function showHint()
{
var sid = Math.random();
new Ajax.Updater('overview_values', 'main2.php?sid=' + sid, {asynchronous:true});
}
function startShowing()
{
new PeriodicalExecuter(showHint, 3);
new PeriodicalExecuter(function(pe) {}, 5);
}
startShowing();
</script>
</head>
<body bgcolor="#000000">
<div id='overview_values' name='overview_values'></div>
</body>
</html>

View File

@@ -0,0 +1,79 @@
/* --------------------------------------------------------------------------------------------- */
/* */
/* For the full range of options and parameter meanings please see:- */
/* */
/* http://www.jpowered.com/php-scripts/adv-graph-chart/documentation/configurationOptions.htm */
/* */
/* --------------------------------------------------------------------------------------------- */
width: 700
height: 400
series1: #80C2FF|Product X|8|pluscross|true|solid|
backgroundcolor: #FFDA80
grid: true
axis: true
3d: false
ndecplaces: 0
thousandseparator: ,
gridbgcolor: #FFEDBF
axiscolor: #005EB3
floorcolor: light gray
gridcolor: #80C2FF
gridstyle: dotted
titletext: Product Sales by Month
titlefont: Arial
titlefontsize: 12
titlefontbold: true
titlefontitalic: false
titlecolor: #005EB3
titleposition: -1,50
ytitletext: Value
ytitlefont: Arial
ytitlefontsize: 11
ytitlefontbold: true
ytitlefontitalic: false
ytitlecolor: #005EB3
ylabels: true
ylabelcolor: #005EB3
ylabelpre: $
ylabelpost:
ylabelfont: Arial
ylabelfontsize: 9
ylabelfontbold: false
ylabelfontitalic: false
xtitletext: Month
xtitlefont: Arial
xtitlefontsize: 11
xtitlefontbold: true
xtitlefontitalic: false
xtitlecolor: #005EB3
xlabels: January|February|March|April|May|June|July|August|September|October|November|December|
xlabelorientation: Up Angle
xlabeloffset: 0
xlabelfont: Arial
xlabelfontsize: 10
xlabelfontbold: false
xlabelfontitalic: false
xlabelcolor: #005EB3
legend: true
legendstyle: horizontal
legendbgcolor: #FFEDBF
legendbordercolor: #FFEDBF
legendtextcolor: #005EB3
legendtitle:
legendfont: Arial
legendfontsize: 10
legendfontbold: false
legendfontitalic: true

View File

@@ -0,0 +1,82 @@
/* --------------------------------------------------------------------------------------------- */
/* */
/* For the full range of options and parameter meanings please see:- */
/* */
/* http://www.jpowered.com/php-scripts/adv-graph-chart/documentation/configurationOptions.htm */
/* */
/* --------------------------------------------------------------------------------------------- */
width: 700
height: 400
series1: #FF9900|Product X|8|box|false|dotted dashed|
backgroundcolor: #FFCC80
grid: true
axis: true
3d: true
depth3d: 20
vspace: 25
nrows: 10
ndecplaces: 0
chartscale: 100
chartstarty: 0
gridbgcolor: #FFE6BF
axiscolor: #B36B00
floorcolor: #FFE6BF
gridcolor: #B36B00
gridstyle: dotted
titletext: Total Score for the Season
titlefont: Arial
titlefontsize: 12
titlefontbold: true
titlefontitalic: false
titlecolor: #24006B
titleposition: -1,50
ytitletext: Score
ytitlefont: Arial
ytitlefontsize: 11
ytitlefontbold: true
ytitlefontitalic: false
ytitlecolor: #24006B
ylabels: true
ylabelcolor: #24006B
ylabelpost: pts
ylabelfont: Arial
ylabelfontsize: 9
ylabelfontbold: false
ylabelfontitalic: false
xtitletext: Player
xtitlefont: Arial
xtitlefontsize: 11
xtitlefontbold: true
xtitlefontitalic: false
xtitlecolor: #24006B
xlabels: John|Robert|Janice|Alf|Susan|
xlabelorientation: Up Angle
xlabeloffset: 0
xlabelfont: Arial
xlabelfontsize: 10
xlabelfontbold: false
xlabelfontitalic: false
xlabelcolor: #24006B
legend: true
legendstyle: horizontal
legendbgcolor: #FFE6BF
legendbordercolor: #B36B00
legendtextcolor: #24006B
legendtitle:
legendfont: Arial
legendfontsize: 10
legendfontbold: false
legendfontitalic: true

View File

@@ -0,0 +1,83 @@
/* --------------------------------------------------------------------------------------------- */
/* */
/* For the full range of options and parameter meanings please see:- */
/* */
/* http://www.jpowered.com/php-scripts/adv-graph-chart/documentation/configurationOptions.htm */
/* */
/* --------------------------------------------------------------------------------------------- */
width: 700
height: 400
series1: 255,80,30|Team A|10|triangle|true|solid|
series2: 10,122,164|Team B|10|box|true|solid|
series3: 150,90,200|Team C|10|diamond|true|solid|
backgroundcolor: #FFF7C3
grid: true
axis: true
3d: true
depth3d: 20
ndecplaces: 0
displayvalues: false
gridbgcolor: #FFFFFF
axiscolor: dark grey
floorcolor: light gray
gridcolor: grey
gridstyle: dotted
titletext: Scores by Team per Season
titlefont: Arial
titlefontsize: 12
titlefontbold: true
titlefontitalic: false
titlecolor: #075273
titleposition: -1,50
ytitletext: Points
ytitlefont: Arial
ytitlefontsize: 11
ytitlefontbold: true
ytitlefontitalic: false
ytitlecolor: #075273
ylabels: true
ylabelcolor: #075273
ylabelpost: pts
ylabelfont: Arial
ylabelfontsize: 9
ylabelfontbold: false
ylabelfontitalic: false
xtitletext: Season
xtitlefont: Arial
xtitlefontsize: 11
xtitlefontbold: true
xtitlefontitalic: false
xtitlecolor: #075273
xlabels: 2008|2009|2010|2011|
xlabelorientation: horizontal
xlabeloffset: 0
xlabelfont: Arial
xlabelfontsize: 10
xlabelfontbold: false
xlabelfontitalic: false
xlabelcolor: #075273
legend: true
legendstyle: horizontal
legendbgcolor: #FFF7C3
legendbordercolor: #FFF7C3
legendtextcolor: #075273
legendtitle:
legendfont: Arial
legendfontsize: 10
legendfontbold: true
legendfontitalic: false

View File

@@ -0,0 +1,82 @@
/* --------------------------------------------------------------------------------------------- */
/* */
/* For the full range of options and parameter meanings please see:- */
/* */
/* http://www.jpowered.com/php-scripts/adv-graph-chart/documentation/configurationOptions.htm */
/* */
/* --------------------------------------------------------------------------------------------- */
width: 700
height: 400
series1: #228DDD|Team A|6|triangle|true|solid|
series2: #DD2222|Team B|6|diamond|true|solid|
series3: #DD8022|Team C|6|box|true|solid|
backgroundcolor: #222222
grid: true
axis: true
3d: false
depth3d: 5
ndecplaces: 0
displayvalues: false
gridbgcolor: #CCCCCC
axiscolor: dark green
floorcolor: green
gridcolor: #22DD22
gridstyle: dotted
titletext: Scores by Team per Season
titlefont: Arial
titlefontsize: 12
titlefontbold: true
titlefontitalic: false
titlecolor: #22DD22
titleposition: -1,50
ytitletext: Points
ytitlefont: Arial
ytitlefontsize: 11
ytitlefontbold: true
ytitlefontitalic: false
ytitlecolor: #22DD22
ylabels: true
ylabelcolor: #22DD22
ylabelpost: pts
ylabelfont: Arial
ylabelfontsize: 9
ylabelfontbold: false
ylabelfontitalic: false
xtitletext: Season
xtitlefont: Arial
xtitlefontsize: 11
xtitlefontbold: true
xtitlefontitalic: false
xtitlecolor: #22DD22
xlabels: 2000|2001|2002|2003|2004|2005|2006|2007|2008|2009|
xlabelorientation: Up Angle
xlabeloffset: 0
xlabelfont: Arial
xlabelfontsize: 10
xlabelfontbold: false
xlabelfontitalic: false
xlabelcolor: #22DD22
legend: true
legendstyle: horizontal
legendbgcolor: #000000
legendbordercolor: #000000
legendtextcolor: #FFFFFF
legendtitle:
legendfont: Arial
legendfontsize: 10
legendfontbold: false
legendfontitalic: true

View File

@@ -0,0 +1,12 @@
data1series1: 82000
data2series1: 60000
data3series1: 35000
data4series1: 20000
data5series1: 25000
data6series1: 13000
data7series1: 21000
data8series1: 32000
data9series1: 29000
data10series1: 45000
data11series1: 72000
data12series1: 65000

View File

@@ -0,0 +1,5 @@
data1series1: 800
data2series1: 750
data3series1: 350
data4series1: 200
data5series1: 250

View File

@@ -0,0 +1,16 @@
data1series1: 5
data2series1: 7
data3series1: 35
data4series1: 8
data1series2: 82
data2series2: 60
data3series2: 43
data4series2: 55
data1series3: 10
data2series3: 15
data3series3: 12
data4series3: 5

View File

@@ -0,0 +1,34 @@
data1series1: 5
data2series1: 11
data3series1: 35
data4series1: 8
data5series1: 21
data6series1: 24
data7series1: 17
data8series1: 19
data9series1: 32
data10series1: 33
data1series2: 25
data2series2: 11
data3series2: 15
data4series2: 22
data5series2: 60
data6series2: 43
data7series2: 55
data8series2: 49
data9series2: 40
data10series2: 45
data1series3: 10
data2series3: 15
data3series3: 12
data4series3: 5
data5series3: 7
data6series3: 3
data7series3: 7
data8series3: 8
data9series3: 4
data10series3: 9

View File

@@ -0,0 +1,144 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Advanced Graphs and Charts for PHP</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel=STYLESHEET type="text/css" href="../../images/960.css" />
<link rel=STYLESHEET type="text/css" href="../../images/jpprodstyle.css" />
</head>
<body>
<!-- Title area -->
<div class='container_12 header'>
<div class='grid_4'>
<a href='http://www.jpowered.com'><img style='border-width: 0px;' src='../../images/jpowered.gif' width='270' height='60' align='left' alt='JPowered.com' /></a>
</div>
<div class='grid_8 omega product_title'>
<h1>Advanced Graphs and Charts for PHP</h1>
</div>
</div>
<!-- top menu bar -->
<div class='container_12'>
<div class='grid_12 innm'>
<ul>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/">Graph Home</a> </li>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/buy-now.htm" title="Pricing Options and obtaining License keys">Pricing / License Options</a> </li>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/demos/" title="View the Online Demos here">Online Demos</a> </li>
<li> <a href="../../documentation/index.htm">Documentation</a> </li>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/tutorials/" title="Online Tutorials">Tutorials</a> </li>
</ul>
</div>
</div>
<!-- main content -->
<div class='container_12 main_content'>
<div class='grid_9'>
<p>If the graphs below do not display then see the <a href="../../documentation/troubleShooting.htm">Troubleshooting guide</a> for details on how to resolve the problem.</p>
<img src="../../graph/area-graph.php?
data=../demo/areagraph/data1.txt&
config=../demo/areagraph/config1.txt"
width=700
height=400 />
<p>&nbsp;</p>
<img src="../../graph/area-graph.php?
data=../demo/areagraph/data3.txt&
config=../demo/areagraph/config3.txt"
width=700
height=400 />
<p>&nbp;</p>
</div>
<div class='grid_3'>
<p><a href="../../index.htm">Package Index</a></p>
<p><a href="../../documentation/index.htm">Documentation</a></p>
<p><a href="../../documentation/troubleShooting.htm">Troubleshooting Guide</a></p>
<p><a href="http://www.jpowered.com/support.htm">Support</a></p>
<h4>Examples</h4>
<ul>
<li><a href='../examples/dataFiles.htm'>Graphing Data from files</a></li>
<li><a href='../examples/scripts.htm'>Data from external scripts</a></li>
<li><a href='../examples/datafunction.htm'>Custom data function</a></li>
<li><a href='../examples/requestParams.htm'>Utilising request parameters</a></li>
<li><a href='../examples/database.htm'>Plotting data from a database</a></li>
<li><a href='../examples/interface.htm'>Database interface scripts</a></li>
<li><a href='../examples/multiScales.htm'>Multiple Scales, text and images</a></li>
</ul>
<h4>Basic Chart Styles</h4>
<ul>
<li><a href="../../demo/piechart/index.htm">Pie Charts</a></li>
<li><a href="../../demo/xyscatter/index.htm">X-Y Scatter Graphs</a></li>
<li><a href="../../demo/bubblechart/index.htm">Bubble Charts</a></li>
<li><a href="../../demo/areagraph/index.htm">Area Graphs</a></li>
<li><a href="../../demo/linegraph/index.htm">Line Graphs</a></li>
</ul>
<h4>Bar Graphs</h4>
<ul>
<li><a href="../../demo/vbar/index.htm">Vertical Bar Graphs</a></li>
<li><a href="../../demo/svbar/index.htm">Stacked Vertical Bar Graphs</a></li>
<li><a href="../../demo/hbar/index.htm">Horizontal Bar Graphs</a></li>
<li><a href="../../demo/shbar/index.htm">Stacked Horizontal Bar Graphs</a></li>
</ul>
<h4>Cylinder Charts</h4>
<ul>
<li><a href="../../demo/cylinder-Vbar/index.htm">Vertical Cylinder Graphs</a></li>
<li><a href="../../demo/cylinder-SVbar/index.htm">Stacked Vertical Cylinder Graphs</a></li>
<li><a href="../../demo/cylinder-Hbar/index.htm">Horizontal Cylinder Graphs</a></li>
<li><a href="../../demo/cylinder-SHbar/index.htm">Stacked Horizontal Cylinder Graphs</a></li>
</ul>
<h4>Combination Charts</h4>
<ul>
<li><a href="../../demo/combi-Area-SVbar/index.htm">Area and Stacked Vertical Bar Graph</a></li>
<li><a href="../../demo/combi-Area-Vbar/index.htm">Area and Vertical Bar Graph</a></li>
<li><a href="../../demo/combi-Line-SVbar/index.htm">Line and Stacked Vertical Bar Graph</a></li>
<li><a href="../../demo/combi-Line-Vbar/index.htm">Line and Vertical Bar Graph</a></li>
</ul>
<p>&nbsp;</p>
</div>
</div>
<div class='footer'>
<!-- bottom menu bar -->
<div class='container_12'>
<div class='grid_12 innm'>
<ul>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/">Graph Home</a> </li>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/buy-now.htm" title="Pricing Options and obtaining License keys">Pricing / License Options</a> </li>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/demos/" title="View the Online Demos here">Online Demos</a> </li>
<li> <a href="../../documentation/index.htm">Documentation</a> </li>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/tutorials/" title="Online Tutorials">Tutorials</a> </li>
</ul>
</div>
</div>
<!-- footer -->
<div class='container_12'>
<div class="grid_12 mc">[<a href="http://www.jpowered.com/"> JPowered.com </a>] [<a href="http://www.jpowered.com/products.htm" title="More software components for web applications"> More Products </a>] [<a href="http://www.jpowered.com/support.htm" title="For Help and Support, contact us here">Support </a>]</div>
<div class="grid_12 cprt">Copyright &copy; 2011 - 2014 Neutron Solutions Limited - All rights reserved.</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,83 @@
/* --------------------------------------------------------------------------------------------- */
/* */
/* For the full range of options and parameter meanings please see:- */
/* */
/* http://www.jpowered.com/php-scripts/adv-graph-chart/documentation/configurationOptions.htm */
/* */
/* --------------------------------------------------------------------------------------------- */
width: 700
height: 400
series1: red|Product X|left|8|triangle|true|solid|
quality: medium
transparency: 70
maxbubblesize: 80
backgroundcolor: black
grid: true
axis: true
ndecplaces: 0
thousandseparator: ,
displayvalues: true
chartStartY: 0
chartStartX: 0
chartscale: 80000
chartscaleX: 20000
gridbgcolor: #000055
axiscolor: dark grey
floorcolor: light gray
gridcolor: grey
gridstyle: dotted
titletext: Sales vs Downloads
titleposition: -1,50
titlefont: Arial
titlefontsize: 12
titlefontbold: true
titlefontitalic: false
titlecolor: #80FF80
xtitletext: Number of Downloads
xtitlefont: Arial
xtitlefontsize: 11
xtitlefontbold: true
xtitlefontitalic: false
xtitlecolor: #80FF80
ytitletext: Value of Sales
ytitlefont: Arial
ytitlefontsize: 11
ytitlefontbold: true
ytitlefontitalic: false
ytitlecolor: #80FF80
xlabelcolor: #80FF80
xlabelfont: Arial
xlabelfontsize: 10
xlabelfontbold: true
xlabelfontitalic: false
ylabels: true
ylabelfont: Arial
ylabelfontsize: 10
ylabelfontbold: true
ylabelfontitalic: false
ylabelcolor: #80FF80
ylabelpre: $
ylabelpost:
legend: true
legendstyle: horizontal
legendbgcolor: #EEEEEE
legendbordercolor: #CCCCFF
legendtextcolor: #8080B0
legendtitle:
legendfont: Arial
legendfontsize: 10
legendfontbold: false
legendfontitalic: true

View File

@@ -0,0 +1,83 @@
/* --------------------------------------------------------------------------------------------- */
/* */
/* For the full range of options and parameter meanings please see:- */
/* */
/* http://www.jpowered.com/php-scripts/adv-graph-chart/documentation/configurationOptions.htm */
/* */
/* --------------------------------------------------------------------------------------------- */
width: 700
height: 400
series1: red|Product X|left|0|triangle|true|solid|
series2: green|Product Y|left|0|box|true|solid|
series3: blue|Product Z|left|0|diamond|true|solid|
quality: medium
transparency: 70
maxbubblesize: 80
threed: true
backgroundcolor: black
grid: true
axis: true
ndecplaces: 0
thousandseparator: ,
displayvalues: false
chartStartY: 0
chartStartX: 0
chartscale: 80000
chartscaleX: 20000
gridbgcolor: #000055
axiscolor: dark grey
floorcolor: light gray
gridcolor: grey
gridstyle: dotted
titletext: Sales vs Downloads
titleposition: -1,50
titlefont: Arial
titlefontsize: 12
titlefontbold: true
titlefontitalic: false
titlecolor: #8080B0
xtitletext: Number of Downloads
xtitlefont: Arial
xtitlefontsize: 11
xtitlefontbold: true
xtitlefontitalic: false
xtitlecolor: #80FF80
ytitletext: Value of Sales
ytitlefont: Arial
ytitlefontsize: 11
ytitlefontbold: true
ytitlefontitalic: false
ytitlecolor: #80FF80
ylabels: true
ylabelfont: Arial
ylabelfontsize: 9
ylabelfontbold: false
ylabelfontitalic: false
ylabelcolor: black
y2labelcolor: blue
ylabelpre: $
ylabelpost:
xlabelcolor: #80FF80
legend: true
legendstyle: horizontal
legendbgcolor: #EEEEEE
legendbordercolor: #CCCCFF
legendtextcolor: #8080B0
legendtitle:
legendfont: Arial
legendfontsize: 10
legendfontbold: false
legendfontitalic: true

View File

@@ -0,0 +1,80 @@
/* --------------------------------------------------------------------------------------------- */
/* */
/* For the full range of options and parameter meanings please see:- */
/* */
/* http://www.jpowered.com/php-scripts/adv-graph-chart/documentation/configurationOptions.htm */
/* */
/* --------------------------------------------------------------------------------------------- */
width: 700
height: 400
series1: red|Product X|left|8|triangle|true|solid|
quality: medium
transparency: 70
maxbubblesize: 60
backgroundcolor: #DDDDDD
grid: true
axis: true
ndecplaces: 0
thousandseparator: ,
displayvalues: false
chartStartY: 0
chartStartX: 0
chartscale: 80000
chartscaleX: 20000
gridbgcolor: #FFFFFF
axiscolor: dark grey
floorcolor: light gray
gridcolor: grey
gridstyle: dotted
titletext: Sales vs Downloads
titleposition: -1,50
titlefont: Arial
titlefontsize: 12
titlefontbold: true
titlefontitalic: false
titlecolor: #666666
xtitletext: Number of Downloads
xtitlefont: Arial
xtitlefontsize: 11
xtitlefontbold: true
xtitlefontitalic: false
xtitlecolor: #666666
ytitletext: Value of Sales
ytitlefont: Arial
ytitlefontsize: 11
ytitlefontbold: true
ytitlefontitalic: false
ytitlecolor: #666666
ylabels: true
ylabelfont: Arial
ylabelfontsize: 9
ylabelfontbold: false
ylabelfontitalic: false
ylabelcolor: black
y2labelcolor: blue
ylabelpre: $
ylabelpost:
xlabelcolor: #666666
legend: true
legendstyle: horizontal
legendbgcolor: #FFFFFF
legendbordercolor: #666666
legendtextcolor: #666666
legendtitle:
legendfont: Arial
legendfontsize: 10
legendfontbold: false
legendfontitalic: true

View File

@@ -0,0 +1,83 @@
/* --------------------------------------------------------------------------------------------- */
/* */
/* For the full range of options and parameter meanings please see:- */
/* */
/* http://www.jpowered.com/php-scripts/adv-graph-chart/documentation/configurationOptions.htm */
/* */
/* --------------------------------------------------------------------------------------------- */
width: 700
height: 400
series1: red|Product X|left|8|triangle|true|solid|
series2: purple|Product Y|left|8|box|true|solid|
series3: blue|Product Z|left|8|diamond|true|solid|
quality: medium
transparency: 70
maxbubblesize: 80
backgroundcolor: black
grid: true
axis: true
ndecplaces: 0
thousandseparator: ,
displayvalues: false
chartStartY: 0
chartStartX: 0
chartscale: 80000
chartscaleX: 20000
gridbgcolor: #EEFFEE
gridbgcolor2: #CCDDCC
axiscolor: dark grey
floorcolor: light gray
gridcolor: grey
gridstyle: dotted
titletext: Sales vs Downloads
titleposition: -1,50
titlefont: Arial
titlefontsize: 12
titlefontbold: true
titlefontitalic: false
titlecolor: #8080B0
xtitletext: Number of Downloads
xtitlefont: Arial
xtitlefontsize: 11
xtitlefontbold: true
xtitlefontitalic: false
xtitlecolor: #80FF80
ytitletext: Value of Sales
ytitlefont: Arial
ytitlefontsize: 11
ytitlefontbold: true
ytitlefontitalic: false
ytitlecolor: #80FF80
ylabels: true
ylabelfont: Arial
ylabelfontsize: 9
ylabelfontbold: false
ylabelfontitalic: false
ylabelcolor: black
y2labelcolor: blue
ylabelpre: $
ylabelpost:
xlabelcolor: #80FF80
legend: true
legendstyle: horizontal
legendbgcolor: #EEEEEE
legendbordercolor: #CCCCFF
legendtextcolor: #8080B0
legendtitle:
legendfont: Arial
legendfontsize: 10
legendfontbold: false
legendfontitalic: true

View File

@@ -0,0 +1,6 @@
data1series1: 82000,348500,20000
data2series1: 70000,250420,50000
data3series1: 35000,240000,40000
data4series1: 20000,150000,30000
data5series1: 25000,98000,20000
data6series1: 26000,55000,55000

View File

@@ -0,0 +1,32 @@
data1series1: 82000,398500,20000
data2series1: 60000,250420,40000
data3series1: 35000,240000,20000
data4series1: 20000,130000,20000
data5series1: 25000,98000,20000
data6series1: 13000,75000,20000
data7series1: 21000,120000,20000
data8series1: 32000,154000,20000
data9series1: 29000,162000,20000
data10series1: 45000,158000,20000
data11series1: 72000,220000,20000
data12series1: 65000,197000,20000
data1series2: 42000,348500,60000
data2series2: 30000,250420,20000
data3series2: 25000,240000,20000
data4series2: 10000,130000,20000
data5series2: 15000,98000,20000
data6series2: 8000,75000,20000
data7series2: 11000,120000,20000
data8series2: 12000,154000,20000
data9series2: 19000,162000,20000
data10series2: 25000,158000,20000
data11series2: 32000,220000,20000
data12series2: 35000,197000,20000
data1series3: 92000,198500,20000
data2series3: 80000,150420,24000
data3series3: 55000,140000,30000
data4series3: 40000,80000,32000
data5series3: 45000,58000,42000
data6series3: 33000,35000,44000

View File

@@ -0,0 +1,32 @@
data1series1: 82000,398500,20000
data2series1: 60000,250420,21000
data3series1: 35000,240000,22000
data4series1: 20000,130000,23000
data5series1: 25000,98000,24000
data6series1: 13000,75000,25000
data7series1: 21000,120000,26000
data8series1: 32000,154000,27000
data9series1: 29000,162000,28000
data10series1: 45000,158000,29000
data21series1: 42000,348500,31000
data22series1: 30000,250420,32000
data23series1: 25000,240000,33000
data24series1: 10000,230000,34000
data25series1: 15000,98000,35000
data26series1: 8000,75000,36000
data27series1: 11000,220000,37000
data28series1: 12000,254000,20000
data29series1: 19000,262000,20000
data30series1: 25000,128000,20000
data31series1: 92000,298500,20000
data32series1: 80000,250420,20000
data33series1: 55000,140000,20000
data34series1: 40000,80000,20000
data35series1: 45000,58000,20000
data36series1: 33000,35000,20000
data37series1: 41000,60000,20000
data38series1: 52000,74000,20000
data39series1: 49000,82000,20000
data30series1: 65000,78000,20000

View File

@@ -0,0 +1,20 @@
data1series1: 82000,398500,40000
data2series1: 60000,250420,20000
data3series1: 35000,240000,24000
data4series1: 20000,160000,33000
data5series1: 25000,98000,68000
data6series1: 17000,75000,55000
data1series2: 42000,348500,35000
data2series2: 30000,250420,25000
data3series2: 25000,240000,24000
data4series2: 40000,130000,33000
data5series2: 55000,98000,68000
data6series2: 8000,75000,55000
data1series3: 92000,198500,40000
data2series3: 80000,150420,40000
data3series3: 55000,180000,40000
data4series3: 40000,80000,40000
data5series3: 45000,58000,40000
data6series3: 33000,35000,40000

View File

@@ -0,0 +1,145 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Advanced Graphs and Charts for PHP</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel=STYLESHEET type="text/css" href="../../images/960.css" />
<link rel=STYLESHEET type="text/css" href="../../images/jpprodstyle.css" />
</head>
<body>
<!-- Title area -->
<div class='container_12 header'>
<div class='grid_4'>
<a href='http://www.jpowered.com'><img style='border-width: 0px;' src='../../images/jpowered.gif' width='270' height='60' align='left' alt='JPowered.com' /></a>
</div>
<div class='grid_8 omega product_title'>
<h1>Advanced Graphs and Charts for PHP</h1>
</div>
</div>
<!-- top menu bar -->
<div class='container_12'>
<div class='grid_12 innm'>
<ul>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/">Graph Home</a> </li>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/buy-now.htm" title="Pricing Options and obtaining License keys">Pricing / License Options</a> </li>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/demos/" title="View the Online Demos here">Online Demos</a> </li>
<li> <a href="../../documentation/index.htm">Documentation</a> </li>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/tutorials/" title="Online Tutorials">Tutorials</a> </li>
</ul>
</div>
</div>
<!-- main content -->
<div class='container_12 main_content'>
<div class='grid_9'>
<p>If the graphs below do not display then see the <a href="../../documentation/troubleShooting.htm">Troubleshooting guide</a> for details on how to resolve the problem.</p>
<img src="../../graph/bubble-chart.php?
data=../demo/bubblechart/data2.txt&
config=../demo/bubblechart/config2.txt"
width=700
height=400 />
<p>&nbsp;</p>
<img src="../../graph/bubble-chart.php?
data=../demo/bubblechart/data1.txt&
config=../demo/bubblechart/config1.txt"
width=700
height=400 />
<p>&nbsp;</p>
</div>
<div class='grid_3'>
<p><a href="../../index.htm">Package Index</a></p>
<p><a href="../../documentation/index.htm">Documentation</a></p>
<p><a href="../../documentation/troubleShooting.htm">Troubleshooting Guide</a></p>
<p><a href="http://www.jpowered.com/support.htm">Support</a></p>
<h4>Examples</h4>
<ul>
<li><a href='../examples/dataFiles.htm'>Graphing Data from files</a></li>
<li><a href='../examples/scripts.htm'>Data from external scripts</a></li>
<li><a href='../examples/datafunction.htm'>Custom data function</a></li>
<li><a href='../examples/requestParams.htm'>Utilising request parameters</a></li>
<li><a href='../examples/database.htm'>Plotting data from a database</a></li>
<li><a href='../examples/interface.htm'>Database interface scripts</a></li>
<li><a href='../examples/multiScales.htm'>Multiple Scales, text and images</a></li>
</ul>
<h4>Basic Chart Styles</h4>
<ul>
<li><a href="../../demo/piechart/index.htm">Pie Charts</a></li>
<li><a href="../../demo/xyscatter/index.htm">X-Y Scatter Graphs</a></li>
<li><a href="../../demo/bubblechart/index.htm">Bubble Charts</a></li>
<li><a href="../../demo/areagraph/index.htm">Area Graphs</a></li>
<li><a href="../../demo/linegraph/index.htm">Line Graphs</a></li>
</ul>
<h4>Bar Graphs</h4>
<ul>
<li><a href="../../demo/vbar/index.htm">Vertical Bar Graphs</a></li>
<li><a href="../../demo/svbar/index.htm">Stacked Vertical Bar Graphs</a></li>
<li><a href="../../demo/hbar/index.htm">Horizontal Bar Graphs</a></li>
<li><a href="../../demo/shbar/index.htm">Stacked Horizontal Bar Graphs</a></li>
</ul>
<h4>Cylinder Charts</h4>
<ul>
<li><a href="../../demo/cylinder-Vbar/index.htm">Vertical Cylinder Graphs</a></li>
<li><a href="../../demo/cylinder-SVbar/index.htm">Stacked Vertical Cylinder Graphs</a></li>
<li><a href="../../demo/cylinder-Hbar/index.htm">Horizontal Cylinder Graphs</a></li>
<li><a href="../../demo/cylinder-SHbar/index.htm">Stacked Horizontal Cylinder Graphs</a></li>
</ul>
<h4>Combination Charts</h4>
<ul>
<li><a href="../../demo/combi-Area-SVbar/index.htm">Area and Stacked Vertical Bar Graph</a></li>
<li><a href="../../demo/combi-Area-Vbar/index.htm">Area and Vertical Bar Graph</a></li>
<li><a href="../../demo/combi-Line-SVbar/index.htm">Line and Stacked Vertical Bar Graph</a></li>
<li><a href="../../demo/combi-Line-Vbar/index.htm">Line and Vertical Bar Graph</a></li>
</ul>
<p>&nbsp;</p>
</div>
</div>
<div class='footer'>
<!-- bottom menu bar -->
<div class='container_12'>
<div class='grid_12 innm'>
<ul>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/">Graph Home</a> </li>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/buy-now.htm" title="Pricing Options and obtaining License keys">Pricing / License Options</a> </li>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/demos/" title="View the Online Demos here">Online Demos</a> </li>
<li> <a href="../../documentation/index.htm">Documentation</a> </li>
<li> <a href="http://www.jpowered.com/php-scripts/adv-graph-chart/tutorials/" title="Online Tutorials">Tutorials</a> </li>
</ul>
</div>
</div>
<!-- footer -->
<div class='container_12'>
<div class="grid_12 mc">[<a href="http://www.jpowered.com/"> JPowered.com </a>] [<a href="http://www.jpowered.com/products.htm" title="More software components for web applications"> More Products </a>] [<a href="http://www.jpowered.com/support.htm" title="For Help and Support, contact us here">Support </a>]</div>
<div class="grid_12 cprt">Copyright &copy; 2011 - 2014 Neutron Solutions Limited - All rights reserved.</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,88 @@
/* --------------------------------------------------------------------------------------------- */
/* */
/* For the full range of options and parameter meanings please see:- */
/* */
/* http://www.jpowered.com/php-scripts/adv-graph-chart/documentation/configurationOptions.htm */
/* */
/* --------------------------------------------------------------------------------------------- */
width: 700
height: 400
series1: bar|#44BB88|Product X
series2: area|#4444BB|Product Y|10|box|true|dashed
transparency: 70
outline: true
gradientfill: true
backgroundcolor: white
displaybarvalues: false
grid: true
axis: true
3d: false
depth3d: 10
ndecplaces: 0
thousandseparator: ,
barwidth: 45
gridbgcolor: #EEFFEE
axiscolor: dark grey
floorcolor: light gray
gridcolor: grey
gridstyle: dotted
titletext: Product Sales by Month
titlefont: Arial
titlefontsize: 12
titlefontbold: true
titlefontitalic: false
titlecolor: #8080B0
titleposition: -1,50
xtitletext: Month
xtitlefont: Arial
xtitlefontsize: 11
xtitlefontbold: true
xtitlefontitalic: false
xtitlecolor: #8080B0
ytitletext: Value
ytitlefont: Arial
ytitlefontsize: 11
ytitlefontbold: true
ytitlefontitalic: false
ytitlecolor: #8080B0
xlabels: January|February|March|April|May|June|July|August|September|October|November|December|
xlabelorientation: Horizontal
xlabeloffset: 15
xlabelfont: Arial
xlabelfontsize: 10
xlabelfontbold: false
xlabelfontitalic: false
xlabelcolor: #8080B0
ylabels: true
ylabelfont: Arial
ylabelfontsize: 9
ylabelfontbold: false
ylabelfontitalic: false
ylabelcolor: black
y2labelcolor: blue
ylabelpre: $
ylabelpost:
legend: true
legendstyle: horizontal
legendbgcolor: #EEEEEE
legendbordercolor: #CCCCFF
legendtextcolor: #8080B0
legendtitle:
legendfont: Arial
legendfontsize: 10
legendfontbold: false
legendfontitalic: true

View File

@@ -0,0 +1,87 @@
/* --------------------------------------------------------------------------------------------- */
/* */
/* For the full range of options and parameter meanings please see:- */
/* */
/* http://www.jpowered.com/php-scripts/adv-graph-chart/documentation/configurationOptions.htm */
/* */
/* --------------------------------------------------------------------------------------------- */
width: 700
height: 400
series1: bar|orange|Product X|
series2: area|55,200,30|Team A|10|box|true|dashed
transparency: 30
outline: true
gradientfill: true
backgroundcolor: white
grid: true
axis: true
3d: true
depth3d: 20
vspace: 25
nrows: 10
ndecplaces: 0
barwidth: 80
barspacing: 30
gridbgcolor: #000055
axiscolor: dark grey
floorcolor: light gray
gridcolor: grey
gridstyle: dotted
titletext: Total Score for the Season
titlefont: Arial
titlefontsize: 12
titlefontbold: true
titlefontitalic: false
titlecolor: #555555
titleposition: -1,50
xtitletext: Player
xtitlefont: Arial
xtitlefontsize: 11
xtitlefontbold: true
xtitlefontitalic: false
xtitlecolor: #993333
ytitletext: Score
ytitlefont: Arial
ytitlefontsize: 11
ytitlefontbold: true
ytitlefontitalic: false
ytitlecolor: #555555
xlabels: John|Robert|Janice|Alf|Susan|
xlabelorientation: Down Angle
xlabeloffset: 0
xlabelfont: Arial
xlabelfontsize: 10
xlabelfontbold: false
xlabelfontitalic: false
xlabelcolor: #993333
ylabels: true
ylabelfont: Arial
ylabelfontsize: 9
ylabelfontbold: false
ylabelfontitalic: false
ylabelcolor: #555555
ylabelpost: pts
y2labelfont: Arial
y2labelfontsize: 9
y2labelfontbold: false
y2labelfontitalic: false
y2labelcolor: #555555
legend: false
legendfont: Arial
legendfontsize: 10
legendfontbold: false
legendfontitalic: true

View File

@@ -0,0 +1,89 @@
/* --------------------------------------------------------------------------------------------- */
/* */
/* For the full range of options and parameter meanings please see:- */
/* */
/* http://www.jpowered.com/php-scripts/adv-graph-chart/documentation/configurationOptions.htm */
/* */
/* --------------------------------------------------------------------------------------------- */
width: 700
height: 400
series1: bar|255,80,30|Team A|
series2: bar|10,122,164|Team B|
series3: bar|150,90,200|Team C|
series4: area|55,200,30|Team A|10|box|true|dashed
series5: area|255,80,30|Team A|20|triangle|true|dashed
transparency: 40
outline: true
gradientfill: true
backgroundcolor: white
displaybarvalues: false
grid: true
axis: true
3d: false
depth3d: 10
ndecplaces: 0
barwidth: 100
barspacing: 40
gridbgcolor: #EEFFEE
axiscolor: dark grey
floorcolor: light gray
gridcolor: grey
gridstyle: dotted
titletext: Scores by Team per Season
titlefont: Arial
titlefontsize: 12
titlefontbold: true
titlefontitalic: false
titlecolor: #8080B0
titleposition: -1,50
xtitletext: Season
xtitlefont: Arial
xtitlefontsize: 11
xtitlefontbold: true
xtitlefontitalic: false
xtitlecolor: #8080B0
ytitletext: Points
ytitlefont: Arial
ytitlefontsize: 11
ytitlefontbold: true
ytitlefontitalic: false
ytitlecolor: #8080B0
xlabels: 2006|2007|2008|2009|
xlabelorientation: Horizontal
xlabeloffset: 0
xlabelfont: Arial
xlabelfontsize: 10
xlabelfontbold: false
xlabelfontitalic: false
xlabelcolor: #8080B0
ylabels: true
ylabelfont: Arial
ylabelfontsize: 9
ylabelfontbold: false
ylabelfontitalic: false
ylabelcolor: #8080B0
ylabelpost: pt
legend: true
legendstyle: horizontal
legendbgcolor: #EEEEEE
legendbordercolor: #CCCCFF
legendtextcolor: #8080B0
legendtitle:
legendfont: Arial
legendfontsize: 10
legendfontbold: false
legendfontitalic: true

View File

@@ -0,0 +1,89 @@
/* --------------------------------------------------------------------------------------------- */
/* */
/* For the full range of options and parameter meanings please see:- */
/* */
/* http://www.jpowered.com/php-scripts/adv-graph-chart/documentation/configurationOptions.htm */
/* */
/* --------------------------------------------------------------------------------------------- */
width: 700
height: 400
series1: bar|255,80,30|Team A|
series2: bar|10,122,164|Team B|
series3: bar|150,90,200|Team C|
series4: area|55,150,30|Team D|10|box|true|dashed
series5: area|155,40,30|Team E|10|triangle|true|dashed
transparency: 50
outline: true
gradientfill: true
backgroundcolor: white
grid: true
axis: true
3d: true
depth3d: 20
ndecplaces: 0
barwidth: 90
barspacing: 50
gridbgcolor: #EEFFEE
axiscolor: dark grey
floorcolor: light gray
gridcolor: grey
gridstyle: dotted
titletext: Scores by Team per Season
titlefont: Arial
titlefontsize: 12
titlefontbold: true
titlefontitalic: false
titlecolor: #8080B0
titleposition: -1,50
xtitletext: Season
xtitlefont: Arial
xtitlefontsize: 11
xtitlefontbold: true
xtitlefontitalic: false
xtitlecolor: #8080B0
ytitletext: Points
ytitlefont: Arial
ytitlefontsize: 11
ytitlefontbold: true
ytitlefontitalic: false
ytitlecolor: #8080B0
xlabels: 2006|2007|2008|2009|
xlabelorientation: Horizontal
xlabeloffset: 0
xlabelfont: Arial
xlabelfontsize: 10
xlabelfontbold: false
xlabelfontitalic: false
xlabelcolor: #8080B0
ylabels: true
ylabelfont: Arial
ylabelfontsize: 9
ylabelfontbold: false
ylabelfontitalic: false
ylabelcolor: #8080B0
y2labelcolor: blue
ylabelpost: pt
legend: true
legendstyle: horizontal
legendbgcolor: #EEEEEE
legendbordercolor: #CCCCFF
legendtextcolor: #8080B0
legendtitle:
legendfont: Arial
legendfontsize: 10
legendfontbold: false
legendfontitalic: true

Some files were not shown because too many files have changed in this diff Show More