diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index 473ac838..1bebcda1 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -481,4 +481,17 @@ class Awards extends CI_Controller { $this->load->view('awards/iota/details'); $this->load->view('interface_assets/footer'); } + + public function iota_details_ajax(){ + $this->load->model('logbook_model'); + + $iota = str_replace('"', "", $this->input->post("Iota")); + $band = str_replace('"', "", $this->input->post("Band")); + $data['results'] = $this->logbook_model->iota_qso_details($iota, $band); + + // Render Page + $data['page_title'] = "Log View - IOTA"; + $data['filter'] = "iota ".$iota. " and ".$band; + $this->load->view('awards/iota/details_ajax', $data); + } } diff --git a/application/models/Iota.php b/application/models/Iota.php index 06eab514..12c5d539 100644 --- a/application/models/Iota.php +++ b/application/models/Iota.php @@ -81,7 +81,7 @@ class IOTA extends CI_Model { if ($postdata['worked'] != NULL) { $workedIota = $this->getIotaBandWorked($station_id, $band, $postdata); foreach ($workedIota as $wiota) { - $iotaMatrix[$wiota->tag][$band] = '
';; + $iotaMatrix[$wiota->tag][$band] = ''; } } @@ -89,7 +89,7 @@ class IOTA extends CI_Model { if ($postdata['confirmed'] != NULL) { $confirmedIota = $this->getIotaBandConfirmed($station_id, $band, $postdata); foreach ($confirmedIota as $ciota) { - $iotaMatrix[$ciota->tag][$band] = '';; + $iotaMatrix[$ciota->tag][$band] = ''; } } } diff --git a/application/views/awards/iota/details_ajax.php b/application/views/awards/iota/details_ajax.php new file mode 100644 index 00000000..bdd89954 --- /dev/null +++ b/application/views/awards/iota/details_ajax.php @@ -0,0 +1,3 @@ +