Merge pull request #18 from phl0/separateSat

Separate SAT from totals
This commit is contained in:
Joerg (DJ7NT)
2025-03-07 15:01:25 +01:00
committed by GitHub
2 changed files with 35 additions and 5 deletions

View File

@@ -259,7 +259,10 @@
$addsat='<td>' . $band . '</td>';
}
}
echo '<td>' . __("Total") . '</td>';
echo '<td><b>' . __("Total") . '</b></td>';
if (count($bands) > 1) {
echo '<td class="spacingcell"></td>';
}
echo $addsat;
echo '
</tr>
@@ -270,12 +273,21 @@
$addsat='';
foreach ($dxcc_summary['worked'] as $band => $dxcc) { // Fills the table with the data
if ($band != 'SAT') {
echo '<td style="text-align: center">' . $dxcc . '</td>';
echo '<td style="text-align: center">';
if ($band == 'Total') {
echo '<b>'.$dxcc.'</b>';
} else {
echo $dxcc;
}
echo '</td>';
} else {
$addsat='<td style="text-align: center">' . $dxcc . '</td>';
}
}
if ($addsat != '') {
if ($addsat != '' && count($dxcc_summary['worked']) > 1) {
if (count($bands) > 1) {
echo '<td class="spacingcell"></td>';
}
echo $addsat;
}
@@ -284,12 +296,21 @@
$addsat='';
foreach ($dxcc_summary['confirmed'] as $band => $dxcc) { // Fills the table with the data
if ($band != 'SAT') {
echo '<td style="text-align: center">' . $dxcc . '</td>';
echo '<td style="text-align: center">';
if ($band == 'Total') {
echo '<b>'.$dxcc.'</b>';
} else {
echo $dxcc;
}
echo '</td>';
} else {
$addsat='<td style="text-align: center">' . $dxcc . '</td>';
}
}
if ($addsat != '') {
if ($addsat != '' && count($dxcc_summary['confirmed']) > 1) {
if (count($bands) > 1) {
echo '<td class="spacingcell"></td>';
}
echo $addsat;
}

View File

@@ -1222,3 +1222,12 @@ svg text.month { fill: #AAA; }
opacity: 0;
}
}
.spacingcell {
background-color: transparent !important;
border-top-style: none !important;
border-bottom-style: none !important;
border-right-style: none !important;
--dt-row-hover: transparent !important;
--dt-row-stripe: transparent !important;
}