| ' . strtoupper($mode) . ' | ';
$typeMapping = [
'dxcc' => $dxcc,
'iota' => $iota,
'vucc' => substr(trim($grid), 0, 4),
'cq' => $cqz,
'was' => $was,
'sota' => $sota,
'wwff' => $wwff,
'itu' => $ituz,
'continent' => $continent,
'pota' => $pota,
'dxcc2' => $dxcc,
'dok' => $dok
];
if ($type == 'dxcc') {
$type = 'dxcc2';
}
foreach ($value as $key => $val) {
$searchPhrase = isset($typeMapping[$type]) ? str_replace("&", "%26", $typeMapping[$type]) : '';
$linkinfo = $searchPhrase
? "$val"
: $val;
$tdClass = ($current_band == $key && strtoupper($current_mode) == strtoupper($mode))
? "class='border-3 border-danger'"
: '';
$content = $val;
if ($val === 'W') {
$content = "$linkinfo
";
} elseif ($val === 'C') {
$content = "$linkinfo
";
}
echo "$content | ";
}
echo '
';
}
}
echo '