diff --git a/application/controllers/Station.php b/application/controllers/Station.php index 2a27499b..694b204f 100644 --- a/application/controllers/Station.php +++ b/application/controllers/Station.php @@ -122,4 +122,11 @@ class Station extends CI_Controller { redirect('station'); } + public function deletelog($id) { + $this->load->model('stations'); + $this->stations->deletelog($id); + + redirect('station'); + } + } \ No newline at end of file diff --git a/application/models/Stations.php b/application/models/Stations.php index 46eddd10..8a24849d 100644 --- a/application/models/Stations.php +++ b/application/models/Stations.php @@ -81,6 +81,12 @@ class Stations extends CI_Model { $this->db->delete('station_profile', array('station_id' => $clean_id)); } + function deletelog($id) { + // Delete QSOs + $this->db->where('station_id', $id); + $this->db->delete($this->config->item('table_name')); + } + function set_active($current, $new) { // Clean inputs diff --git a/application/views/station_profile/index.php b/application/views/station_profile/index.php index 0cb1ec72..557bfa12 100644 --- a/application/views/station_profile/index.php +++ b/application/views/station_profile/index.php @@ -44,6 +44,7 @@