[Award] SIG added to awards. Based on the work by @daccle.

This commit is contained in:
Andreas
2021-03-20 11:24:13 +01:00
parent 7ad66ef669
commit ebc4ac0c4b
6 changed files with 191 additions and 16 deletions

View File

@@ -121,6 +121,22 @@ class adif_data extends CI_Model {
$this->db->where('COL_PRIMARY_KEY', $id);
$this->db->update($this->config->item('table_name'), $data);
}
function sig_all($type) {
$this->load->model('stations');
$active_station_id = $this->stations->find_active();
$this->db->select(''.$this->config->item('table_name').'.*, station_profile.*');
$this->db->from($this->config->item('table_name'));
$this->db->where($this->config->item('table_name').'.station_id', $active_station_id);
$this->db->where($this->config->item('table_name').'.COL_SIG', $type);
$this->db->order_by($this->config->item('table_name').".COL_TIME_ON", "ASC");
$this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id');
return $this->db->get();
}
}
?>