diff --git a/application/views/awards/wwff/index.php b/application/views/awards/wwff/index.php index df98c4e3..eb33579f 100644 --- a/application/views/awards/wwff/index.php +++ b/application/views/awards/wwff/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 ($wwff_all->result() as $row) { ?> - - - - - - + + + + + + + +
ReferenceDate/TimeCallsignBandRST SentRST Receivedlang->line('gen_hamradio_wwff_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_WWFF_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_WWFF_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 88239744..cb8d8683 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -2987,5 +2987,65 @@ function deleteQsl(id) { +uri->segment(1) == "awards" && ($this->uri->segment(2) == "wwff") ) { + // 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/cloudlog.php + $custom_date_format = $this->config->item('qso_date_format'); + } + + switch ($custom_date_format) { + case 'd/m/y': $usethisformat = 'D/MM/YY';break; + case 'd/m/Y': $usethisformat = 'D/MM/YYYY';break; + case 'm/d/y': $usethisformat = 'MM/D/YY';break; + case 'm/d/Y': $usethisformat = 'MM/D/YYYY';break; + case 'd.m.Y': $usethisformat = 'D.MM.YYYY';break; + case 'y/m/d': $usethisformat = 'YY/MM/D';break; + case 'Y-m-d': $usethisformat = 'YYYY-MM-D';break; + case 'M d, Y': $usethisformat = 'MMM D, YYYY';break; + case 'M d, y': $usethisformat = 'MMM D, YY';break; + } + + ?> + + + + +