Files
wavelog/application/views/awards/sig/index.php
2025-05-06 16:34:47 +02:00

49 lines
2.1 KiB
PHP

<div class="container">
<!-- Award Info Box -->
<br>
<div id="awardInfoButton">
<script>
var lang_awards_info_button = "<?= __("Award Info"); ?>";
var lang_award_info_ln1 = "<?= __("SIG Information"); ?>";
var lang_award_info_ln2 = "<?= __("The SIG or Special Interest Group Category provides the possibility to use any kind of 'Special Interest Group Award' for awards that are not implemented in Wavelog."); ?>";
var lang_award_info_ln3 = "<?= __("The reason for this is that the common ADIF format provides only a few dedicated fields for certain awards. SIG still makes it possible to use and evaluate all other types of markers for special interest groups."); ?>";
var lang_award_info_ln4 = "<?= __("In the QSO processing, you will find two fields: 'SIG' contains the abbreviation of the name of the special interest group which is also visible in the award evaluation, and 'SIG INFO,' which contains the actual reference(s). Both fields are freely customizable."); ?>";
</script>
<h2><?php echo $page_title; ?></h2>
<button type="button" class="btn btn-sm btn-primary me-1" id="displayAwardInfo"><?= __("Award Info"); ?></button>
</div>
<!-- End of Award Info Box -->
<?php if ($sig_types) { ?>
<table style="width:100%" class="table-sm table table-bordered table-hover table-striped table-condensed text-center">
<tr>
<td><?= __("Special Interest Group"); ?></td>
<td><?= __("Number of QSOs"); ?></td>
<td><?= __("Number of Refs"); ?></td>
</tr>
<?php
foreach ($sig_types as $row) {
?>
<tr>
<td>
<?php echo $row->col_sig; ?>
</td>
<td>
<a href='sig_details?type="<?php echo $row->col_sig; ?>"'><?php echo $row->qsos; ?></a>
</td>
<td>
<a href='sig_details?type="<?php echo $row->col_sig; ?>"'><?php echo $row->refs; ?></a>
</td>
</tr>
<?php } ?>
</table>
<?php }
else {
echo '<div class="alert alert-danger" role="alert">' . __("Nothing found!") . '</div>';
}
?>
</div>