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">
|
2021-09-05 14:49:53 +00:00
|
|
|
<ul class="nav nav-tabs card-header-tabs pull-right" role="tablist">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link active" id="export-tab" data-toggle="tab" href="#export" role="tab" aria-controls="import" aria-selected="true">Upload Logbook</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" id="mark-tab" data-toggle="tab" href="#mark" role="tab" aria-controls="export" aria-selected="false">Mark QSOs</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2020-05-20 17:43:13 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
2021-09-05 14:49:53 +00:00
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active" id="export" role="tabpanel" aria-labelledby="export-tab">
|
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>
|
2023-07-07 14:18:43 +00:00
|
|
|
<p><span class="badge badge-warning">Warning</span> This might take a while as QSO uploads are processed sequentially.</p>
|
2021-09-05 14:49:53 +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>';
|
|
|
|
}
|
2021-09-05 15:11:58 +00:00
|
|
|
echo '</tfoot></table>';
|
2020-05-20 17:43:13 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
echo '<div class="alert alert-danger" role="alert"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>Nothing found!</div>';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
</div>
|
2021-09-05 14:49:53 +00:00
|
|
|
<div class="tab-pane fade" id="mark" role="tabpanel" aria-labelledby="home-tab">
|
|
|
|
|
|
|
|
<form class="form" action="<?php echo site_url('qrz/mark_qrz'); ?>" method="post" enctype="multipart/form-data">
|
2021-09-05 15:11:58 +00:00
|
|
|
<select name="station_profile" class="custom-select mb-4 mr-sm-4" style="width: 30%;">
|
2023-07-07 13:50:48 +00:00
|
|
|
<option disabled value="0">Select Station Location</option>
|
2021-09-05 15:11:58 +00:00
|
|
|
<?php foreach ($station_profiles->result() as $station) { ?>
|
2023-07-07 13:50:48 +00:00
|
|
|
<option <?php if ($station->station_active) { echo "selected "; } ?>value="<?php echo $station->station_id; ?>">Callsign: <?php echo $station->station_callsign; ?> (<?php echo $station->station_profile_name; ?>)</option>
|
2021-09-05 14:49:53 +00:00
|
|
|
<?php } ?>
|
|
|
|
</select>
|
|
|
|
<p><span class="badge badge-warning">Warning</span> If a date range is not selected then all QSOs will be marked!</p>
|
|
|
|
<p class="card-text">From date:</p>
|
|
|
|
<div class="row">
|
|
|
|
<div class="input-group date col-md-3" id="datetimepicker5" data-target-input="nearest">
|
|
|
|
<input name="from" type="text" placeholder="DD/MM/YYYY" class="form-control datetimepicker-input" data-target="#datetimepicker1"/>
|
|
|
|
<div class="input-group-append" data-target="#datetimepicker5" data-toggle="datetimepicker">
|
|
|
|
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p class="card-text">To date:</p>
|
|
|
|
<div class="row">
|
|
|
|
<div class="input-group date col-md-3" id="datetimepicker6" data-target-input="nearest">
|
|
|
|
<input name="to" "totype="text" placeholder="DD/MM/YYYY" class="form-control datetimepicker-input" data-target="#datetimepicker2"/>
|
|
|
|
<div class="input-group-append" data-target="#datetimepicker6" data-toggle="datetimepicker">
|
|
|
|
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<button type="submit" class="btn-sm btn-primary" value="Export">Mark QSOs as exported to QRZ Logbook</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-20 17:43:13 +00:00
|
|
|
</div>
|