diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index 40a1c91a..0e58533c 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -153,6 +153,19 @@ class Awards extends CI_Controller { $this->load->view('interface_assets/footer'); } + public function dxcc_details_ajax(){ + $this->load->model('logbook_model'); + + $country = str_replace('"', "", $this->input->post("Country")); + $band = str_replace('"', "", $this->input->post("Band")); + $data['results'] = $this->logbook_model->dxcc_qso_details($country, $band); + + // Render Page + $data['page_title'] = "Log View - DXCC"; + $data['filter'] = "country ".$country. " and ".$band; + $this->load->view('awards/dxcc/details_ajax', $data); + } + public function vucc() { $this->load->model('vucc'); $data['worked_bands'] = $this->vucc->get_worked_bands(); diff --git a/application/models/Dxcc.php b/application/models/Dxcc.php index d186b5ae..217b578d 100644 --- a/application/models/Dxcc.php +++ b/application/models/Dxcc.php @@ -191,7 +191,7 @@ class DXCC extends CI_Model { if ($postdata['worked'] != NULL) { $workedDXCC = $this->getDxccBandWorked($station_id, $band, $postdata); foreach ($workedDXCC as $wdxcc) { - $dxccMatrix[$wdxcc->dxcc][$band] = '
';; + $dxccMatrix[$wdxcc->dxcc][$band] = ''; } } @@ -199,7 +199,7 @@ class DXCC extends CI_Model { if ($postdata['confirmed'] != NULL) { $confirmedDXCC = $this->getDxccBandConfirmed($station_id, $band, $postdata); foreach ($confirmedDXCC as $cdxcc) { - $dxccMatrix[$cdxcc->dxcc][$band] = '';; + $dxccMatrix[$cdxcc->dxcc][$band] = ''; } } } diff --git a/application/views/awards/dxcc/details_ajax.php b/application/views/awards/dxcc/details_ajax.php new file mode 100644 index 00000000..2e33a16d --- /dev/null +++ b/application/views/awards/dxcc/details_ajax.php @@ -0,0 +1,3 @@ +