Add mode to distance record table

This commit is contained in:
phl0
2024-08-30 14:04:35 +02:00
parent 4d96258b06
commit 6ce2f573ec
2 changed files with 3 additions and 1 deletions

View File

@@ -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, t2.COL_PRIMARY_KEY AS primarykey FROM
$sql = 'SELECT t1.sat, t1.distance, t2.COL_TIME_ON time, t2.COL_CALL callsign, t2.COL_GRIDSQUARE grid, t2.COL_MODE mode, t2.COL_PRIMARY_KEY AS primarykey FROM
(
SELECT MAX(col_distance) distance, COL_SAT_NAME sat
FROM '.$this->config->item('table_name').'

View File

@@ -16,6 +16,7 @@
<th style="text-align: center"><?= __("Date") ?></th>
<th style="text-align: center"><?= __("Time") ?></th>
<th style="text-align: center"><?= __("Callsign") ?></th>
<th style="text-align: center"><?= __("Mode") ?></th>
<th style="text-align: center"><?= __("Gridsquare") ?></th>
</tr>
</thead>
@@ -34,6 +35,7 @@
<td style="text-align: center"><?php $timestamp = strtotime($row->time ?? ''); echo date($custom_date_format, $timestamp); ?></td>
<td style="text-align: center"><?php $timestamp = strtotime($row->time ?? ''); echo date('H:i', $timestamp); ?></td>
<td style="text-align: center"><a href="javascript:displayQso(<?php echo $row->primarykey; ?>)"><?php echo $row->callsign; ?></a></td>
<td style="text-align: center"><?php echo $row->mode; ?></td>
<td style="text-align: center"><?php echo $row->grid; ?></td>
</tr>
<?php