From fd445e0f3deb86a658df7a38e51155a6d60e19a9 Mon Sep 17 00:00:00 2001 From: phl0 Date: Thu, 29 Aug 2024 17:28:03 +0200 Subject: [PATCH] Add number and link to QSO --- application/models/Distancerecords_model.php | 2 +- application/views/distancerecords/index.php | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/application/models/Distancerecords_model.php b/application/models/Distancerecords_model.php index 29802033c..a2db0881e 100644 --- a/application/models/Distancerecords_model.php +++ b/application/models/Distancerecords_model.php @@ -10,7 +10,7 @@ class Distancerecords_model extends CI_Model { if (!$logbooks_locations_array) { return null; } - $sql = 'SELECT t1.sat, t1.distance, t2.COL_TIME_ON time, t2.COL_CALL callsign, t2.COL_GRIDSQUARE grid FROM + $sql = 'SELECT t1.sat, t1.distance, t2.COL_TIME_ON time, t2.COL_CALL callsign, t2.COL_GRIDSQUARE grid, t2.COL_PRIMARY_KEY AS primarykey FROM ( SELECT MAX(col_distance) distance, COL_SAT_NAME sat FROM '.$this->config->item('table_name').' diff --git a/application/views/distancerecords/index.php b/application/views/distancerecords/index.php index 7b3cfd29f..a9ad96a89 100644 --- a/application/views/distancerecords/index.php +++ b/application/views/distancerecords/index.php @@ -17,6 +17,7 @@ + @@ -29,18 +30,21 @@ num_rows() > 0) { + $i = 1; foreach ($distances->result() as $row) { ?> + sat; ?> - distance)); ?> km + distance)); ?> km time); echo date($custom_date_format, $timestamp); ?> time); echo date('H:i', $timestamp); ?> - callsign; ?> + callsign; ?> grid; ?>