2020-03-15 13:18:49 +00:00
|
|
|
<div class="container">
|
2020-09-22 19:08:26 +00:00
|
|
|
<h2><?php echo $page_title; ?></h2>
|
2020-03-15 13:18:49 +00:00
|
|
|
|
|
|
|
<h3>Filtering on <?php echo $filter ?></h3>
|
|
|
|
<?php
|
|
|
|
$i = 1;
|
|
|
|
if ($vucc_array) {
|
2020-09-22 19:08:26 +00:00
|
|
|
echo '<table style="width:100%" class="table table-sm tablevucc table-bordered table-hover table-striped table-condensed text-center">
|
2020-03-15 13:18:49 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td>#</td>
|
2020-10-25 13:59:03 +00:00
|
|
|
<td>Gridsquare</td>';
|
|
|
|
|
|
|
|
if ($type != 'worked') {
|
|
|
|
echo '<td>QSL</td>
|
|
|
|
<td>LoTW</td>';
|
|
|
|
} else {
|
|
|
|
echo '<td>Call</td>';
|
|
|
|
}
|
|
|
|
echo '</tr>
|
2020-03-15 13:18:49 +00:00
|
|
|
</thead>
|
|
|
|
<tbody>';
|
2020-10-25 13:59:03 +00:00
|
|
|
foreach ($vucc_array as $vucc => $value) { // Fills the table with the data
|
|
|
|
echo '<tr>
|
2020-03-15 13:18:49 +00:00
|
|
|
<td>'. $i++ .'</td>
|
2021-07-24 12:31:16 +00:00
|
|
|
<td><a href=\'javascript:displayContacts("'. $vucc .'","'. $band . '","All","VUCC")\'>'. $vucc .'</td>';
|
2020-10-25 13:59:03 +00:00
|
|
|
|
|
|
|
if ($type != 'worked') {
|
|
|
|
echo '<td>'. $value['qsl'] . '</td>
|
|
|
|
<td>'. $value['lotw'] .'</td>';
|
|
|
|
} else {
|
|
|
|
echo '<td>'. $value['call'] .'</td>';
|
|
|
|
}
|
|
|
|
|
|
|
|
echo '</tr>';
|
2020-03-15 13:18:49 +00:00
|
|
|
}
|
2020-10-25 13:59:03 +00:00
|
|
|
echo '</tbody></table></div>';
|
2020-03-15 13:18:49 +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>';
|
|
|
|
}
|
2020-10-25 13:59:03 +00:00
|
|
|
?>
|