diff --git a/application/config/migration.php b/application/config/migration.php index 46009ce35..ca0f54dc9 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -22,7 +22,7 @@ | */ -$config['migration_version'] = 265; +$config['migration_version'] = 266; /* |-------------------------------------------------------------------------- diff --git a/application/config/routes.php b/application/config/routes.php index 40332add2..916453336 100644 --- a/application/config/routes.php +++ b/application/config/routes.php @@ -54,6 +54,7 @@ $route['station-diary/(:any)'] = 'stationdiary/index/$1'; $route['station-diary/(:any)/rss'] = 'stationdiary/rss/$1'; +$route['station-diary/(:any)/search'] = 'stationdiary/search/$1'; $route['station-diary/(:any)/entry/(:num)'] = 'stationdiary/entry/$1/$2'; $route['station-diary/(:any)/entry/(:num)/react'] = 'stationdiary/react/$1/$2'; $route['station-diary/(:any)/(:num)'] = 'stationdiary/index/$1/$2'; diff --git a/application/controllers/Accumulated.php b/application/controllers/Accumulated.php index 152d5abff..8070da938 100644 --- a/application/controllers/Accumulated.php +++ b/application/controllers/Accumulated.php @@ -29,6 +29,15 @@ public function index() $this->load->view('interface_assets/footer'); } + public function component_accumulated_results() { + $data['band'] = $this->input->post('band') ?: 'All'; + $data['mode'] = $this->input->post('mode') ?: 'All'; + $data['award'] = $this->input->post('awardradio') ?: 'dxcc'; + $data['period'] = $this->input->post('periodradio') ?: 'year'; + + $this->load->view('accumulate/component_results', $data); + } + /* * Used for ajax-call in javascript to fetch the data and insert into table and chart */ diff --git a/application/controllers/Activators.php b/application/controllers/Activators.php index 6c66d5420..4cb90937b 100644 --- a/application/controllers/Activators.php +++ b/application/controllers/Activators.php @@ -72,4 +72,43 @@ public function details() { $this->load->view('activators/details', $data); } + public function component_activators() { + // HTMX endpoint for activators table + $this->load->model('Activators_model'); + $this->load->model('bands'); + + $band = $this->input->post('band') ?: 'All'; + $mincount = $this->input->post('mincount') ?: 2; + $leogeo = $this->input->post('leogeo') ?: 'both'; + + $activators_array = $this->Activators_model->get_activators($band, $mincount, $leogeo); + $activators_vucc_array = $this->Activators_model->get_activators_vucc($band, $leogeo); + + // Get Date format + if($this->session->userdata('user_date_format')) { + $custom_date_format = $this->session->userdata('user_date_format'); + } else { + $custom_date_format = $this->config->item('qso_date_format'); + } + + $vucc_grids = array(); + if ($activators_vucc_array) { + foreach ($activators_vucc_array as $line) { + $vucc_grids[$line->call] = $line->vucc_grids; + } + } + + if ($activators_array) { + $this->load->view('activators/component_table', array( + 'activators_array' => $activators_array, + 'vucc_grids' => $vucc_grids, + 'custom_date_format' => $custom_date_format, + 'band' => $band, + 'leogeo' => $leogeo + )); + } else { + echo '