diff --git a/application/controllers/Lookup.php b/application/controllers/Lookup.php
index 048764868..20df0fa88 100644
--- a/application/controllers/Lookup.php
+++ b/application/controllers/Lookup.php
@@ -64,6 +64,7 @@ class Lookup extends CI_Controller {
$data['cqz'] = xss_clean($this->input->post('cqz'));
$data['wwff'] = xss_clean($this->input->post('wwff'));
$data['ituz'] = xss_clean($this->input->post('ituz'));
+ $data['dok'] = xss_clean($this->input->post('dok'));
$data['continent'] = xss_clean($this->input->post('continent'));
$data['location_list'] = $location_list;
diff --git a/application/models/Lookup_model.php b/application/models/Lookup_model.php
index 36649c9d2..eb1088d60 100644
--- a/application/models/Lookup_model.php
+++ b/application/models/Lookup_model.php
@@ -90,6 +90,10 @@ class Lookup_model extends CI_Model{
$sqlquerytypestring .= " and col_cont = ?";
$binds[] = $queryinfo['continent'];
break;
+ case 'dok':
+ $sqlquerytypestring .= " and col_darc_dok = ?";
+ $binds[] = $queryinfo['dok'];
+ break;
default: break;
}
return $sqlquerytypestring;
diff --git a/application/views/lookup/index.php b/application/views/lookup/index.php
index d7bcd6a0b..c5de16012 100644
--- a/application/views/lookup/index.php
+++ b/application/views/lookup/index.php
@@ -11,6 +11,7 @@
+
diff --git a/application/views/lookup/result.php b/application/views/lookup/result.php
index cd5e22b78..9729738eb 100644
--- a/application/views/lookup/result.php
+++ b/application/views/lookup/result.php
@@ -40,7 +40,8 @@ foreach ($result as $mode => $value) {
'itu' => $ituz,
'continent' => $continent,
'pota' => $pota,
- 'dxcc2' => $dxcc
+ 'dxcc2' => $dxcc,
+ 'dok' => $dok
];
if ($type == 'dxcc') {
diff --git a/assets/js/sections/common.js b/assets/js/sections/common.js
index e6bb638a0..a737cbce9 100644
--- a/assets/js/sections/common.js
+++ b/assets/js/sections/common.js
@@ -643,7 +643,7 @@ function selectize_usa_county(state_field, county_field) {
async function updateStateDropdown(dxcc_field, state_label, county_div, county_input, dropdown = '#stateDropdown') {
var selectedDxcc = $(dxcc_field);
var selectedState = $(dropdown);
-
+
if (selectedDxcc.val() !== "") {
await $.ajax({
url: base_url + "index.php/lookup/get_state_list",
@@ -667,7 +667,7 @@ async function updateStateDropdown(dxcc_field, state_label, county_div, county_i
switch (selectedDxcc.val()) {
case '6':
case '110':
- case '291':
+ case '291':
$(county_div).find('.form-control').hide();
$(county_div).find('.selectize-control').show();
$(county_div).show();
@@ -864,7 +864,7 @@ function changeLookupType(type) {
$('#quicklookupdxcc').show();
} else if (type == "iota") {
$('#quicklookupiota').show();
- } else if (type == "vucc" || type == "sota" || type == "wwff" || type == "lotw" || type == "pota") {
+ } else if (type == "vucc" || type == "sota" || type == "wwff" || type == "lotw" || type == "pota" || type == "dok") {
$('#quicklookuptext').show();
} else if (type == "cq") {
$('#quicklookupcqz').show();
@@ -897,6 +897,7 @@ function getLookupResult() {
ituz: $('#quicklookupituz').val(),
pota: $('#quicklookuptext').val(),
continent: $('#quicklookupcontinent').val(),
+ dok: $('#quicklookuptext').val(),
},
success: function (html) {
$('#lookupresulttable').html(html);