mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[Quick Lookup] Added DOK
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<option value="was"><?= __("US State"); ?></option>
|
||||
<option value="wwff"><?= __("WWFF"); ?></option>
|
||||
<option value="lotw"><?= __("LoTW user"); ?></option>
|
||||
<option value="dok"><?= __("DOK"); ?></option>
|
||||
</select>
|
||||
<div> </div>
|
||||
<input style="display:none" class="form-control input-group-sm w-auto" id="quicklookuptext" type="text" name="searchfield" placeholder="" aria-label="Search">
|
||||
|
||||
@@ -40,7 +40,8 @@ foreach ($result as $mode => $value) {
|
||||
'itu' => $ituz,
|
||||
'continent' => $continent,
|
||||
'pota' => $pota,
|
||||
'dxcc2' => $dxcc
|
||||
'dxcc2' => $dxcc,
|
||||
'dok' => $dok
|
||||
];
|
||||
|
||||
if ($type == 'dxcc') {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user