From 6cd41f6715d64df9d181961b0df9163499219204 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Wed, 25 Feb 2026 08:29:05 +0100 Subject: [PATCH] Fix summary again. Add band in map legend --- application/views/awards/cq/index.php | 8 +++++--- assets/js/sections/cqmap.js | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/application/views/awards/cq/index.php b/application/views/awards/cq/index.php index 5f42cf33e..7d06f01cf 100644 --- a/application/views/awards/cq/index.php +++ b/application/views/awards/cq/index.php @@ -232,7 +232,9 @@ $addsat='' . $band . ''; } } - echo '' . __("Total (ex SAT)") . ''; + if ($posted_band != 'SAT') { + echo '' . __("Total (ex SAT)") . ''; + } if (count($bands) > 1) { echo ''; } @@ -242,7 +244,7 @@ " . __("Total worked") . ""; $sat_value = ''; - foreach ($cq_summary['worked'] as $cqz => $value) { // Fills the table with the data + foreach ($cq_summary['worked'] as $cqz => $value) { if ($posted_band == 'SAT' && $cqz == 'Total') { continue; } @@ -260,7 +262,7 @@ echo " " . __("Total confirmed") . ""; $sat_value = ''; - foreach ($cq_summary['confirmed'] as $cqz => $value) { // Fills the table with the data + foreach ($cq_summary['confirmed'] as $cqz => $value) { if ($posted_band == 'SAT' && $cqz == 'Total') { continue; } diff --git a/assets/js/sections/cqmap.js b/assets/js/sections/cqmap.js index eb493716a..82ca2903c 100644 --- a/assets/js/sections/cqmap.js +++ b/assets/js/sections/cqmap.js @@ -119,6 +119,8 @@ function load_cq_map2(data) { legend.onAdd = function(map) { var div = L.DomUtil.create("div", "legend"); div.innerHTML += "

" + lang_general_word_colors + "

"; + var band = $('#band2').val(); + div.innerHTML += "

Band: " + band + "

"; div.innerHTML += "" + lang_general_word_confirmed + " (" + confirmed + ")
"; div.innerHTML += "" + lang_general_word_worked_not_confirmed + " (" + workednotconfirmed + ")
"; div.innerHTML += "" + lang_general_word_not_worked + " (" + notworked + ")
";