mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Hide total if Band = SAT
This commit is contained in:
@@ -695,6 +695,8 @@ class Awards extends CI_Controller {
|
||||
$postdata['dateto'] = null;
|
||||
}
|
||||
|
||||
$data['posted_band'] = $postdata['band'];
|
||||
|
||||
if ($logbooks_locations_array) {
|
||||
$location_list = "'".implode("','",$logbooks_locations_array)."'";
|
||||
$cq_result = $this->cq->get_cq_array($bands, $postdata, $location_list);
|
||||
|
||||
@@ -227,20 +227,28 @@
|
||||
foreach($bands as $band) {
|
||||
echo '<td>' . $band . '</td>';
|
||||
}
|
||||
echo "<td>" . __("Total") . "</td></tr>
|
||||
</thead>
|
||||
if ($posted_band != 'SAT') {
|
||||
echo "<td>" . __("Total") . "</td></tr>";
|
||||
}
|
||||
echo "</thead>
|
||||
<tbody>
|
||||
|
||||
<tr><td>" . __("Total worked") . "</td>";
|
||||
|
||||
foreach ($cq_summary['worked'] as $dxcc) { // Fills the table with the data
|
||||
echo '<td style="text-align: center">' . $dxcc . '</td>';
|
||||
foreach ($cq_summary['worked'] as $cqz => $value) { // Fills the table with the data
|
||||
if ($posted_band == 'SAT' && $cqz == 'Total') {
|
||||
continue;
|
||||
}
|
||||
echo '<td style="text-align: center">' . $value . '</td>';
|
||||
}
|
||||
|
||||
echo "</tr><tr>
|
||||
<td>" . __("Total confirmed") . "</td>";
|
||||
foreach ($cq_summary['confirmed'] as $dxcc) { // Fills the table with the data
|
||||
echo '<td style="text-align: center">' . $dxcc . '</td>';
|
||||
foreach ($cq_summary['confirmed'] as $cqz => $value) { // Fills the table with the data
|
||||
if ($posted_band == 'SAT' && $cqz == 'Total') {
|
||||
continue;
|
||||
}
|
||||
echo '<td style="text-align: center">' . $value . '</td>';
|
||||
}
|
||||
|
||||
echo '</tr>
|
||||
|
||||
Reference in New Issue
Block a user