mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Show dxcc name instead of adif number
This commit is contained in:
@@ -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']);
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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; ?>
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user