show red frame around current mode/band

This commit is contained in:
HB9HIL
2024-11-12 14:56:34 +01:00
parent c6d22d28fe
commit 9a736f2a91
3 changed files with 10 additions and 1 deletions

View File

@@ -52,6 +52,9 @@ class Lookup extends CI_Controller {
}
$data['reduced_mode'] = xss_clean($this->input->post('reduced_mode')) == 'true' ? true : false;
$data['current_band'] = xss_clean($this->input->post('current_band')) ?? '';
$data['current_mode'] = xss_clean($this->input->post('current_mode')) ?? '';
$data['dxcc'] = xss_clean($this->input->post('dxcc'));
$data['was'] = xss_clean($this->input->post('was'));
$data['sota'] = xss_clean($this->input->post('sota'));

View File

@@ -40,7 +40,11 @@ foreach ($result as $mode => $value) {
case 'itu': $linkinfo = '<a href=\'javascript:displayContacts("'.str_replace("&", "%26", $ituz).'","' . $key . '","All","All","' . $mode . '","ITU")\'>' . $val . '</a>'; break;
}
$info = '<td>';
if ($current_band == $key && strtoupper($current_mode )== strtoupper($mode)) {
$info = '<td class=\'border-3 border-danger\'>';
} else {
$info = '<td>';
}
if ($val == 'W') {
$info .= '<div class=\'bg-danger awardsBgDanger\'>' . $linkinfo . '</div>';

View File

@@ -816,6 +816,8 @@ function getDxccResult(dxcc, name) {
type: 'dxcc',
dxcc: dxcc,
reduced_mode: true,
current_band: $('#band').val(),
current_mode: $('#mode').val(),
},
success: function (html) {
$('.dxccsummary').remove();