mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
show red frame around current mode/band
This commit is contained in:
@@ -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'));
|
||||
|
||||
@@ -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>';
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user