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