mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 18:24:25 +00:00
35 lines
1.0 KiB
PHP
35 lines
1.0 KiB
PHP
|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||
|
|
||
|
class Statistics extends CI_Controller {
|
||
|
|
||
|
|
||
|
public function index()
|
||
|
{
|
||
|
|
||
|
// Database connections
|
||
|
$this->load->model('logbook_model');
|
||
|
|
||
|
// Store info
|
||
|
$data['todays_qsos'] = $this->logbook_model->todays_qsos();
|
||
|
$data['total_qsos'] = $this->logbook_model->total_qsos();
|
||
|
$data['month_qsos'] = $this->logbook_model->month_qsos();
|
||
|
$data['year_qsos'] = $this->logbook_model->year_qsos();
|
||
|
|
||
|
$data['total_ssb'] = $this->logbook_model->total_ssb();
|
||
|
$data['total_cw'] = $this->logbook_model->total_cw();
|
||
|
$data['total_fm'] = $this->logbook_model->total_fm();
|
||
|
$data['total_digi'] = $this->logbook_model->total_digi();
|
||
|
|
||
|
$data['total_bands'] = $this->logbook_model->total_bands();
|
||
|
|
||
|
$data['total_sat'] = $this->logbook_model->total_sat();
|
||
|
|
||
|
$data['page_title'] = "Statistics";
|
||
|
|
||
|
$data['total_digi'] = $this->logbook_model->total_digi();
|
||
|
|
||
|
$this->load->view('layout/header');
|
||
|
$this->load->view('statistics/index', $data);
|
||
|
$this->load->view('layout/footer');
|
||
|
}
|
||
|
}
|