[Advanced Logbook] Added itu zone link

This commit is contained in:
Andreas Kristiansen
2024-10-25 13:04:04 +02:00
parent 002aade664
commit 1d2e1f4d5d

View File

@@ -205,7 +205,7 @@ class QSO
$this->qrz = $this->getQrzString($data, $custom_date_format);
$this->cqzone = $data['COL_CQZ'] === null ? '' : $this->getCqLink($data['COL_CQZ']);
$this->ituzone = $data['COL_ITUZ'] ?? '';
$this->ituzone = $data['COL_ITUZ'] === null ? '' : $this->getItuLink($data['COL_ITUZ']);
$this->state = ($data['COL_STATE'] === null) ? '' :$data['COL_STATE'];
if ($data['adif'] == '0') {
$this->dxcc = '<a href="javascript:spawnLookupModal('.$data['COL_DXCC'].',\'dxcc\');">'.$data['dxccname'].'</a>';
@@ -243,6 +243,17 @@ class QSO
return $cqz;
}
/**
* @return string
*/
function getItuLink($ituz): string
{
if ($ituz > '0' && $ituz <= '90') {
return '<a href="javascript:spawnLookupModal('.$ituz.',\'itu\');">'.$ituz.'</a>';
}
return $ituz;
}
/**
* @return string
*/