2013-08-07 06:02:49 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
class Search extends CI_Model {
|
|
|
|
|
|
|
|
|
|
function callsign_iota($reference) {
|
2022-01-09 19:09:35 +08:00
|
|
|
$CI =& get_instance();
|
|
|
|
|
$CI->load->model('logbooks_model');
|
|
|
|
|
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
|
|
|
|
|
2013-08-07 06:02:49 +08:00
|
|
|
$this->db->where('COL_IOTA', $reference);
|
2022-01-09 19:09:35 +08:00
|
|
|
$this->db->where_in('station_id', $logbooks_locations_array);
|
2013-08-07 06:02:49 +08:00
|
|
|
$query = $this->db->get($this->config->item('table_name'));
|
|
|
|
|
|
|
|
|
|
return $query;
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-05 06:42:11 +08:00
|
|
|
function get_table_columns() {
|
|
|
|
|
$query = $this->db->query('DESCRIBE '.$this->config->item('table_name'));
|
|
|
|
|
|
|
|
|
|
return $query;
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-07 06:02:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|