Add hint for user

This commit is contained in:
phl0
2025-11-21 08:07:16 +01:00
parent d0152d5963
commit 8587b4fd34
2 changed files with 5 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ class Lotw_model extends CI_Model {
*/
function lotw_certs($user_id) {
$this->db->select('lotw_certs.lotw_cert_id as lotw_cert_id, lotw_certs.serial as serial, lotw_certs.status as status, lotw_certs.callsign as callsign, dxcc_entities.name as cert_dxcc, dxcc_entities.end as cert_dxcc_end, lotw_certs.qso_start_date as qso_start_date, lotw_certs.qso_end_date as qso_end_date, lotw_certs.date_created as date_created, lotw_certs.date_expires as date_expires, lotw_certs.last_upload as last_upload, lotw_certs.last_upload_fail as last_upload_fail, lotw_certs.last_upload_status as last_upload_status');
$this->db->select('lotw_certs.lotw_cert_id as lotw_cert_id, lotw_certs.serial as serial, lotw_certs.status as status, lotw_certs.callsign as callsign, dxcc_entities.name as cert_dxcc, dxcc_entities.end as cert_dxcc_end, lotw_certs.qso_start_date as qso_start_date, lotw_certs.qso_end_date as qso_end_date, lotw_certs.date_created as date_created, lotw_certs.date_expires as date_expires, lotw_certs.last_upload as last_upload, lotw_certs.last_upload_fail as last_upload_fail, lotw_certs.last_upload_status as last_upload_status, lotw_certs.last_modified as last_modified');
$this->db->where('user_id', $user_id);
$this->db->join('dxcc_entities','lotw_certs.cert_dxcc_id = dxcc_entities.adif','left');
$this->db->order_by('callsign', 'ASC');

View File

@@ -46,8 +46,8 @@
<?php $current_date = date('Y-m-d H:i:s'); ?>
<?php foreach ($lotw_cert_results->result() as $row) { ?>
<tr>
<td><?php echo $row->callsign; ?></td>
<td><?php echo $row->cert_dxcc == '' ? '- NONE -' : ucfirst($row->cert_dxcc); if ($row->cert_dxcc_end != NULL) { echo ' <span class="badge text-bg-danger">'.__("Deleted DXCC").'</span>'; } ?></td>
<td><?php echo $row->callsign; ?></td>
<td><?php echo $row->cert_dxcc == '' ? '- NONE -' : ucfirst($row->cert_dxcc); if ($row->cert_dxcc_end != NULL) { echo ' <span class="badge text-bg-danger">'.__("Deleted DXCC").'</span>'; } ?></td>
<td><?php
if (isset($row->qso_start_date)) {
$valid_qso_start = strtotime( $row->qso_start_date );
@@ -92,6 +92,7 @@
} ?>
</td>
<td>
<span data-bs-toggle="tooltip" data-bs-html="true" data-bs-original-title="<?= __("Serial number:")." ".((($row->serial ?? '') != '' )? $row->serial : __("n/a")); ?><br><?= __("Last change:")." ".(date($this->config->item('qso_date_format').' H:i', strtotime($row->last_modified))); ?>">
<?php if ($row->status == 1) { ?>
<span class="badge text-bg-danger"><?= __("Certificate superseded"); ?></span>
<?php } else { ?>
@@ -108,6 +109,7 @@
<span class="badge text-bg-warning"><?= __("QSO end date nearing"); ?></span>
<?php } ?>
<?php } ?>
</span>
</td>
<td>
<?php if ($row->last_upload) {