2020-10-28 22:20:03 +00:00
|
|
|
<div class="container">
|
2020-11-04 14:48:22 +00:00
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2023-05-14 11:45:10 +00:00
|
|
|
<h2><?php echo lang('general_word_qslcards'); ?></h2>
|
2020-10-28 22:20:03 +00:00
|
|
|
|
2020-11-04 14:46:42 +00:00
|
|
|
<div class="alert alert-info" role="alert">
|
2023-05-14 11:45:10 +00:00
|
|
|
<?php echo lang('qslcard_string_your_are_using'); ?> <?php echo $storage_used; ?> <?php echo lang('qslcard_string_disk_space'); ?>
|
2020-11-04 14:46:42 +00:00
|
|
|
</div>
|
|
|
|
|
2020-10-28 22:20:03 +00:00
|
|
|
<?php
|
2021-07-22 19:13:13 +00:00
|
|
|
|
|
|
|
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');
|
|
|
|
}
|
|
|
|
|
2024-03-18 14:25:30 +00:00
|
|
|
if ($qslarray !== FALSE && is_array($qslarray->result())) {
|
2020-10-28 22:20:03 +00:00
|
|
|
echo '<table style="width:100%" class="qsltable table table-sm table-bordered table-hover table-striped table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2023-05-14 11:54:10 +00:00
|
|
|
<th style=\'text-align: center\'>'.lang('gen_hamradio_callsign').'</th>
|
|
|
|
<th style=\'text-align: center\'>'.lang('gen_hamradio_mode').'</th>
|
|
|
|
<th style=\'text-align: center\'>'.lang('general_word_date').'</th>
|
|
|
|
<th style=\'text-align: center\'>'.lang('general_word_time').'</th>
|
|
|
|
<th style=\'text-align: center\'>'.lang('gen_hamradio_band').'</th>
|
|
|
|
<th style=\'text-align: center\'>'.lang('gen_hamradio_qsl').'</th>
|
2020-10-28 22:20:03 +00:00
|
|
|
<th style=\'text-align: center\'></th>
|
|
|
|
<th style=\'text-align: center\'></th>
|
2021-07-22 05:55:34 +00:00
|
|
|
<th style=\'text-align: center\'></th>
|
2020-10-28 22:20:03 +00:00
|
|
|
</tr>
|
|
|
|
</thead><tbody>';
|
|
|
|
|
|
|
|
foreach ($qslarray->result() as $qsl) {
|
|
|
|
echo '<tr>';
|
2023-10-27 06:53:58 +00:00
|
|
|
echo '<td style=\'text-align: center\'>' . str_replace("0","Ø",$qsl->COL_CALL) . '</td>';
|
2021-07-22 19:13:13 +00:00
|
|
|
echo '<td style=\'text-align: center\'>';
|
|
|
|
echo $qsl->COL_SUBMODE==null?$qsl->COL_MODE:$qsl->COL_SUBMODE;
|
|
|
|
echo '</td>';
|
|
|
|
echo '<td style=\'text-align: center\'>';
|
|
|
|
$timestamp = strtotime($qsl->COL_TIME_ON); echo date($custom_date_format, $timestamp);
|
|
|
|
echo '</td>';
|
|
|
|
echo '<td style=\'text-align: center\'>';
|
|
|
|
$timestamp = strtotime($qsl->COL_TIME_ON); echo date('H:i', $timestamp);
|
|
|
|
echo '</td>';
|
|
|
|
echo '<td style=\'text-align: center\'>';
|
|
|
|
if($qsl->COL_SAT_NAME != null) { echo $qsl->COL_SAT_NAME; } else { echo strtolower($qsl->COL_BAND); };
|
|
|
|
echo '</td>';
|
|
|
|
echo '<td style=\'text-align: center\'>' . $qsl->filename . '</td>';
|
|
|
|
echo '<td id="'.$qsl->id.'" style=\'text-align: center\'><button onclick="deleteQsl(\''.$qsl->id.'\')" class="btn btn-sm btn-danger">Delete</button></td>';
|
2020-10-28 22:20:03 +00:00
|
|
|
echo '<td style=\'text-align: center\'><button onclick="viewQsl(\''.$qsl->filename.'\', \''. $qsl->COL_CALL . '\')" class="btn btn-sm btn-success">View</button></td>';
|
2021-07-22 05:55:34 +00:00
|
|
|
echo '<td style=\'text-align: center\'><button onclick="addQsosToQsl(\''.$qsl->filename.'\')" class="btn btn-sm btn-success">Add Qsos</button></td>';
|
2020-10-28 22:20:03 +00:00
|
|
|
echo '</tr>';
|
|
|
|
}
|
|
|
|
|
|
|
|
echo '</tbody></table>';
|
2024-03-18 14:25:30 +00:00
|
|
|
} else {
|
|
|
|
echo '<div class="alert alert-warning" role="alert">No QSL Cards Found.</div>';
|
2020-10-28 22:20:03 +00:00
|
|
|
}
|
|
|
|
?>
|
2020-11-04 14:46:42 +00:00
|
|
|
|
2021-07-22 05:55:34 +00:00
|
|
|
</div>
|