2020-05-20 17:43:13 +00:00
|
|
|
|
|
|
|
<div class="container adif">
|
|
|
|
|
2020-10-20 14:51:55 +00:00
|
|
|
<h2><?php echo $page_title; ?></h2>
|
2020-05-20 17:43:13 +00:00
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
2020-10-20 14:51:55 +00:00
|
|
|
Upload Logbook
|
2020-05-20 17:43:13 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
2020-10-20 14:51:55 +00:00
|
|
|
<p>Here you can see and upload all QSOs which have not been previously uploaded to a QRZ logbook.</p>
|
|
|
|
<p>You need to set a QRZ Logbook API key in your station profile. Only station profiles with an API Key set are displayed.</p>
|
|
|
|
<p><span class="badge badge-warning">Warning</span>This might take a while as QSO uploads are processed sequentially.</p>
|
2020-05-20 20:58:36 +00:00
|
|
|
|
2020-05-20 17:43:13 +00:00
|
|
|
<?php
|
|
|
|
if ($station_profile->result()) {
|
|
|
|
echo '
|
|
|
|
|
|
|
|
<table class="table table-bordered table-hover table-striped table-condensed text-center">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td>Profile name</td>
|
|
|
|
<td>Station callsign</td>
|
|
|
|
<td>Edited QSOs not uploaded</td>
|
|
|
|
<td>Total QSOs not uploaded</td>
|
|
|
|
<td>Total QSOs uploaded</td>
|
2020-10-26 08:58:49 +00:00
|
|
|
<td>Actions</td>
|
2020-05-20 17:43:13 +00:00
|
|
|
</thead>
|
|
|
|
<tbody>';
|
|
|
|
foreach ($station_profile->result() as $station) { // Fills the table with the data
|
|
|
|
echo '<tr>';
|
|
|
|
echo '<td>' . $station->station_profile_name . '</td>';
|
|
|
|
echo '<td>' . $station->station_callsign . '</td>';
|
|
|
|
echo '<td id ="modcount'.$station->station_id.'">' . $station->modcount . '</td>';
|
|
|
|
echo '<td id ="notcount'.$station->station_id.'">' . $station->notcount . '</td>';
|
|
|
|
echo '<td id ="totcount'.$station->station_id.'">' . $station->totcount . '</td>';
|
2020-10-26 08:58:49 +00:00
|
|
|
echo '<td><button id="qrzUpload" type="button" name="qrzUpload" class="btn btn-primary btn-sm ld-ext-right" onclick="ExportQrz('. $station->station_id .')"><i class="fas fa-cloud-upload-alt"></i> Upload<div class="ld ld-ring ld-spin"></div></button></td>';
|
2020-05-20 17:43:13 +00:00
|
|
|
echo '</tr>';
|
|
|
|
}
|
|
|
|
echo '</tfoot></table></div>';
|
|
|
|
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
echo '<div class="alert alert-danger" role="alert"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>Nothing found!</div>';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|