2016-02-13 00:22:30 +08:00
|
|
|
|
2019-03-21 00:58:06 +08:00
|
|
|
<div class="container">
|
2016-02-13 00:22:30 +08:00
|
|
|
<h1><?php echo $page_title; ?></h1>
|
|
|
|
|
|
|
|
|
|
<!-- Sub Nav for Awards -->
|
|
|
|
|
|
2016-04-13 23:16:07 +08:00
|
|
|
<?php $this->load->view("awards/nav_bar")?>
|
2016-04-14 00:07:26 +08:00
|
|
|
|
2019-03-21 00:58:06 +08:00
|
|
|
<table class="table table-striped table-hover">
|
2016-02-13 00:22:30 +08:00
|
|
|
<thead>
|
|
|
|
|
<tr>
|
2017-04-22 01:46:26 +08:00
|
|
|
<td style="width:225px">Country (<?php echo count($dxcc)?>)</td>
|
2019-06-17 16:10:55 +08:00
|
|
|
<?php
|
|
|
|
|
foreach ($worked_bands as $slot) {
|
|
|
|
|
echo " <td>$slot</td>\n";
|
|
|
|
|
}
|
|
|
|
|
?>
|
2016-02-13 00:22:30 +08:00
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<?php
|
|
|
|
|
foreach($dxcc as $country=>$val){
|
|
|
|
|
print("<tr><td>$country</td>");
|
|
|
|
|
foreach($val as $band=>$count){
|
2019-06-17 16:10:55 +08:00
|
|
|
if (in_array($band, $worked_bands)) {
|
|
|
|
|
if ($count == 0){
|
|
|
|
|
print("<td> </td>");
|
|
|
|
|
}else{
|
|
|
|
|
printf("<td><a href='dxcc_details?Country=\"%s\"&Band=\"%s\"'>%d</a></td>", str_replace("&", "%26", $country), $band, $count);
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-02-13 00:22:30 +08:00
|
|
|
}
|
|
|
|
|
print("</tr>");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
</tbody>
|
|
|
|
|
|
2016-02-09 00:07:39 +08:00
|
|
|
</table>
|
2016-02-13 00:22:30 +08:00
|
|
|
</div>
|