mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[Statistics] Raw QSO data and unique callsigns
This commit is contained in:
@@ -146,4 +146,31 @@ class Statistics extends CI_Controller {
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode($satstats);
|
||||
}
|
||||
|
||||
public function get_unique_callsigns() {
|
||||
$this->load->model('stats');
|
||||
|
||||
$result = $this->stats->unique_callsigns();
|
||||
$total_qsos['qsoarray'] = $result['qsoView'];
|
||||
$total_qsos['bandunique'] = $result['bandunique'];
|
||||
$total_qsos['modeunique'] = $result['modeunique'];
|
||||
$total_qsos['total'] = $result['total'];
|
||||
$total_qsos['bands'] = $this->stats->get_bands();
|
||||
|
||||
$this->load->view('statistics/uniquetable', $total_qsos);
|
||||
}
|
||||
|
||||
public function get_total_qsos() {
|
||||
$this->load->model('stats');
|
||||
|
||||
$totalqsos = array();
|
||||
|
||||
$result = $this->stats->total_qsos();
|
||||
$total_qsos['qsoarray'] = $result['qsoView'];
|
||||
$total_qsos['bandtotal'] = $result['bandtotal'];
|
||||
$total_qsos['modetotal'] = $result['modetotal'];
|
||||
$total_qsos['bands'] = $this->stats->get_bands();
|
||||
|
||||
$this->load->view('statistics/qsotable', $total_qsos);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user