From 54c31a6b3f943a9fef7d92b09b3f0451b2d3e4ba Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Mon, 26 Dec 2022 16:29:28 +0100 Subject: [PATCH] [QSLPrint] Added the display of qsl sent via --- application/views/qslprint/index.php | 65 +++---------------------- application/views/qslprint/qslprint.php | 45 +++++++++++------ 2 files changed, 37 insertions(+), 73 deletions(-) diff --git a/application/views/qslprint/index.php b/application/views/qslprint/index.php index b8250c57..2d9c4401 100644 --- a/application/views/qslprint/index.php +++ b/application/views/qslprint/index.php @@ -29,63 +29,12 @@

Here you can export requested QSLs as CSV or ADIF files for printing and, optionally, mark them as sent via bureau.

Requested QSLs are any QSOs with a value of "Requested" or "Queued" in their "QSL Sent" field.

- '; - if ($qsos->result() != NULL) { - echo ' - - - - - - - - - - - - - '; - - // 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'); - } - - foreach ($qsos->result() as $qsl) { - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - } - - echo '
'.$this->lang->line('gen_hamradio_callsign').'' . $this->lang->line('general_word_date') . ''. $this->lang->line('general_word_time') .'' . $this->lang->line('gen_hamradio_mode') . '' . $this->lang->line('gen_hamradio_band') . '' . $this->lang->line('gen_hamradio_qsl') . ' ' . $this->lang->line('general_word_qslcard_via') . '' . $this->lang->line('gen_hamradio_station') . '
' . $qsl->COL_CALL . ''; $timestamp = strtotime($qsl->COL_TIME_ON); echo date($custom_date_format, $timestamp); echo ''; $timestamp = strtotime($qsl->COL_TIME_ON); echo date('H:i', $timestamp); echo ''; echo $qsl->COL_SUBMODE==null?$qsl->COL_MODE:$qsl->COL_SUBMODE; echo ''; if($qsl->COL_SAT_NAME != null) { echo $qsl->COL_SAT_NAME; } else { echo strtolower($qsl->COL_BAND); }; echo '' . $qsl->COL_QSL_VIA . '' . $qsl->station_callsign . '
'; - ?> - -

Export requested QSLs to CSV-file

- -

Export requested QSLs to ADIF-file

- -

Mark requested QSLs as sent

- - ×No QSL\'s to print were found!'; - } - ?> - +
+ load->view('qslprint/qslprint', $data2); + ?> +
- - + \ No newline at end of file diff --git a/application/views/qslprint/qslprint.php b/application/views/qslprint/qslprint.php index 8c7a4bcf..0198e6f8 100644 --- a/application/views/qslprint/qslprint.php +++ b/application/views/qslprint/qslprint.php @@ -1,19 +1,33 @@ result() != NULL) { echo ' - - - - - - - - - - - - - '; + + + + + + + + + + + + + +'; // Get Date format if($this->session->userdata('user_date_format')) { @@ -33,8 +47,9 @@ if ($qsos->result() != NULL) { echo ''; echo ''; echo ''; - echo ''; - echo ''; + echo ''; + echo ''; + echo ''; echo ''; }
'.$this->lang->line('gen_hamradio_callsign').'' . $this->lang->line('general_word_date') . ''. $this->lang->line('general_word_time') .'' . $this->lang->line('gen_hamradio_mode') . '' . $this->lang->line('gen_hamradio_band') . '' . $this->lang->line('gen_hamradio_qsl') . ' ' . $this->lang->line('general_word_qslcard_via') . '' . $this->lang->line('gen_hamradio_station') . '
'.$this->lang->line('gen_hamradio_callsign').'' . $this->lang->line('general_word_date') . ''. $this->lang->line('general_word_time') .'' . $this->lang->line('gen_hamradio_mode') . '' . $this->lang->line('gen_hamradio_band') . '' . $this->lang->line('gen_hamradio_qsl') . ' ' . $this->lang->line('general_word_qslcard_via') . '' . $this->lang->line('gen_hamradio_station') . 'Sent methodDeleteQSO List
'; if($qsl->COL_SAT_NAME != null) { echo $qsl->COL_SAT_NAME; } else { echo strtolower($qsl->COL_BAND); }; echo '' . $qsl->COL_QSL_VIA . '' . $qsl->station_callsign . ''; echo_qsl_sent_via($qsl->COL_QSL_SENT_VIA); echo '