Merge pull request #2613 from phl0/workedGridsquareSearchResult

Check if grid worked on default band for callbook results
This commit is contained in:
Peter Goodhall
2023-10-24 16:51:36 +01:00
committed by GitHub
2 changed files with 12 additions and 2 deletions

View File

@@ -5,7 +5,6 @@
<?php if(isset($callsign['callsign'])) { ?>
<h3>Callbook Search for <?php echo $id; ?></h3>
<table>
<tr>
@@ -25,7 +24,15 @@
<tr>
<td style="padding: 0 0.3em 0 0;" align="left">Gridsquare</td>
<td style="padding: 0.3em 0 0.3em 0.5em;" align="left"><?php echo strtoupper($callsign['gridsquare']); ?></td>
<td style="padding: 0.3em 0 0.3em 0.5em;" align="left">
<?php
if ($grid_worked != 0) {
echo " <span data-toggle=\"tooltip\" title=\"Worked\" class=\"badge-success\" style=\"padding-left: 0.2em; padding-right: 0.2em;\">".strtoupper($callsign['gridsquare'])."</span>";
} else {
echo " <span data-toggle=\"tooltip\" title=\"Not Worked\" class=\"badge-danger\" style=\"padding-left: 0.2em; padding-right: 0.2em;\">".strtoupper($callsign['gridsquare'])."</span>";
}
?>
</td>
</tr>
</table>