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;
|
$postdata['dateto'] = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$data['posted_band'] = $postdata['band'];
|
||||||
|
|
||||||
if ($logbooks_locations_array) {
|
if ($logbooks_locations_array) {
|
||||||
$location_list = "'".implode("','",$logbooks_locations_array)."'";
|
$location_list = "'".implode("','",$logbooks_locations_array)."'";
|
||||||
$cq_result = $this->cq->get_cq_array($bands, $postdata, $location_list);
|
$cq_result = $this->cq->get_cq_array($bands, $postdata, $location_list);
|
||||||
|
|||||||
@@ -227,20 +227,28 @@
|
|||||||
foreach($bands as $band) {
|
foreach($bands as $band) {
|
||||||
echo '<td>' . $band . '</td>';
|
echo '<td>' . $band . '</td>';
|
||||||
}
|
}
|
||||||
echo "<td>" . __("Total") . "</td></tr>
|
if ($posted_band != 'SAT') {
|
||||||
</thead>
|
echo "<td>" . __("Total") . "</td></tr>";
|
||||||
|
}
|
||||||
|
echo "</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<tr><td>" . __("Total worked") . "</td>";
|
<tr><td>" . __("Total worked") . "</td>";
|
||||||
|
|
||||||
foreach ($cq_summary['worked'] as $dxcc) { // Fills the table with the data
|
foreach ($cq_summary['worked'] as $cqz => $value) { // Fills the table with the data
|
||||||
echo '<td style="text-align: center">' . $dxcc . '</td>';
|
if ($posted_band == 'SAT' && $cqz == 'Total') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
echo '<td style="text-align: center">' . $value . '</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "</tr><tr>
|
echo "</tr><tr>
|
||||||
<td>" . __("Total confirmed") . "</td>";
|
<td>" . __("Total confirmed") . "</td>";
|
||||||
foreach ($cq_summary['confirmed'] as $dxcc) { // Fills the table with the data
|
foreach ($cq_summary['confirmed'] as $cqz => $value) { // Fills the table with the data
|
||||||
echo '<td style="text-align: center">' . $dxcc . '</td>';
|
if ($posted_band == 'SAT' && $cqz == 'Total') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
echo '<td style="text-align: center">' . $value . '</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</tr>
|
echo '</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user