Add location and clickable callsign to dxcc list

This commit is contained in:
Andreas Kristiansen
2025-12-16 11:52:16 +01:00
parent 6985604463
commit d7097a5586
2 changed files with 4 additions and 3 deletions

View File

@@ -1643,7 +1643,7 @@ class Logbookadvanced_model extends CI_Model {
public function check_missing_dxcc_id($all = false) {
ini_set('memory_limit', '-1'); // This consumes a lot of Memory!
$this->db->trans_start(); // Transaction has to be started here, because otherwise we're trying to update rows which are locked by the select
$this->db->select("COL_PRIMARY_KEY, COL_CALL, COL_TIME_ON, COL_TIME_OFF"); // get all records with no COL_DXCC
$this->db->select("COL_PRIMARY_KEY, COL_CALL, COL_TIME_ON, COL_TIME_OFF, station_profile.station_profile_name"); // get all records with no COL_DXCC
$this->db->join('station_profile', 'station_profile.station_id = ' . $this->config->item('table_name') . '.station_id');
$this->db->where("station_profile.user_id", $this->session->userdata('user_id'));
@@ -1667,9 +1667,10 @@ class Logbookadvanced_model extends CI_Model {
$d = $this->logbook_model->check_dxcc_table($row['COL_CALL'], $qso_date);
if ($d[0] == 'Not Found') {
$result[] = [
'id' => $row['COL_PRIMARY_KEY'],
'callsign' => $row['COL_CALL'],
'reason' => 'DXCC Not Found',
'location' => '',
'location' => $row['station_profile_name'],
'id' => $row['COL_PRIMARY_KEY']
];
} else {

View File

@@ -62,7 +62,7 @@ function showDxccUpdateResult($result, $all) {
foreach ($details as $r) {
echo '<tr>';
echo '<td>' . htmlspecialchars($r['callsign']) . '</td>';
echo '<td><a id="edit_qso" href="javascript:displayQso(' . $r['id'] . ')">' . htmlspecialchars($r['callsign']) . '</a></td>';
echo '<td>' . htmlspecialchars($r['reason']) . '</td>';
echo '<td>' . htmlspecialchars($r['location']) . '</td>';
echo '</tr>';