[DBTools] Some fixes

This commit is contained in:
Andreas Kristiansen
2025-12-20 12:06:23 +01:00
parent c17a4442b0
commit f36203b87a
2 changed files with 11 additions and 2 deletions

View File

@@ -90,7 +90,7 @@
</button>
</div>
</div>
<?php if ($this->config->item('callbook_batch_lookup')): ?>
<?php if ($this->config->item('callbook_batch_lookup') ?? true): ?>
<div class="list-group-item d-flex justify-content-between align-items-center">
<div>
<h6 class="mb-1"><?= __("Lookup QSOs with missing grid in callbook") ?></h6>

View File

@@ -1,3 +1,12 @@
<?php
if($this->session->userdata('user_date_format')) {
// If Logged in and session exists
$custom_date_format = $this->session->userdata('user_date_format');
} else {
// Get Default date format from /config/wavelog.php
$custom_date_format = $this->config->item('qso_date_format');
}
?>
<div class="container-fluid">
<?php if (!empty($qsos) && count($qsos) > 0): ?>
<div class="table-responsive" style="max-height:50vh; overflow:auto;">
@@ -21,7 +30,7 @@
<?php foreach ($qsos as $qso): ?>
<tr>
<td><?php echo '<a id="edit_qso" href="javascript:displayQso(' . $qso->col_primary_key . ')">' . htmlspecialchars($qso->col_call) . '</a>'; ?></td>
<td><?php echo date('Y-m-d H:i', strtotime($qso->col_time_on)); ?></td>
<td><?php echo date($custom_date_format . ' H:i', strtotime($qso->col_time_on)); ?></td>
<td><?php echo $qso->col_mode; ?></td>
<td><?php echo $qso->col_band; ?></td>
<td><?php echo $qso->col_state; ?></td>