From ae0e1339187372ece7d30e903c8002f687df7410 Mon Sep 17 00:00:00 2001 From: Brian Read Date: Sun, 30 Jun 2024 15:38:42 +0100 Subject: [PATCH] make counts on main table link to SummaryLogs page - WIP --- root/opt/mailstats/html/showSummaryLogs.php | 4 +++- root/opt/mailstats/templates/mailstats.html.pt | 11 +++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/root/opt/mailstats/html/showSummaryLogs.php b/root/opt/mailstats/html/showSummaryLogs.php index 237cbc8..b55720d 100644 --- a/root/opt/mailstats/html/showSummaryLogs.php +++ b/root/opt/mailstats/html/showSummaryLogs.php @@ -31,6 +31,7 @@ if ($hour == 99){ } $stmt->execute(); $result = $stmt->get_result(); +$result_count = $result->num_rows; function generateLogDataTable($logData) { $data = json_decode($logData, true); @@ -73,7 +74,7 @@ function generateLogDataTable($logData) { $keys = array_keys($mergedData); $values = array_values($mergedData); - $output = ''; + $output = '
'; // Divide keys and values into sets of 6 $chunks = array_chunk($keys, 6); @@ -124,6 +125,7 @@ function generateLogDataTable($logData) {
"

Summary Logs for Date:

+

Found records.

diff --git a/root/opt/mailstats/templates/mailstats.html.pt b/root/opt/mailstats/templates/mailstats.html.pt index adf14e9..9192df7 100644 --- a/root/opt/mailstats/templates/mailstats.html.pt +++ b/root/opt/mailstats/templates/mailstats.html.pt @@ -59,8 +59,15 @@ - - + +
Totals Percent HourCell
+ + + Cell + + + Cell +