From dfb9e8a9bbf8c02548e8c990cd2b91834e181f88 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 30 Nov 2022 17:17:19 +0100 Subject: [PATCH] Add eye candy to POTA awards table --- application/views/awards/pota/index.php | 41 ++++--- application/views/interface_assets/footer.php | 102 ++++++++++++------ 2 files changed, 95 insertions(+), 48 deletions(-) diff --git a/application/views/awards/pota/index.php b/application/views/awards/pota/index.php index 65d4abe8..a5f2b942 100644 --- a/application/views/awards/pota/index.php +++ b/application/views/awards/pota/index.php @@ -4,39 +4,50 @@ 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/cloudlog.php + $custom_date_format = $this->config->item('qso_date_format'); + } ?> - +
+ - - - - - - + + + + + + + + + num_rows() > 0) { foreach ($pota_all->result() as $row) { ?> - - - - - - + + + + + + + +
ReferenceDate/TimeCallsignBandRST SentRST Receivedlang->line('gen_hamradio_pota_reference') ?>lang->line('general_word_date') ?>lang->line('general_word_time') ?>lang->line('gen_hamradio_callsign') ?>lang->line('gen_hamradio_band') ?>lang->line('gen_hamradio_rsts') ?>lang->line('gen_hamradio_rstr') ?>
- COL_POTA_REF; ?> - COL_TIME_ON); echo date('d/m/y', $timestamp); ?> - COL_TIME_ON); echo date('H:i', $timestamp); ?>COL_CALL; ?>COL_BAND; ?>COL_RST_SENT; ?>COL_RST_RCVD; ?>COL_POTA_REF; ?>COL_TIME_ON); echo date($custom_date_format, $timestamp); ?>COL_TIME_ON); echo date('H:i', $timestamp); ?>COL_CALL; ?>COL_SAT_NAME != null) { echo $row->COL_SAT_NAME; } else { echo $row->COL_BAND; } ?>COL_RST_SENT; ?>COL_RST_RCVD; ?>
×Nothing found!'; diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index e4569699..9ebb8732 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -3063,7 +3063,7 @@ function deleteQsl(id) { -uri->segment(1) == "awards" && ($this->uri->segment(2) == "wwff") ) { +uri->segment(1) == "awards") { // Get Date format if($this->session->userdata('user_date_format')) { // If Logged in and session exists @@ -3088,39 +3088,75 @@ function deleteQsl(id) { ?> - + + uri->segment(2) == "pota") { ?> + +