Update footer.php

pull/2998/head
Peter Goodhall 2024-02-22 16:56:21 +00:00
rodzic bc922e91d0
commit b6eb05a53d
1 zmienionych plików z 2523 dodań i 2409 usunięć

Wyświetl plik

@ -94,7 +94,6 @@ if($this->session->userdata('user_id') != null) {
type: 'POST',
});
});
</script>
<?php } ?>
@ -164,6 +163,7 @@ if($this->session->userdata('user_id') != null) {
<script src="<?php echo base_url(); ?>assets/js/sections/station_locations.js"></script>
<script>
var position;
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
@ -187,8 +187,7 @@ if($this->session->userdata('user_id') != null) {
<script type="text/javascript">
function copyURL(url) {
var urlField = $('#baseUrl');
navigator.clipboard.writeText(url).then(function() {
});
navigator.clipboard.writeText(url).then(function() {});
urlField.addClass('flash-copy')
.delay('1000').queue(function() {
urlField.removeClass('flash-copy').dequeue();
@ -196,7 +195,13 @@ function copyURL(url) {
}
$(function() {
$('[data-bs-toggle="tooltip"]').tooltip({'delay': { show: 500, hide: 0 }, 'placement': 'right'});
$('[data-bs-toggle="tooltip"]').tooltip({
'delay': {
show: 500,
hide: 0
},
'placement': 'right'
});
});
</script>
<?php } ?>
@ -205,8 +210,7 @@ $(function () {
<script type="text/javascript">
function copyApiKey(apiKey) {
var apiKeyField = $('#' + apiKey);
navigator.clipboard.writeText(apiKey).then(function() {
});
navigator.clipboard.writeText(apiKey).then(function() {});
apiKeyField.addClass('flash-copy')
.delay('1000').queue(function() {
apiKeyField.removeClass('flash-copy').dequeue();
@ -215,8 +219,7 @@ function copyApiKey(apiKey) {
function copyApiUrl() {
var apiUrlField = $('#apiUrl');
navigator.clipboard.writeText("<?php echo base_url(); ?>").then(function() {
});
navigator.clipboard.writeText("<?php echo base_url(); ?>").then(function() {});
apiUrlField.addClass('flash-copy')
.delay('1000').queue(function() {
apiUrlField.removeClass('flash-copy').dequeue();
@ -224,7 +227,13 @@ function copyApiUrl() {
}
$(function() {
$('[data-bs-toggle="tooltip"]').tooltip({'delay': { show: 500, hide: 0 }, 'placement': 'right'});
$('[data-bs-toggle="tooltip"]').tooltip({
'delay': {
show: 500,
hide: 0
},
'placement': 'right'
});
});
</script>
<?php } ?>
@ -660,7 +669,11 @@ function newpath(latlng1, latlng2, locator1, locator2) {
var osmUrl = '<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>';
var osmAttrib = 'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
var osm = new L.TileLayer(osmUrl, {minZoom: 1, maxZoom: 12, attribution: osmAttrib});
var osm = new L.TileLayer(osmUrl, {
minZoom: 1,
maxZoom: 12,
attribution: osmAttrib
});
var redIcon = L.icon({
iconUrl: icon_dot_url,
@ -669,9 +682,15 @@ function newpath(latlng1, latlng2, locator1, locator2) {
map.addLayer(osm);
var marker = L.marker([latlng1[0], latlng1[1]], {closeOnClick: false, autoClose: false}).addTo(map).bindPopup(locator1);
var marker = L.marker([latlng1[0], latlng1[1]], {
closeOnClick: false,
autoClose: false
}).addTo(map).bindPopup(locator1);
var marker2 = L.marker([latlng2[0], latlng2[1]], {closeOnClick: false, autoClose: false}).addTo(map).bindPopup(locator2);
var marker2 = L.marker([latlng2[0], latlng2[1]], {
closeOnClick: false,
autoClose: false
}).addTo(map).bindPopup(locator2);
const multiplelines = [];
multiplelines.push(
@ -714,11 +733,14 @@ function showActivatorsMap(call, count, grids) {
var osmUrl = '<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>';
var osmAttrib = 'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
var osm = new L.TileLayer(osmUrl, {minZoom: 1, maxZoom: 12, attribution: osmAttrib});
var osm = new L.TileLayer(osmUrl, {
minZoom: 1,
maxZoom: 12,
attribution: osmAttrib
});
map.addLayer(osm);
}
</script>
<?php if ($this->uri->segment(1) == "map" && $this->uri->segment(2) == "custom") { ?>
@ -746,7 +768,9 @@ function showActivatorsMap(call, count, grids) {
<?php } else { ?>
var grid = "No";
<?php } ?>
initmap(grid, 'custommap', {'initmap_only':true});
initmap(grid, 'custommap', {
'initmap_only': true
});
// Check and change date if to < from //
$('.custom-map-QSOs input[name="to"]').off('change').on('change', function() {
if ($('.custom-map-QSOs input[name="to"]').val().replaceAll('-', '') < $('.custom-map-QSOs input[name="from"]').val().replaceAll('-', '')) {
@ -760,9 +784,17 @@ function showActivatorsMap(call, count, grids) {
});
// Form "submit" //
$('.custom-map-QSOs .btn_submit_map_custom').off('click').on('click', function() {
var customdata = {'dataPost':{'date_from': $('.custom-map-QSOs input[name="from"]').val(), 'date_to': $('.custom-map-QSOs input[name="to"]').val(),
'band': $('.custom-map-QSOs select[name="band"]').val(), 'mode': $('.custom-map-QSOs select[name="mode"]').val(),
'prop_mode': $('.custom-map-QSOs select[name="prop_mode"]').val(), 'isCustom':true }, 'map_id':'#custommap'};
var customdata = {
'dataPost': {
'date_from': $('.custom-map-QSOs input[name="from"]').val(),
'date_to': $('.custom-map-QSOs input[name="to"]').val(),
'band': $('.custom-map-QSOs select[name="band"]').val(),
'mode': $('.custom-map-QSOs select[name="mode"]').val(),
'prop_mode': $('.custom-map-QSOs select[name="prop_mode"]').val(),
'isCustom': true
},
'map_id': '#custommap'
};
initplot(qso_loc, customdata);
})
@ -797,7 +829,11 @@ function showActivatorsMap(call, count, grids) {
<?php } else { ?>
var grid = "No";
<?php } ?>
initmap(grid,'map',{'dataPost':{'nb_qso':'18'}});
initmap(grid, 'map', {
'dataPost': {
'nb_qso': '18'
}
});
});
</script>
@ -973,8 +1009,12 @@ $($('#callsign')).on('keypress',function(e) {
<?php } else { ?>
var grid = "No";
<?php } ?>
initmap(grid,'map',{'dataPost':{'nb_qso':'25','offset':'<?php echo $this->uri->segment(3); ?>'}});
initmap(grid, 'map', {
'dataPost': {
'nb_qso': '25',
'offset': '<?php echo $this->uri->segment(3); ?>'
}
});
</script>
<?php } ?>
@ -990,7 +1030,11 @@ $($('#callsign')).on('keypress',function(e) {
var dxcluster_provider = '<?php echo base_url(); ?>index.php/dxcluster';
$(document).ready(function() {
$("#check_cluster").on("click", function() {
$.ajax({ url: dxcluster_provider+"/qrg_lookup/"+$("#frequency").val()/1000, cache: false, dataType: "json" }).done(
$.ajax({
url: dxcluster_provider + "/qrg_lookup/" + $("#frequency").val() / 1000,
cache: false,
dataType: "json"
}).done(
function(dxspot) {
reset_fields();
$("#callsign").val(dxspot.spotted);
@ -1042,8 +1086,7 @@ $($('#callsign')).on('keypress',function(e) {
pos = result;
}
},
error: function() {
},
error: function() {},
});
L.tileLayer('<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>', {
@ -1051,11 +1094,9 @@ $($('#callsign')).on('keypress',function(e) {
attribution: '<?php echo $this->optionslib->get_option('option_map_tile_server_copyright'); ?>',
id: 'mapbox.streets'
}).addTo(mymap);
</script>
<script type="text/javascript">
var manual = <?php echo $_GET['manual']; ?>;
$(document).ready(function() {
@ -1149,6 +1190,7 @@ $($('#callsign')).on('keypress',function(e) {
}
$('#callsign').val("");
$("#callsign").focus();
updateFromCAT();
}
});
});
@ -1160,7 +1202,9 @@ $($('#callsign')).on('keypress',function(e) {
$.ajax({
url: base_url + 'index.php/qso/get_sota_info',
type: 'post',
data: {'sota': sota},
data: {
'sota': sota
},
success: function(res) {
$('#qth').val(res.name);
$('#locator').val(res.locator);
@ -1181,7 +1225,9 @@ $($('#callsign')).on('keypress',function(e) {
$.ajax({
url: base_url + 'index.php/qso/get_wwff_info',
type: 'post',
data: {'wwff': wwff},
data: {
'wwff': wwff
},
success: function(res) {
$('#qth').val(res.name);
$('#locator').val(res.locator);
@ -1202,7 +1248,9 @@ $($('#callsign')).on('keypress',function(e) {
$.ajax({
url: base_url + 'index.php/qso/get_pota_info',
type: 'post',
data: {'pota': pota},
data: {
'pota': pota
},
success: function(res) {
$('#qth').val(res.name);
$('#locator').val(res.grid6);
@ -1221,7 +1269,9 @@ $($('#callsign')).on('keypress',function(e) {
$.ajax({
url: base_url + 'index.php/qso/get_station_power',
type: 'post',
data: {'stationProfile': stationProfile},
data: {
'stationProfile': stationProfile
},
success: function(res) {
$('#transmit_power').val(res.station_power);
},
@ -1287,7 +1337,8 @@ $($('#callsign')).on('keypress',function(e) {
ydiv = ydiv_arr[yk];
yres = ycalc[yi] / ydiv;
ycalc[yi] = yres;
if (ycalc[yi] > 0) ylp = Math.floor(yres); else ylp = Math.ceil(yres);
if (ycalc[yi] > 0) ylp = Math.floor(yres);
else ylp = Math.ceil(yres);
ycalc[yi] = (ycalc[yi] - ylp) * ydiv;
yn[2 * yk + yi] = ylp;
}
@ -1302,7 +1353,6 @@ $($('#callsign')).on('keypress',function(e) {
return qthloc;
}
<?php } ?>
</script>
<?php } ?>
@ -1310,7 +1360,6 @@ $($('#callsign')).on('keypress',function(e) {
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/moment.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/datetime-moment.js"></script>
<script>
$('#notice-alerts').delay(1000).fadeOut(5000);
function setRst(mode) {
@ -1342,7 +1391,6 @@ $($('#callsign')).on('keypress',function(e) {
var utc = localTime + (now.getTimezoneOffset() * 60000);
$(el).attr('value', ("0" + now.getUTCDate()).slice(-2) + '-' + ("0" + (now.getUTCMonth() + 1)).slice(-2) + '-' + now.getUTCFullYear());
}
</script>
<script>
@ -1361,7 +1409,9 @@ $($('#callsign')).on('keypress',function(e) {
if (ui.data('catValue') != cat) {
ui.val(cat);
ui.data('catValue', cat);
if (typeof callback_on_update === 'function') { callback_on_update(cat); }
if (typeof callback_on_update === 'function') {
callback_on_update(cat);
}
}
}
@ -1390,9 +1440,15 @@ $($('#callsign')).on('keypress',function(e) {
if ($('.radio_login_error').length != 0) {
$(".radio_login_error").remove();
}
cat2UI($('#frequency'),data.frequency,false,true,function(d){$("#band").val(frequencyToBand(d))});
cat2UI($('#frequency_rx'),data.frequency_rx,false,true,function(d){$("#band_rx").val(frequencyToBand(d))});
cat2UI($('.mode'),data.mode,false,false,function(d){setRst($(".mode").val())});
cat2UI($('#frequency'), data.frequency, false, true, function(d) {
$("#band").val(frequencyToBand(d))
});
cat2UI($('#frequency_rx'), data.frequency_rx, false, true, function(d) {
$("#band_rx").val(frequencyToBand(d))
});
cat2UI($('.mode'), data.mode, false, false, function(d) {
setRst($(".mode").val())
});
cat2UI($('#sat_name'), data.satname, false, false);
cat2UI($('#sat_mode'), data.satmode, false, false);
cat2UI($('#transmit_power'), data.power, false, false);
@ -1427,7 +1483,9 @@ $($('#callsign')).on('keypress',function(e) {
if (data.frequency_rx != null && data.frequency_rx != 0) {
ptext = ptext + '<span style="margin-left:10px"></span><b>RX:</b> ' + (Math.round(parseInt(data.frequency_rx) / 1000) / 1000).toFixed(3) + ' MHz';
}
if( ptext != '') { text = text + '<span style="margin-left:10px"></span>(' + ptext + ')';}
if (ptext != '') {
text = text + '<span style="margin-left:10px"></span>(' + ptext + ')';
}
if (!$('#radio_cat_state').length) {
$('#radio_status').prepend('<div aria-hidden="true"><div id="radio_cat_state" class="alert alert-success radio_cat_state" role="alert">' + text + '</div></div>');
} else {
@ -1463,7 +1521,6 @@ $($('#callsign')).on('keypress',function(e) {
<?php if ($this->uri->segment(1) == "logbook" && $this->uri->segment(2) == "view") { ?>
<script>
var mymap = L.map('map').setView([lat, long], 5);
L.tileLayer('<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>', {
@ -1487,11 +1544,12 @@ $($('#callsign')).on('keypress',function(e) {
iconSize: [18, 18], // size of the icon
});
L.marker([lat,long], {icon: redIcon}).addTo(mymap)
L.marker([lat, long], {
icon: redIcon
}).addTo(mymap)
.bindPopup(callsign);
mymap.on('click', onMapClick);
</script>
<?php } ?>
@ -1500,9 +1558,12 @@ $($('#callsign')).on('keypress',function(e) {
$(document).ready(function() {
$('#btn_update_dxcc').bind('click', function() {
$('#dxcc_update_status').show();
$.ajax({url:"update/dxcc"});
$.ajax({
url: "update/dxcc"
});
setTimeout(update_stats, 5000);
});
function update_stats() {
$('#dxcc_update_status').load('<?php echo base_url() ?>updates/status.html', function(val) {
$('#dxcc_update_staus').html(val);
@ -1520,11 +1581,12 @@ $(document).ready(function(){
<?php } ?>
<?php if ($this->uri->segment(1) == "gridsquares" && !empty($this->uri->segment(2))) { ?>
<script>var gridsquaremap = true;</script>
<script>
var gridsquaremap = true;
</script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/leaflet/L.MaidenheadColoured.js"></script>
<script>
var layer = L.tileLayer('<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>', {
maxZoom: 18,
attribution: '<?php echo $this->optionslib->get_option('option_map_tile_server_copyright'); ?>',
@ -1629,7 +1691,9 @@ $(document).ready(function(){
if (count > 0) {
$('#square_number').text(loc_4char);
$('#exampleModal').modal('show');
$('[data-bs-toggle="tooltip"]').tooltip({ boundary: 'window' });
$('[data-bs-toggle="tooltip"]').tooltip({
boundary: 'window'
});
}
$('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function() {
showQsoActionsMenu($(this).closest('.dropdown'));
@ -1667,7 +1731,6 @@ $(document).ready(function(){
});
});
<?php } ?>
</script>
<?php } ?>
@ -1766,7 +1829,9 @@ $(document).ready(function(){
if (count > 0) {
$('#square_number').text(loc_4char);
$('#exampleModal').modal('show');
$('[data-bs-toggle="tooltip"]').tooltip({ boundary: 'window' });
$('[data-bs-toggle="tooltip"]').tooltip({
boundary: 'window'
});
}
$('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function() {
showQsoActionsMenu($(this).closest('.dropdown'));
@ -1806,7 +1871,6 @@ $(document).ready(function(){
});
});
<?php } ?>
</script>
<?php } ?>
@ -1874,7 +1938,9 @@ $(document).ready(function(){
iconSize: [18, 18], // size of the icon
});
L.marker([lat,long], {icon: redIcon}).addTo(mymap)
L.marker([lat, long], {
icon: redIcon
}).addTo(mymap)
.bindPopup(callsign);
},
@ -1994,7 +2060,6 @@ $(document).ready(function(){
<?php if ($this->uri->segment(2) == "iota") { ?>
<script>
$('.tableiota').DataTable({
"pageLength": 25,
responsive: false,
@ -2115,7 +2180,6 @@ $(document).ready(function(){
<?php } ?>
<script>
function selectize_usa_county() {
var baseURL = "<?php echo base_url(); ?>";
$('#stationCntyInputEdit').selectize({
@ -2165,7 +2229,8 @@ $(document).ready(function(){
success: function(dataofconfirm) {
$(".edit-dialog").modal('hide');
$(".qso-dialog").modal('hide');
<?php if ($this->uri->segment(1) != "search" && $this->uri->segment(2) != "filter" && $this->uri->segment(1) != "qso" && $this->uri->segment(1) != "logbookadvanced") { ?>location.reload();<?php } ?>
<?php if ($this->uri->segment(1) != "search" && $this->uri->segment(2) != "filter" && $this->uri->segment(1) != "qso" && $this->uri->segment(1) != "logbookadvanced") { ?>location.reload();
<?php } ?>
},
error: function(xhr, status, error) {
console.log(xhr.responseText);
@ -2202,7 +2267,8 @@ $(document).ready(function(){
$.ajax({
url: baseURL + 'index.php/timeline/details',
type: 'post',
data: {'Querystring': querystring,
data: {
'Querystring': querystring,
'Band': band,
'Mode': mode,
'Type': type
@ -2257,10 +2323,8 @@ $(document).ready(function(){
}
$(document).ready(function() {
$('#band').change(function()
{
if($(this).val() == "SAT")
{
$('#band').change(function() {
if ($(this).val() == "SAT") {
$('#leogeo').show();
} else {
$('#leogeo').hide();
@ -2270,12 +2334,14 @@ $(document).ready(function(){
$('#leogeo').hide();
<?php } ?>
});
function displayActivatorsContacts(call, band, leogeo) {
var baseURL = "<?php echo base_url(); ?>";
$.ajax({
url: baseURL + 'index.php/activators/details',
type: 'post',
data: {'Callsign': call,
data: {
'Callsign': call,
'Band': band,
'LeoGeo': leogeo
},
@ -2334,15 +2400,33 @@ $(document).ready(function(){
}
switch ($custom_date_format) {
case 'd/m/y': $usethisformat = 'D/MM/YY';break;
case 'd/m/Y': $usethisformat = 'D/MM/YYYY';break;
case 'm/d/y': $usethisformat = 'MM/D/YY';break;
case 'm/d/Y': $usethisformat = 'MM/D/YYYY';break;
case 'd.m.Y': $usethisformat = 'D.MM.YYYY';break;
case 'y/m/d': $usethisformat = 'YY/MM/D';break;
case 'Y-m-d': $usethisformat = 'YYYY-MM-D';break;
case 'M d, Y': $usethisformat = 'MMM D, YYYY';break;
case 'M d, y': $usethisformat = 'MMM D, YY';break;
case 'd/m/y':
$usethisformat = 'D/MM/YY';
break;
case 'd/m/Y':
$usethisformat = 'D/MM/YYYY';
break;
case 'm/d/y':
$usethisformat = 'MM/D/YY';
break;
case 'm/d/Y':
$usethisformat = 'MM/D/YYYY';
break;
case 'd.m.Y':
$usethisformat = 'D.MM.YYYY';
break;
case 'y/m/d':
$usethisformat = 'YY/MM/D';
break;
case 'Y-m-d':
$usethisformat = 'YYYY-MM-D';
break;
case 'M d, Y':
$usethisformat = 'MMM D, YYYY';
break;
case 'M d, y':
$usethisformat = 'MMM D, YY';
break;
}
?>
@ -2360,8 +2444,7 @@ $(document).ready(function(){
$('.qsltable').DataTable({
<?php } else if ($this->uri->segment(1) == "eqsl") { ?>
$('.eqsltable').DataTable({
<?php } ?>
"pageLength": 25,
<?php } ?> "pageLength": 25,
responsive: false,
ordering: true,
"scrollY": "500px",
@ -2373,18 +2456,15 @@ $(document).ready(function(){
},
"order": [2, 'desc'],
dom: 'Bfrtip',
buttons: [
{
buttons: [{
extend: 'clear',
text: 'Clear'
}
]
}]
});
// change color of csv-button if dark mode is chosen
if (isDarkModeTheme()) {
$('[class*="buttons"]').css("color", "white");
}
</script>
<?php } ?>
@ -2429,7 +2509,8 @@ function deleteQsl(id) {
$.ajax({
url: baseURL + 'index.php/qsl/delete',
type: 'post',
data: {'id': id
data: {
'id': id
},
success: function(data) {
$("#" + id).parent("tr:first").remove(); // removes qsl from table
@ -2602,6 +2683,7 @@ function viewEqsl(picture, callsign) {
}
});
}
function uploadQsl() {
var baseURL = "<?php echo base_url(); ?>";
var formdata = new FormData(document.getElementById("fileinfo"));
@ -2624,8 +2706,7 @@ function viewEqsl(picture, callsign) {
$(".carousel-indicators").append('<li data-bs-target="#carouselExampleIndicators" data-bs-slide-to="' + quantity + '"></li>');
$(".carousel-inner").append('<center><div class="carousel-item carouselimageid_' + data.status.front.insertid + '"><img class="img-fluid w-qsl" src="' + baseURL + '/assets/qslcard/' + data.status.front.filename + '" alt="QSL picture #' + (quantity + 1) + '"></div></center>');
$("#qslcardfront").val(null);
}
else {
} else {
$("#qslupload").prepend('<table style="width:100%" class="qsltable table table-sm table-bordered table-hover table-striped table-condensed">' +
'<thead>' +
'<tr>' +
@ -2663,8 +2744,7 @@ function viewEqsl(picture, callsign) {
$(".carousel-indicators").append('<li data-bs-target="#carouselExampleIndicators" data-bs-slide-to="' + quantity + '"></li>');
$(".carousel-inner").append('<center><div class="carousel-item carouselimageid_' + data.status.back.insertid + '"><img class="img-fluid w-qsl" src="' + baseURL + '/assets/qslcard/' + data.status.back.filename + '" alt="QSL picture #' + (quantity + 1) + '"></div></center>');
$("#qslcardback").val(null);
}
else {
} else {
$("#qslupload").prepend('<table style="width:100%" class="qsltable table table-sm table-bordered table-hover table-striped table-condensed">' +
'<thead>' +
'<tr>' +
@ -2695,7 +2775,6 @@ function viewEqsl(picture, callsign) {
}
</script>
<script>
function addQsosToQsl(filename) {
var title = 'Add additional QSOs to a QSL Card';
@ -2703,7 +2782,9 @@ function viewEqsl(picture, callsign) {
$.ajax({
url: baseURL + 'index.php/qsl/loadSearchForm',
type: 'post',
data: {'filename': filename},
data: {
'filename': filename
},
success: function(html) {
BootstrapDialog.show({
title: title,
@ -2729,7 +2810,10 @@ function viewEqsl(picture, callsign) {
$.ajax({
url: baseURL + 'index.php/qsl/addQsoToQsl',
type: 'post',
data: {'filename': filename, 'qsoid': qsoid},
data: {
'filename': filename,
'qsoid': qsoid
},
success: function(html) {
if (html.status == 'Success') {
location.reload();
@ -2746,7 +2830,10 @@ function viewEqsl(picture, callsign) {
$.ajax({
url: baseURL + 'index.php/qsl/searchQsos',
type: 'post',
data: {'callsign': $('#callsign').val(), 'filename': filename},
data: {
'callsign': $('#callsign').val(),
'filename': filename
},
success: function(html) {
$('#searchresult').empty();
$('#searchresult').append(html);
@ -2848,7 +2935,10 @@ function viewEqsl(picture, callsign) {
$.ajax({
url: baseURL + 'index.php/awards/counties_details_ajax',
type: 'post',
data: {'State': state, 'County': county },
data: {
'State': state,
'County': county
},
success: function(html) {
BootstrapDialog.show({
title: lang_general_word_qso_data,
@ -2917,7 +3007,8 @@ function viewEqsl(picture, callsign) {
$.ajax({
url: base_url + 'index.php/themes/delete',
type: 'post',
data: {'id': id
data: {
'id': id
},
success: function(data) {
$(".theme_" + id).parent("tr:first").remove(); // removes mode from table
@ -2999,15 +3090,33 @@ function viewEqsl(picture, callsign) {
}
switch ($custom_date_format) {
case 'd/m/y': $usethisformat = 'D/MM/YY';break;
case 'd/m/Y': $usethisformat = 'D/MM/YYYY';break;
case 'm/d/y': $usethisformat = 'MM/D/YY';break;
case 'm/d/Y': $usethisformat = 'MM/D/YYYY';break;
case 'd.m.Y': $usethisformat = 'D.MM.YYYY';break;
case 'y/m/d': $usethisformat = 'YY/MM/D';break;
case 'Y-m-d': $usethisformat = 'YYYY-MM-D';break;
case 'M d, Y': $usethisformat = 'MMM D, YYYY';break;
case 'M d, y': $usethisformat = 'MMM D, YY';break;
case 'd/m/y':
$usethisformat = 'D/MM/YY';
break;
case 'd/m/Y':
$usethisformat = 'D/MM/YYYY';
break;
case 'm/d/y':
$usethisformat = 'MM/D/YY';
break;
case 'm/d/Y':
$usethisformat = 'MM/D/YYYY';
break;
case 'd.m.Y':
$usethisformat = 'D.MM.YYYY';
break;
case 'y/m/d':
$usethisformat = 'YY/MM/D';
break;
case 'Y-m-d':
$usethisformat = 'YYYY-MM-D';
break;
case 'M d, Y':
$usethisformat = 'MMM D, YYYY';
break;
case 'M d, y':
$usethisformat = 'MMM D, YY';
break;
}
?>
@ -3035,8 +3144,7 @@ function viewEqsl(picture, callsign) {
},
"order": [0, 'asc'],
dom: 'Bfrtip',
buttons: [
{
buttons: [{
extend: 'csv'
},
{
@ -3072,8 +3180,7 @@ function viewEqsl(picture, callsign) {
},
"order": [0, 'asc'],
dom: 'Bfrtip',
buttons: [
{
buttons: [{
extend: 'csv'
},
{
@ -3107,8 +3214,7 @@ function viewEqsl(picture, callsign) {
url: getDataTablesLanguageUrl(),
},
dom: 'Bfrtip',
buttons: [
{
buttons: [{
extend: 'csv'
},
{
@ -3131,9 +3237,17 @@ function viewEqsl(picture, callsign) {
$(document).ready(function() {
$('.icon_selectBox').off('click').on('click', function() {
var boxcontent = $(this).attr('data-boxcontent');
if ($('.icon_selectBox_data[data-boxcontent="'+boxcontent+'"]').is(":hidden")) { $('.icon_selectBox_data[data-boxcontent="'+boxcontent+'"]').show(); } else { $('.icon_selectBox_data[data-boxcontent="'+boxcontent+'"]').hide(); }
if ($('.icon_selectBox_data[data-boxcontent="' + boxcontent + '"]').is(":hidden")) {
$('.icon_selectBox_data[data-boxcontent="' + boxcontent + '"]').show();
} else {
$('.icon_selectBox_data[data-boxcontent="' + boxcontent + '"]').hide();
}
});
$('.icon_selectBox_data').off('mouseleave').on('mouseleave', function() {
if ($(this).is(":visible")) {
$(this).hide();
}
});
$('.icon_selectBox_data').off('mouseleave').on('mouseleave', function(){ if ($(this).is(":visible")) { $(this).hide(); } });
$('.icon_selectBox_data label').off('click').on('click', function() {
var boxcontent = $(this).closest('.icon_selectBox_data').attr('data-boxcontent');
$('input[name="user_map_' + boxcontent + '_icon"]').attr('value', $(this).attr('data-value'));
@ -3152,8 +3266,7 @@ function viewEqsl(picture, callsign) {
var $open = $($(this).data('parent')).find('.collapse.show');
var additionalOffset = 0;
if($card.prevAll().filter($open.closest('.accordion-item')).length !== 0)
{
if ($card.prevAll().filter($open.closest('.accordion-item')).length !== 0) {
additionalOffset = $open.height();
}
$('html,body').animate({
@ -3178,4 +3291,5 @@ if (isset($scripts) && is_array($scripts)){
?>
</script>
</body>
</html>