2023-09-12 13:30:28 +00:00
|
|
|
<div class="table-responsive">
|
|
|
|
|
|
|
|
<h2>Hamsat - Satellite Rovers</h2>
|
|
|
|
<p>This data is from <a target="_blank" href="https://hams.at/">https://hams.at/</a></p>
|
|
|
|
<table class="table table-striped table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Date / Time</th>
|
|
|
|
<th>Callsign</th>
|
|
|
|
<th>Satellite</th>
|
|
|
|
<th>Gridsquare</th>
|
2023-09-13 13:07:26 +00:00
|
|
|
<th></th>
|
2023-09-12 13:30:28 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($rovedata as $rove) : ?>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<?php
|
|
|
|
|
|
|
|
// 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');
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php $timestamp = strtotime($rove['date']);
|
|
|
|
echo date($custom_date_format, $timestamp); ?>
|
|
|
|
|
|
|
|
- <?php echo $rove['start_time']; ?> - <?php echo $rove['end_time']; ?>
|
|
|
|
|
|
|
|
</td>
|
2023-09-14 10:13:04 +00:00
|
|
|
<td>
|
|
|
|
<?php
|
|
|
|
$CI = &get_instance();
|
2023-09-14 14:20:47 +00:00
|
|
|
$CI->load->model('logbooks_model');
|
|
|
|
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
2023-09-14 10:13:04 +00:00
|
|
|
$CI->load->model('logbook_model');
|
|
|
|
$call_worked = $CI->logbook_model->check_if_callsign_worked_in_logbook($rove['callsign'], $logbooks_locations_array, "SAT");
|
|
|
|
echo " <span data-toggle=\"tooltip\" title=\"".$rove['comment']."\">";
|
|
|
|
if ($call_worked != 0) {
|
|
|
|
echo "<span class=\"text-success\">".$rove['callsign']."</span>";
|
|
|
|
} else {
|
|
|
|
echo $rove['callsign'];
|
|
|
|
}
|
|
|
|
echo "</span></td>";
|
|
|
|
?>
|
|
|
|
</td>
|
2023-09-12 13:30:28 +00:00
|
|
|
<td><span data-toggle="tooltip" title="<?php echo $rove['frequency']; ?> - <?php echo $rove['mode']; ?>"><?= $rove['satellite'] ?></span></td>
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
// Load the logbook model and call check_if_grid_worked_in_logbook
|
|
|
|
$worked = $CI->logbook_model->check_if_grid_worked_in_logbook($rove['gridsquare'], null, "SAT");
|
|
|
|
if ($worked != 0) {
|
|
|
|
echo " <span data-toggle=\"tooltip\" title=\"Worked\" class=\"badge badge-success\">" . $rove['gridsquare'] . "</span>";
|
|
|
|
} else {
|
|
|
|
echo " <span data-toggle=\"tooltip\" title=\"Not Worked\" class=\"badge badge-danger\">" . $rove['gridsquare'] . "</span>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
</td>
|
2023-09-13 13:07:26 +00:00
|
|
|
<td><a href="<?php echo $rove['track_link']; ?>" target="_blank">Track</a></td>
|
2023-09-12 13:30:28 +00:00
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-09-14 10:13:04 +00:00
|
|
|
</div>
|