2021-03-14 09:11:21 +00:00
|
|
|
<?php
|
|
|
|
echo '
|
|
|
|
<table style="width:100%" class="table-sm table table-bordered table-hover table-striped table-condensed text-center">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>';
|
|
|
|
foreach($bands as $band) {
|
|
|
|
echo '<th>' . $band . '</th>';
|
|
|
|
}
|
|
|
|
echo '</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>';
|
|
|
|
foreach ($result as $mode => $value) {
|
|
|
|
echo '<tr>
|
2021-07-29 10:38:41 +00:00
|
|
|
<td>'. strtoupper($mode) .'</td>';
|
2021-07-29 08:38:27 +00:00
|
|
|
foreach ($value as $key => $val) {
|
2021-07-29 10:38:41 +00:00
|
|
|
switch($type) {
|
|
|
|
case 'dxcc': $linkinfo = '<a href=\'javascript:displayContacts("'.str_replace("&", "%26", $dxcc).'","' . $key . '","' . $mode . '","DXCC2")\'>' . $val . '</a>'; break;
|
|
|
|
case 'iota': $linkinfo = '<a href=\'javascript:displayContacts("'.str_replace("&", "%26", $iota).'","' . $key . '","' . $mode . '","IOTA")\'>' . $val . '</a>'; break;
|
2023-02-18 13:19:02 +00:00
|
|
|
case 'vucc': $linkinfo = '<a href=\'javascript:displayContacts("'.str_replace("&", "%26", $grid).'","' . $key . '","' . $mode . '","VUCC")\'>' . $val . '</a>'; break;
|
|
|
|
case 'cq': $linkinfo = '<a href=\'javascript:displayContacts("'.str_replace("&", "%26", $cqz).'","' . $key . '","' . $mode . '","CQZone")\'>' . $val . '</a>'; break;
|
2021-07-29 10:38:41 +00:00
|
|
|
case 'was': $linkinfo = '<a href=\'javascript:displayContacts("'.str_replace("&", "%26", $was).'","' . $key . '","' . $mode . '","WAS")\'>' . $val . '</a>'; break;
|
|
|
|
case 'sota': $linkinfo = '<a href=\'javascript:displayContacts("'.str_replace("&", "%26", $sota).'","' . $key . '","' . $mode . '","SOTA")\'>' . $val . '</a>'; break;
|
|
|
|
case 'wwff': $linkinfo = '<a href=\'javascript:displayContacts("'.str_replace("&", "%26", $wwff).'","' . $key . '","' . $mode . '","WWFF")\'>' . $val . '</a>'; break;
|
|
|
|
}
|
|
|
|
|
|
|
|
$info = '<td>';
|
|
|
|
|
2021-07-29 08:38:27 +00:00
|
|
|
if ($val == 'W') {
|
2023-11-27 12:33:58 +00:00
|
|
|
$info .= '<div class=\'awardsBgDanger\'>' . $linkinfo . '</div>';
|
2021-03-14 09:11:21 +00:00
|
|
|
}
|
2021-07-29 08:38:27 +00:00
|
|
|
else if ($val == 'C') {
|
2023-11-27 12:33:58 +00:00
|
|
|
$info .= '<div class=\'awardsBgSuccess\'>' . $linkinfo . '</div>';
|
2021-03-14 09:11:21 +00:00
|
|
|
}
|
|
|
|
else {
|
2021-07-29 10:38:41 +00:00
|
|
|
$info .= $val;
|
2021-03-14 09:11:21 +00:00
|
|
|
}
|
2021-07-29 10:38:41 +00:00
|
|
|
|
|
|
|
$info .= '</td>';
|
|
|
|
|
|
|
|
echo $info;
|
2021-03-14 09:11:21 +00:00
|
|
|
}
|
|
|
|
echo '</tr>';
|
|
|
|
}
|
|
|
|
echo '</tbody></table>';
|
|
|
|
?>
|