From 92701ee2d4639e9d31ed87e5db56faa750e8d031 Mon Sep 17 00:00:00 2001 From: int2001 Date: Sun, 6 Jul 2025 12:23:50 +0000 Subject: [PATCH] Datatable usage for SOTA --- application/views/awards/sota/index.php | 33 +++++++++----- application/views/interface_assets/footer.php | 45 +++++++++++++++++++ 2 files changed, 66 insertions(+), 12 deletions(-) diff --git a/application/views/awards/sota/index.php b/application/views/awards/sota/index.php index ca6b357e5..70a53eb9e 100644 --- a/application/views/awards/sota/index.php +++ b/application/views/awards/sota/index.php @@ -15,27 +15,36 @@ 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'); + } ?> - - +
+ - - - - - - + + + + + + + - + + num_rows() > 0) { foreach ($sota_all->result() as $row) { ?> - - + + @@ -45,7 +54,7 @@ } } ?> - +
COL_SOTA_REF; ?>COL_TIME_ON); echo date('d/m/y', $timestamp); ?> - COL_TIME_ON); echo date('H:i', $timestamp); ?>COL_TIME_ON); echo date($custom_date_format, $timestamp); ?>COL_TIME_ON); echo date('H:i', $timestamp); ?> COL_CALL; ?> COL_BAND; ?> COL_RST_SENT; ?>
' . __("Nothing found!") . ''; diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 39b13d3d3..5d7162f30 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -3132,6 +3132,51 @@ function viewEqsl(picture, callsign) { $('[class*="buttons"]').css("color", "white"); } + uri->segment(2) == 'sota') { ?> + uri->segment(2) == "pota") { ?>