Merge pull request #661 from AndreasK79/cq_total_summary

Added total to CQ award summary
这个提交包含在:
Peter Goodhall 2020-10-18 15:05:49 +01:00 提交者 GitHub
当前提交 b5112c8de9
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 2 个文件被更改,包括 11 次插入3 次删除

查看文件

@ -227,6 +227,12 @@ class CQ extends CI_Model{
$cqSummary['confirmed'][$band] = $confirmed[0]->count; $cqSummary['confirmed'][$band] = $confirmed[0]->count;
} }
$workedTotal = $this->getSummaryByBand('All', $station_id);
$confirmedTotal = $this->getSummaryByBandConfirmed('All', $station_id);
$cqSummary['worked']['Total'] = $workedTotal[0]->count;
$cqSummary['confirmed']['Total'] = $confirmedTotal[0]->count;
return $cqSummary; return $cqSummary;
} }
@ -237,6 +243,8 @@ class CQ 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 . "'";
@ -254,6 +262,8 @@ class CQ 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 . "'";

查看文件

@ -175,9 +175,7 @@
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>