CDR: Database class integration.

This commit is contained in:
Nate
2019-09-03 08:29:44 -06:00
parent 12a3ca6877
commit cc33248ac7
14 changed files with 707 additions and 614 deletions

View File

@@ -247,13 +247,15 @@
},
yaxis: { min: 0 },
<?php
if ($hours <= 48) {
echo "xaxis: {mode: \"time\",timeformat: \"%d:%H\",minTickSize: [1, \"hour\"]}";
} else if ($hours > 48 && $hours < 168) {
echo "xaxis: {mode: \"time\",timeformat: \"%m:%d\",minTickSize: [1, \"day\"]}";
} else {
echo "xaxis: {mode: \"time\",timeformat: \"%m:%d\",minTickSize: [1, \"month\"]}";
}
if ($hours <= 48) {
echo "xaxis: {mode: \"time\",timeformat: \"%d:%H\",minTickSize: [1, \"hour\"]}";
}
else if ($hours > 48 && $hours < 168) {
echo "xaxis: {mode: \"time\",timeformat: \"%m:%d\",minTickSize: [1, \"day\"]}";
}
else {
echo "xaxis: {mode: \"time\",timeformat: \"%m:%d\",minTickSize: [1, \"month\"]}";
}
?>
});
}
@@ -283,7 +285,7 @@
if ($i <= $hours) {
echo " <td valign='top' class='".$row_style[$c]."'>".($i+1)."</td>\n";
}
elseif ($i == $hours+1) {
else if ($i == $hours+1) {
echo " <br /><br />\n";
echo "</tr>\n";
echo "<tr>\n";
@@ -322,7 +324,7 @@
echo " <td valign='top' class='".$row_style[$c]."'>".(round(escape($row['asr']),2))."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".(round(escape($row['aloc']),2))."&nbsp;</td>\n";
echo "</tr >\n";
if ($c==0) { $c=1; } else { $c=0; }
$c = $c ? 0 : 1;
$i++;
}
echo "</table>\n";
@@ -331,4 +333,4 @@
//show the footer
require_once "resources/footer.php";
?>
?>