Added more information in the dxcc table

This commit is contained in:
Andreas Kristiansen
2025-12-28 08:42:54 +01:00
parent 1afebe7dec
commit ca917a4080
2 changed files with 14 additions and 1 deletions

View File

@@ -1958,6 +1958,10 @@ class Logbookadvanced_model extends CI_Model {
$result[] = array(
'callsign' => $call->col_call,
'qso_date' => $call->date,
'mode' => isset($call->col_mode) ? $call->col_mode : '',
'submode' => isset($call->col_submode) ? $call->col_submode : '',
'band' => isset($call->col_band) ? $call->col_band : '',
'lotw_qsl_rcvd' => isset($call->col_lotw_qsl_rcvd) ? $call->col_lotw_qsl_rcvd : '',
'station_profile' => $call->station_profile_name,
'existing_dxcc' => $call->col_country,
'existing_adif' => $call->col_dxcc,
@@ -1982,7 +1986,7 @@ class Logbookadvanced_model extends CI_Model {
}
function getQsos() {
$sql = 'select distinct col_country, col_call, col_dxcc, date(col_time_on) date, station_profile.station_profile_name, col_primary_key
$sql = 'select distinct col_country, col_call, col_dxcc, date(col_time_on) date, col_mode, col_submode, col_band, col_lotw_qsl_rcvd, station_profile.station_profile_name, col_primary_key
from ' . $this->config->item('table_name') . '
join station_profile on ' . $this->config->item('table_name') . '.station_id = station_profile.station_id
where station_profile.user_id = ?';

View File

@@ -141,6 +141,9 @@ function check_dxcc($result, $custom_date_format) { ?>
<th><div class="form-check"><input class="form-check-input mt-2" type="checkbox" id="checkBoxAllDxcc" /></div></th>
<th><?= __("Callsign"); ?></th>
<th><?= __("QSO Date"); ?></th>
<th class="select-filter" scope="col"><?= __("Band"); ?></th>
<th class="select-filter" scope="col"><?= __("Mode"); ?></th>
<th class="select-filter" scope="col"><?= __("LoTW"); ?></th>
<th class="select-filter" scope="col"><?= __("Station Profile"); ?></th>
<th class="select-filter" scope="col"><?= __("Existing DXCC"); ?></th>
<th><?= __("Result DXCC"); ?></th>
@@ -152,6 +155,9 @@ function check_dxcc($result, $custom_date_format) { ?>
<td><div class="form-check"><input class="row-check form-check-input mt-1" type="checkbox" /></div></td>
<td><?php echo '<a id="edit_qso" href="javascript:displayQso(' . $qso['id'] . ')">' . htmlspecialchars($qso['callsign']) . '</a>'; ?></td>
<td><?php echo date($custom_date_format, strtotime($qso['qso_date'])); ?></td>
<td><?php echo htmlspecialchars($qso['band']); ?></td>
<td><?php echo htmlspecialchars($qso['submode'] ? $qso['submode'] : $qso['mode']); ?></td>
<td><?php echo $qso['lotw_qsl_rcvd'] == 'Y' ? __('Yes') : __('No'); ?></td>
<td><?php echo $qso['station_profile']; ?></td>
<td><?php echo htmlspecialchars(ucwords(strtolower($qso['existing_dxcc']), "- (/"), ENT_QUOTES, 'UTF-8'); ?></td>
<td><?php echo htmlspecialchars(ucwords(strtolower($qso['result_country']), "- (/"), ENT_QUOTES, 'UTF-8'); ?></td>
@@ -166,6 +172,9 @@ function check_dxcc($result, $custom_date_format) { ?>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</tfoot>
</table>