Don't show SAT-Col at DXCC-List if SAT wasn't choseen

This commit is contained in:
int2001
2025-03-07 16:52:52 +00:00
parent 0d669676d9
commit 9fbdaad3e5
3 changed files with 7 additions and 3 deletions

View File

@@ -174,6 +174,7 @@ class Awards extends CI_Controller {
// Render Page
$data['page_title'] = sprintf(__("Awards - %s"), __("DXCC"));
$data['posted_band']=$postdata['band'];
$this->load->view('interface_assets/header', $data);
$this->load->view('awards/dxcc/index');
$this->load->view('interface_assets/footer');

View File

@@ -70,6 +70,9 @@ class DXCC extends CI_Model {
$qsl = $this->genfunctions->gen_qsl_from_postdata($postdata);
foreach ($bands as $band) { // Looping through bands and entities to generate the array needed for display
if (($postdata['band'] != 'SAT') && ($band == 'SAT')) {
continue;
}
foreach ($dxccArray as $dxcc) {
if ($dxcc->adif == '0') {
$dxccMatrix[$dxcc->adif]['name'] = $dxcc->name;
@@ -81,9 +84,6 @@ class DXCC extends CI_Model {
$dxccMatrix[$dxcc->adif]['Deleted'] = isset($dxcc->Enddate) ? 1 : 0;
$dxccMatrix[$dxcc->adif][$band] = '-';
}
if (($postdata['band'] != 'SAT') && ($band == 'SAT')) {
continue;
}
// If worked is checked, we add worked entities to the array
if ($postdata['worked'] != NULL) {

View File

@@ -225,6 +225,9 @@
<td>' . __("DXCC Name") . '</td>
<td>' . __("Prefix") . '</td>';
foreach($bands as $band) {
if (($posted_band != 'SAT') && ($band == 'SAT')) {
continue;
}
echo '<td>' . $band . '</td>';
}
echo '</tr>