[DXCC Map] Fixed popup and added datatable to QSO table

这个提交包含在:
Andreas 2022-11-12 10:50:46 +01:00
父节点 30f3df15ce
当前提交 1b563b7eb0
共有 4 个文件被更改,包括 25 次插入5 次删除

查看文件

@ -638,7 +638,10 @@ class Awards extends CI_Controller {
foreach ($dxcclist as $dxcc) {
$newdxcc[$i]['adif'] = $dxcc->adif;
$newdxcc[$i]['prefix'] = $dxcc->prefix;
$newdxcc[$i]['name'] = $dxcc->name;
$newdxcc[$i]['name'] = ucwords(strtolower($dxcc->name), "- (/");
if ($dxcc->Enddate!=null) {
$newdxcc[$i]['name'] .= ' (deleted)';
}
$newdxcc[$i]['lat'] = $dxcc->lat;
$newdxcc[$i]['long'] = $dxcc->long;
$newdxcc[$i++]['status'] = $this->returnStatus($dxcc_array[$dxcc->adif]);

查看文件

@ -2545,6 +2545,19 @@ function deleteQsl(id) {
message: html,
onshown: function(dialog) {
$('[data-toggle="tooltip"]').tooltip();
$('.contacttable').DataTable({
"pageLength": 25,
responsive: false,
ordering: false,
"scrollY": "550px",
"scrollCollapse": true,
"paging": false,
"scrollX": true,
dom: 'Bfrtip',
buttons: [
'csv'
]
});
},
buttons: [{
label: 'Close',

查看文件

@ -44,7 +44,8 @@ function echoQrbCalcLink($mygrid, $grid, $vucc) {
<?php if ($results) { ?>
<div class="table-responsive">
<table class="table table-striped table-hover">
<table style="width:100%" class="table contacttable table-striped table-hover">
<thead>
<tr class="titles">
<td><?php echo $this->lang->line('general_word_date'); ?></td>
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE || ($this->config->item('show_time'))) { ?>
@ -72,6 +73,8 @@ function echoQrbCalcLink($mygrid, $grid, $vucc) {
<td></td>
<?php } ?>
</tr>
<thead>
<tbody>
<?php $i = 0;
foreach ($results->result() as $row) {
@ -246,7 +249,7 @@ function echoQrbCalcLink($mygrid, $grid, $vucc) {
<?php } ?>
</tr>
<?php $i++; } ?>
</tbody>
</table></div>
<?php } ?>

查看文件

@ -91,7 +91,8 @@ function load_dxcc_map2(data) {
L.marker(
[D['lat'], D['long']], {
icon: icon,
title: D['adif']
adif: D['adif'],
title: D['prefix'] + ' - ' + D['name'],
}
).addTo(map).on('click', onClick);
}
@ -115,5 +116,5 @@ function load_dxcc_map2(data) {
function onClick(e) {
var marker = e.target;
displayContacts(marker.options.title, $('#band2').val(), $('#mode').val(), 'DXCC2');
displayContacts(marker.options.adif, $('#band2').val(), $('#mode').val(), 'DXCC2');
}