Show dxcc name instead of adif number

This commit is contained in:
Andreas Kristiansen
2025-12-16 13:05:23 +01:00
parent 8b912ce223
commit 80b2b340f1
4 changed files with 6 additions and 4 deletions

View File

@@ -935,6 +935,7 @@ class Logbookadvanced extends CI_Controller {
$this->load->model('logbookadvanced_model');
$data['dxcc'] = $this->input->post('dxcc', true);
$data['country'] = $this->input->post('country', true);
// Process for batch QSO state fix
$data['qsos'] = $this->logbookadvanced_model->getStateListQsos($data['dxcc']);

View File

@@ -2,7 +2,7 @@
<?php if (!empty($qsos) && count($qsos) > 0): ?>
<div class="table-responsive" style="max-height:50vh; overflow:auto;">
<p class="text-muted">
<?php echo sprintf(__("Found %s QSO(s) missing state information for DXCC %s."), count($qsos), $dxcc);?>
<?php echo sprintf(__("Found %s QSO(s) missing state information for DXCC %s."), count($qsos), $country);?>
</p>
<table class="table table-sm table-striped table-hover">
<thead>

View File

@@ -29,7 +29,7 @@
<button type="button" class="btn btn-sm btn-primary ld-ext-right" id="fixStateBtn_<?php echo $item->col_dxcc; ?>" onclick="fixState(<?php echo $item->col_dxcc; ?>, '<?php echo $formattedName; ?>')">
<?= __("Run fix") ?><div class="ld ld-ring ld-spin"></div>
</button>
<button id="openStateListBtn_<?php echo $item->col_dxcc; ?>" onclick="openStateList(<?php echo $item->col_dxcc; ?>)" class="btn btn-sm btn-success"><i class="fas fa-search"></i></button>
<button id="openStateListBtn_<?php echo $item->col_dxcc; ?>" onclick="openStateList(<?php echo $item->col_dxcc; ?>, '<?php echo $formattedName; ?>')" class="btn btn-sm btn-success"><i class="fas fa-search"></i></button>
</td>
</tr>
<?php endforeach; ?>

View File

@@ -2196,14 +2196,15 @@ function saveOptions() {
});
}
function openStateList(dxcc) {
function openStateList(dxcc, country) {
$('#openStateListBtn_' + dxcc).prop("disabled", true).addClass("running");
$.ajax({
url: base_url + 'index.php/logbookadvanced/OpenStateList',
type: 'post',
data: {
'dxcc': dxcc
'dxcc': dxcc,
'country': country
},
success: function (response) {
$('#openStateListBtn_' + dxcc).prop("disabled", false).removeClass("running");