diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index dace903c..81304fcb 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -75,7 +75,10 @@ class Awards extends CI_Controller { public function dxcc () { $this->load->model('dxcc'); + $this->load->model('modes'); + $data['worked_bands'] = $this->dxcc->get_worked_bands(); // Used in the view for band select + $data['modes'] = $this->modes->active(); // Used in the view for mode select if ($this->input->post('band') != NULL) { // Band is not set when page first loads. if ($this->input->post('band') == 'All') { // Did the user specify a band? If not, use all bands @@ -106,6 +109,7 @@ class Awards extends CI_Controller { $postdata['Oceania'] = $this->input->post('Oceania'); $postdata['Antarctica'] = $this->input->post('Antarctica'); $postdata['band'] = $this->input->post('band'); + $postdata['mode'] = $this->input->post('mode'); } else { // Setting default values at first load of page $postdata['lotw'] = 1; @@ -122,6 +126,7 @@ class Awards extends CI_Controller { $postdata['Oceania'] = 1; $postdata['Antarctica'] = 1; $postdata['band'] = 'All'; + $postdata['mode'] = 'All'; } $dxcclist = $this->dxcc->fetchdxcc($postdata); diff --git a/application/views/awards/dxcc/index.php b/application/views/awards/dxcc/index.php index fcb23868..1b56012b 100644 --- a/application/views/awards/dxcc/index.php +++ b/application/views/awards/dxcc/index.php @@ -82,11 +82,10 @@ -