Merge pull request #658 from AndreasK79/Total_added_to_dxcc_award

Added total for the DXCC award.
这个提交包含在:
Peter Goodhall 2020-10-18 15:02:42 +01:00 提交者 GitHub
当前提交 dbb095c7c1
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 2 个文件被更改,包括 13 次插入4 次删除

查看文件

@ -480,6 +480,12 @@ class DXCC extends CI_Model {
$dxccSummary['confirmed'][$band] = $confirmed[0]->count; $dxccSummary['confirmed'][$band] = $confirmed[0]->count;
} }
$workedTotal = $this->getSummaryByBand('All', $station_id);
$confirmedTotal = $this->getSummaryByBandConfirmed('All', $station_id);
$dxccSummary['worked']['Total'] = $workedTotal[0]->count;
$dxccSummary['confirmed']['Total'] = $confirmedTotal[0]->count;
return $dxccSummary; return $dxccSummary;
} }
@ -489,12 +495,14 @@ class DXCC extends CI_Model {
$sql .= " where station_id = " . $station_id; $sql .= " where station_id = " . $station_id;
if ($band == 'SAT') { if ($band == 'SAT') {
$sql .= " and thcv.col_prop_mode ='" . $band . "'"; $sql .= " and thcv.col_prop_mode ='" . $band . "'";
} else if ($band == 'All') {
$sql .= " and thcv.col_prop_mode !='SAT'";
} else { } else {
$sql .= " and thcv.col_prop_mode !='SAT'"; $sql .= " and thcv.col_prop_mode !='SAT'";
$sql .= " and thcv.col_band ='" . $band . "'"; $sql .= " and thcv.col_band ='" . $band . "'";
} }
$query = $this->db->query($sql); $query = $this->db->query($sql);
@ -509,6 +517,8 @@ class DXCC extends CI_Model {
if ($band == 'SAT') { if ($band == 'SAT') {
$sql .= " and thcv.col_prop_mode ='" . $band . "'"; $sql .= " and thcv.col_prop_mode ='" . $band . "'";
} else if ($band == 'All') {
$sql .= " and thcv.col_prop_mode !='SAT'";
} else { } else {
$sql .= " and thcv.col_prop_mode !='SAT'"; $sql .= " and thcv.col_prop_mode !='SAT'";
$sql .= " and thcv.col_band ='" . $band . "'"; $sql .= " and thcv.col_band ='" . $band . "'";

查看文件

@ -145,9 +145,8 @@
foreach($bands as $band) { foreach($bands as $band) {
echo '<td>' . $band . '</td>'; echo '<td>' . $band . '</td>';
} }
echo '</tr>'; echo '<td>Total</td>
</tr>
echo '</tr>
</thead> </thead>
<tbody> <tbody>