mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 10:08:38 +00:00
Make LoTW hint clickable and show last upload from LoTW page
This commit is contained in:
parent
22705228f2
commit
0320acbefd
@ -65,7 +65,7 @@
|
|||||||
<div class="form-group col-md-9">
|
<div class="form-group col-md-9">
|
||||||
<label for="callsign"><?php echo lang('gen_hamradio_callsign'); ?></label><?php if ($this->optionslib->get_option('dxcache_url') != '') { ?> <i id="check_cluster" data-toggle="tooltip" data-original-title="Search DXCluster for latest Spot" class="fas fa-search"></i> <?php } ?>
|
<label for="callsign"><?php echo lang('gen_hamradio_callsign'); ?></label><?php if ($this->optionslib->get_option('dxcache_url') != '') { ?> <i id="check_cluster" data-toggle="tooltip" data-original-title="Search DXCluster for latest Spot" class="fas fa-search"></i> <?php } ?>
|
||||||
<input type="text" class="form-control" id="callsign" name="callsign" required>
|
<input type="text" class="form-control" id="callsign" name="callsign" required>
|
||||||
<small id="callsign_info" class="badge badge-secondary"></small> <small id="lotw_info" class="badge badge-success"></small>
|
<small id="callsign_info" class="badge badge-secondary"></small> <a id="lotw_link"><small id="lotw_info" class="badge badge-success"></small></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3 align-self-center">
|
<div class="form-group col-md-3 align-self-center">
|
||||||
<small id="qrz_info" class="badge badge-secondary"></small>
|
<small id="qrz_info" class="badge badge-secondary"></small>
|
||||||
|
@ -112,7 +112,7 @@ function echoQrbCalcLink($mygrid, $grid, $vucc) {
|
|||||||
} elseif ($diff > 7) {
|
} elseif ($diff > 7) {
|
||||||
$lotw_hint = ' lotw_info_yellow';
|
$lotw_hint = ' lotw_info_yellow';
|
||||||
}
|
}
|
||||||
$timestamp = strtotime($row->lastupload); echo ($row->callsign == '' ? '' : ' <small id="lotw_info" class="badge badge-success'.$lotw_hint.'" data-toggle="tooltip" data-original-title="LoTW User. Last upload was '.date($custom_date_format." H:i", $timestamp).'">L</small>');
|
$timestamp = strtotime($row->lastupload); echo ($row->callsign == '' ? '' : ' <a href="https://lotw.arrl.org/lotwuser/act?act='.$row->COL_CALL.'" target="_blank"><small id="lotw_info" class="badge badge-success'.$lotw_hint.'" data-toggle="tooltip" data-original-title="LoTW User. Last upload was '.date($custom_date_format." H:i", $timestamp).'">L</small></a>');
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
@ -26,7 +26,7 @@ function updateRow(qso) {
|
|||||||
let c = 1;
|
let c = 1;
|
||||||
cells.eq(c++).text(qso.qsoDateTime);
|
cells.eq(c++).text(qso.qsoDateTime);
|
||||||
cells.eq(c++).text(qso.de);
|
cells.eq(c++).text(qso.de);
|
||||||
cells.eq(c++).html('<a id="edit_qso" href="javascript:displayQso('+qso.qsoID+')">'+qso.dx+'</a>' + (qso.callsign == '' ? '' : ' <small id="lotw_info" class="badge badge-success'+qso.lotw_hint+'" data-toggle="tooltip" data-original-title="LoTW User. Last upload was ' + qso.lastupload + '">L</small>') + ' <a target="_blank" href="https://www.qrz.com/db/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/qrz.png" alt="Lookup ' + qso.dx + ' on QRZ.com"></a> <a target="_blank" href="https://www.hamqth.com/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/hamqth.png" alt="Lookup ' + qso.dx + ' on HamQTH"></a>');
|
cells.eq(c++).html('<a id="edit_qso" href="javascript:displayQso('+qso.qsoID+')">'+qso.dx+'</a>' + (qso.callsign == '' ? '' : ' <a href="https://lotw.arrl.org/lotwuser/act?act='+qso.callsign+'" target="_blank"><small id="lotw_info" class="badge badge-success'+qso.lotw_hint+'" data-toggle="tooltip" data-original-title="LoTW User. Last upload was ' + qso.lastupload + '">L</small></a>') + ' <a target="_blank" href="https://www.qrz.com/db/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/qrz.png" alt="Lookup ' + qso.dx + ' on QRZ.com"></a> <a target="_blank" href="https://www.hamqth.com/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/hamqth.png" alt="Lookup ' + qso.dx + ' on HamQTH"></a>');
|
||||||
cells.eq(c++).text(qso.mode);
|
cells.eq(c++).text(qso.mode);
|
||||||
cells.eq(c++).text(qso.rstS);
|
cells.eq(c++).text(qso.rstS);
|
||||||
cells.eq(c++).text(qso.rstR);
|
cells.eq(c++).text(qso.rstR);
|
||||||
@ -81,7 +81,7 @@ function loadQSOTable(rows) {
|
|||||||
data.push('<div class="form-check"><input class="form-check-input" type="checkbox" /></div>');
|
data.push('<div class="form-check"><input class="form-check-input" type="checkbox" /></div>');
|
||||||
data.push(qso.qsoDateTime);
|
data.push(qso.qsoDateTime);
|
||||||
data.push(qso.de);
|
data.push(qso.de);
|
||||||
data.push('<a id="edit_qso" href="javascript:displayQso('+qso.qsoID+')">'+qso.dx+'</a>' + (qso.callsign == '' ? '' : ' <small id="lotw_info" class="badge badge-success'+qso.lotw_hint+'" data-toggle="tooltip" data-original-title="LoTW User. Last upload was ' + qso.lastupload + ' ">L</small>') + ' <a target="_blank" href="https://www.qrz.com/db/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/qrz.png" alt="Lookup ' + qso.dx + ' on QRZ.com"></a> <a target="_blank" href="https://www.hamqth.com/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/hamqth.png" alt="Lookup ' + qso.dx + ' on HamQTH"></a>');
|
data.push('<a id="edit_qso" href="javascript:displayQso('+qso.qsoID+')">'+qso.dx+'</a>' + (qso.callsign == '' ? '' : ' <a href="https://lotw.arrl.org/lotwuser/act?act='+qso.callsign+'" target="_blank"><small id="lotw_info" class="badge badge-success'+qso.lotw_hint+'" data-toggle="tooltip" data-original-title="LoTW User. Last upload was ' + qso.lastupload + ' ">L</small></a>') + ' <a target="_blank" href="https://www.qrz.com/db/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/qrz.png" alt="Lookup ' + qso.dx + ' on QRZ.com"></a> <a target="_blank" href="https://www.hamqth.com/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/hamqth.png" alt="Lookup ' + qso.dx + ' on HamQTH"></a>');
|
||||||
data.push(qso.mode);
|
data.push(qso.mode);
|
||||||
data.push(qso.rstS);
|
data.push(qso.rstS);
|
||||||
data.push(qso.rstR);
|
data.push(qso.rstR);
|
||||||
|
@ -495,8 +495,10 @@ $("#callsign").focusout(function() {
|
|||||||
} else if (result.lotw_days > 7) {
|
} else if (result.lotw_days > 7) {
|
||||||
$('#lotw_info').addClass('lotw_info_yellow');
|
$('#lotw_info').addClass('lotw_info_yellow');
|
||||||
}
|
}
|
||||||
|
$('#lotw_link').attr('href',"https://lotw.arrl.org/lotwuser/act?act="+find_callsign);
|
||||||
|
$('#lotw_link').attr('target',"_blank");
|
||||||
$('#lotw_info').attr('data-toggle',"tooltip");
|
$('#lotw_info').attr('data-toggle',"tooltip");
|
||||||
$('#lotw_info').attr('data-original-title',"LoTW User. Last upload was "+result.lotw_days+" days ago");
|
$('#lotw_info').attr('data-original-title',"BLABLA LoTW User. Last upload was "+result.lotw_days+" days ago");
|
||||||
$('[data-toggle="tooltip"]').tooltip();
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
}
|
}
|
||||||
$('#qrz_info').html('<a target="_blank" href="https://www.qrz.com/db/'+find_callsign+'"><img width="32" height="32" src="'+base_url+'images/icons/qrz.com.png"></a>');
|
$('#qrz_info').html('<a target="_blank" href="https://www.qrz.com/db/'+find_callsign+'"><img width="32" height="32" src="'+base_url+'images/icons/qrz.com.png"></a>');
|
||||||
|
Loading…
Reference in New Issue
Block a user