2022-10-31 19:09:19 +00:00
|
|
|
<?php
|
|
|
|
if ($qsos->result() != NULL) {
|
2022-11-01 18:47:06 +00:00
|
|
|
Echo 'The following QSOs were found to have an incorrect CQ zone that this DXCC normally has:';
|
2022-10-31 19:09:19 +00:00
|
|
|
echo '<table style="width:100%" class="qsolist table-sm table-bordered table-hover table-striped table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style=\'text-align: center\'>Date</th>
|
|
|
|
<th style=\'text-align: center\'>Time</th>
|
|
|
|
<th style=\'text-align: center\'>'.$this->lang->line('gen_hamradio_callsign').'</th>
|
|
|
|
<th style=\'text-align: center\'>' . $this->lang->line('gen_hamradio_mode') . '</th>
|
|
|
|
<th style=\'text-align: center\'>' . $this->lang->line('gen_hamradio_band') . '</th>
|
2022-11-07 12:20:31 +00:00
|
|
|
<th style=\'text-align: center\'>' . $this->lang->line('gen_hamradio_gridsquare') . '</th>
|
2022-10-31 19:09:19 +00:00
|
|
|
<th style=\'text-align: center\'>CQ Zone</th>
|
2022-11-01 18:47:06 +00:00
|
|
|
<th style=\'text-align: center\'>DXCC CQ Zone</th>
|
|
|
|
<th style=\'text-align: center\'>DXCC</th>
|
2022-10-31 19:09:19 +00:00
|
|
|
<th style=\'text-align: center\'>' . $this->lang->line('gen_hamradio_station') . '</th>
|
|
|
|
</tr>
|
|
|
|
</thead><tbody>';
|
|
|
|
|
|
|
|
// 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');
|
|
|
|
}
|
|
|
|
|
2022-11-01 18:47:06 +00:00
|
|
|
$i = 0;
|
|
|
|
|
2022-10-31 19:09:19 +00:00
|
|
|
foreach ($qsos->result() as $qso) {
|
|
|
|
echo '<tr>';
|
|
|
|
echo '<td style=\'text-align: center\'>'; $timestamp = strtotime($qso->COL_TIME_ON); echo date($custom_date_format, $timestamp); echo '</td>';
|
|
|
|
echo '<td style=\'text-align: center\'>'; $timestamp = strtotime($qso->COL_TIME_ON); echo date('H:i', $timestamp); echo '</td>';
|
2022-11-01 18:47:06 +00:00
|
|
|
echo '<td style=\'text-align: center\'><a id="edit_qso" href="javascript:displayQso(' . $qso->COL_PRIMARY_KEY . ')">' . str_replace("0","Ø",strtoupper($qso->COL_CALL)) . '</a></td>';
|
2022-10-31 19:09:19 +00:00
|
|
|
echo '<td style=\'text-align: center\'>'; echo $qso->COL_SUBMODE==null?$qso->COL_MODE:$qso->COL_SUBMODE; echo '</td>';
|
|
|
|
echo '<td style=\'text-align: center\'>'; if($qso->COL_SAT_NAME != null) { echo $qso->COL_SAT_NAME; } else { echo strtolower($qso->COL_BAND); }; echo '</td>';
|
2022-11-07 15:42:19 +00:00
|
|
|
echo '<td style=\'text-align: center\'>'; echo strlen($qso->COL_GRIDSQUARE)==0?$qso->COL_VUCC_GRIDS:$qso->COL_GRIDSQUARE; echo '</td>';
|
2022-10-31 19:09:19 +00:00
|
|
|
echo '<td style=\'text-align: center\'>' . $qso->COL_CQZ . '</td>';
|
2022-11-01 18:47:06 +00:00
|
|
|
echo '<td style=\'text-align: center\'>' . $qso->correctcqzone . '</td>';
|
|
|
|
echo '<td style=\'text-align: center\'>' . ucwords(strtolower($qso->COL_COUNTRY), "- (/") . '</td>';
|
2022-10-31 19:09:19 +00:00
|
|
|
echo '<td style=\'text-align: center\'><span class="badge badge-light">' . $qso->station_callsign . '</span></td>';
|
|
|
|
echo '</tr>';
|
|
|
|
}
|
|
|
|
|
|
|
|
echo '</tbody></table>';
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
} else {
|
2022-11-08 16:30:16 +00:00
|
|
|
echo '<div class="alert alert-success"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>No incorrect CQ Zones were found.</div>';
|
2022-10-31 19:09:19 +00:00
|
|
|
}
|
2022-11-07 12:20:31 +00:00
|
|
|
?>
|