Added custom date

This commit is contained in:
Andreas Kristiansen
2025-12-18 19:57:29 +01:00
parent 614c8cffd7
commit 8aa4e2452a

View File

@@ -1,6 +1,17 @@
<?php $execution_time ?>
<?php $calls_tested ?>
<?php $i = 0; ?>
<?php
$i = 0;
echo "<p>" . __("Callsigns tested: ") . $calls_tested . "</p>";
echo "<p>" . __("Execution time: ") . round($execution_time, 2) . "s</p>";
// Get Date format
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="table-responsive" style="max-height:70vh; overflow:auto;">
<table class="table table-sm table-striped table-bordered table-condensed mb-0">
<thead>
@@ -20,7 +31,7 @@
<tr>
<td><?php echo ++$i; ?></td>
<td><?php echo '<a id="edit_qso" href="javascript:displayQso(' . $qso['id'] . ')">' . htmlspecialchars($qso['callsign']) . '</a>'; ?></td>
<td><?php echo date('Y-m-d H:i', strtotime($qso['qso_date'])); ?></td>
<td><?php echo date($custom_date_format, strtotime($qso['qso_date'])); ?></td>
<td><?php echo $qso['station_profile']; ?></td>
<td><?php echo htmlspecialchars(ucwords(strtolower($qso['existing_dxcc']), "- (/"), ENT_QUOTES, 'UTF-8'); ?></td>
<td><?php echo $qso['existing_adif']; ?></td>
@@ -30,4 +41,4 @@
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>