diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index 0e58533c..473ac838 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -324,6 +324,19 @@ class Awards extends CI_Controller { $this->load->view('interface_assets/footer'); } + public function cq_details_ajax(){ + $this->load->model('logbook_model'); + + $cqzone = str_replace('"', "", $this->input->post("CQZone")); + $band = str_replace('"', "", $this->input->post("Band")); + $data['results'] = $this->logbook_model->cq_qso_details($cqzone, $band); + + // Render Page + $data['page_title'] = "Log View - DXCC"; + $data['filter'] = "CQZone ".$cqzone. " and ".$band;; + $this->load->view('awards/cq/details_ajax', $data); + } + public function was() { $this->load->model('was'); $data['worked_bands'] = $this->was->get_worked_bands(); diff --git a/application/models/Cq.php b/application/models/Cq.php index 1485d8cb..e62ee86f 100644 --- a/application/models/Cq.php +++ b/application/models/Cq.php @@ -97,14 +97,14 @@ class CQ extends CI_Model{ if ($postdata['worked'] != NULL) { $cqBand = $this->getCQWorked($station_id, $band, $postdata); foreach ($cqBand as $line) { - $bandCq[$line->col_cqz][$band] = '
'; + $bandCq[$line->col_cqz][$band] = ''; $cqZ[$line->col_cqz]['count']++; } } if ($postdata['confirmed'] != NULL) { $cqBand = $this->getCQConfirmed($station_id, $band, $postdata); foreach ($cqBand as $line) { - $bandCq[$line->col_cqz][$band] = ''; + $bandCq[$line->col_cqz][$band] = ''; $cqZ[$line->col_cqz]['count']++; } } diff --git a/application/views/awards/cq/details_ajax.php b/application/views/awards/cq/details_ajax.php new file mode 100644 index 00000000..97a47ed4 --- /dev/null +++ b/application/views/awards/cq/details_ajax.php @@ -0,0 +1,3 @@ +