diff --git a/application/controllers/Lookup.php b/application/controllers/Lookup.php
index 7d081bdf6..9ad37584d 100644
--- a/application/controllers/Lookup.php
+++ b/application/controllers/Lookup.php
@@ -51,6 +51,12 @@ class Lookup extends CI_Controller {
$data['bands'] = $this->bands->get_worked_bands(xss_clean($this->input->post('type')));
}
+ if ($this->input->post('reduced_mode', true)) {
+ $data['reduced_mode'] = true;
+ } else {
+ $data['reduced_mode'] = false;
+ }
+
$data['dxcc'] = xss_clean($this->input->post('dxcc'));
$data['was'] = xss_clean($this->input->post('was'));
diff --git a/application/views/lookup/result.php b/application/views/lookup/result.php
index 2254fb950..8e7259b42 100644
--- a/application/views/lookup/result.php
+++ b/application/views/lookup/result.php
@@ -11,39 +11,53 @@ echo '
';
foreach ($result as $mode => $value) {
- echo '
- | '. strtoupper($mode) .' | ';
- foreach ($value as $key => $val) {
- switch($type) {
- // function displayContacts(searchphrase, band, sat, orbit, mode, type, qsl) {
- case 'dxcc': $linkinfo = '' . $val . ''; break;
- case 'iota': $linkinfo = '' . $val . ''; break;
- case 'vucc': $linkinfo = '' . $val . ''; break;
- case 'cq': $linkinfo = '' . $val . ''; break;
- case 'was': $linkinfo = '' . $val . ''; break;
- case 'sota': $linkinfo = '' . $val . ''; break;
- case 'wwff': $linkinfo = '' . $val . ''; break;
- case 'itu': $linkinfo = '' . $val . ''; break;
+ $showRow = true;
+ if ($reduced_mode) {
+ $showRow = false;
+ foreach ($value as $val) {
+ if ($val == 'W' || $val == 'C') {
+ $showRow = true;
+ break;
+ }
}
-
- $info = '';
-
- if ($val == 'W') {
- $info .= ' ' . $linkinfo . ' ';
- }
- else if ($val == 'C') {
- $info .= '' . $linkinfo . ' ';
- }
- else {
- $info .= $val;
- }
-
- $info .= ' | ';
-
- echo $info;
}
- echo '
';
+
+ if ($showRow) {
+ echo '
+ | '. strtoupper($mode) .' | ';
+ foreach ($value as $key => $val) {
+ switch($type) {
+ // function displayContacts(searchphrase, band, sat, orbit, mode, type, qsl) {
+
+ case 'dxcc': $linkinfo = '' . $val . ''; break;
+ case 'iota': $linkinfo = '' . $val . ''; break;
+ case 'vucc': $linkinfo = '' . $val . ''; break;
+ case 'cq': $linkinfo = '' . $val . ''; break;
+ case 'was': $linkinfo = '' . $val . ''; break;
+ case 'sota': $linkinfo = '' . $val . ''; break;
+ case 'wwff': $linkinfo = '' . $val . ''; break;
+ case 'itu': $linkinfo = '' . $val . ''; break;
+ }
+
+ $info = '';
+
+ if ($val == 'W') {
+ $info .= ' ' . $linkinfo . ' ';
+ }
+ else if ($val == 'C') {
+ $info .= '' . $linkinfo . ' ';
+ }
+ else {
+ $info .= $val;
+ }
+
+ $info .= ' | ';
+
+ echo $info;
+ }
+ echo '
';
+ }
}
echo '';
?>
diff --git a/assets/js/sections/common.js b/assets/js/sections/common.js
index 2ed179bc5..85d7a2a3d 100644
--- a/assets/js/sections/common.js
+++ b/assets/js/sections/common.js
@@ -815,6 +815,7 @@ function getDxccResult(dxcc, name) {
data: {
type: 'dxcc',
dxcc: dxcc,
+ reduced_mode: true,
},
success: function (html) {
$('.dxccsummary').remove();