diff --git a/application/controllers/Statistics.php b/application/controllers/Statistics.php index cbe4400f8..facb023c5 100644 --- a/application/controllers/Statistics.php +++ b/application/controllers/Statistics.php @@ -33,50 +33,6 @@ class Statistics extends CI_Controller { $this->load->view('interface_assets/footer'); } - function custom() { - - $this->load->model('user_model'); - if(!$this->user_model->authorize($this->config->item('auth_mode'))) { - if($this->user_model->validate_session()) { - $this->user_model->clear_session(); - show_error('Access denied
Click here to log in as another user', 403); - } else { - redirect('user/login'); - } - } - - $this->load->model('logbook_model'); - - $data['page_title'] = __("Custom Statistics"); - $data['modes'] = $this->logbook_model->get_modes(); - - $this->load->helper(array('form', 'url')); - - $this->load->library('form_validation'); - - $this->form_validation->set_rules('start_date', 'Start Date', 'required'); - $this->form_validation->set_rules('end_date', 'End Date', 'required'); - - if ($this->form_validation->run() == FALSE) - { - $this->load->view('interface_assets/header', $data); - $this->load->view('statistics/custom', $data); - $this->load->view('interface_assets/footer'); - } - else - { - - $this->load->model('stats'); - - $data['result'] = $this->stats->result(); - - $this->load->view('interface_assets/header', $data); - $this->load->view('statistics/custom_result'); - $this->load->view('interface_assets/footer'); - } - - } - function get_years() { $this->load->model('logbook_model'); $totals_year = $this->logbook_model->totals_year(); diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 5b34e11c1..00e486ca1 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -3122,12 +3122,6 @@ class Logbook_model extends CI_Model { } } - /* Return the list of modes in the logbook */ - function get_modes() { - $query = $this->db->query('select distinct(COL_MODE) from ' . $this->config->item('table_name') . ' order by COL_MODE'); - return $query; - } - /* Return total number of QSOs per band */ function total_bands($yr = 'All') { $this->load->model('logbooks_model'); diff --git a/application/views/statistics/custom.php b/application/views/statistics/custom.php deleted file mode 100644 index 0c12fa035..000000000 --- a/application/views/statistics/custom.php +++ /dev/null @@ -1,89 +0,0 @@ - - -
= __("This is a work in-progress"); ?>
- -| = __("Start"); ?> | -- |
| = __("End"); ?> | -- |
= __("Finished your selection? time to search!"); ?>
- -= __("Results go here"); ?>
-= __("This is a work in-progress"); ?>
- -| = __("Start"); ?> | -- |
| = __("End"); ?> | -- |
= __("Finished your selection? time to search!"); ?>
- -| = __("Date"); ?> | -= __("Time"); ?> | -= __("Call"); ?> | -= __("Mode"); ?> | -= __("Sent"); ?> | -= __("Rcvd"); ?> | -= __("Band"); ?> | -= __("Country"); ?> | -COL_TIME_ON); echo date('d/m/y', $timestamp); ?> | -COL_TIME_ON); echo date('H:i', $timestamp); ?> | -COL_PRIMARY_KEY; ?>">COL_CALL); ?> | -COL_MODE; ?> | -COL_RST_SENT; ?> | -COL_RST_RCVD; ?> | - COL_SAT_NAME != null) { ?> -COL_SAT_NAME; ?> | - -COL_BAND; ?> | - -COL_COUNTRY; ?> | - - - -