Distance plots only shown for the active station profile not all qsos in the database table
这个提交包含在:
父节点
7103d74635
当前提交
6b4c85cd62
共有 1 个文件被更改,包括 2 次插入 和 1 次删除
|
|
@ -14,6 +14,7 @@ class Distances_model extends CI_Model
|
||||||
$CI =& get_instance();
|
$CI =& get_instance();
|
||||||
$CI->load->model('Stations');
|
$CI->load->model('Stations');
|
||||||
$station_id = $CI->Stations->find_active();
|
$station_id = $CI->Stations->find_active();
|
||||||
|
|
||||||
$station_gridsquare = $CI->Stations->find_gridsquare();
|
$station_gridsquare = $CI->Stations->find_gridsquare();
|
||||||
$gridsquare = explode(',', $station_gridsquare); // We need to convert to an array, since a user can enter several gridsquares
|
$gridsquare = explode(',', $station_gridsquare); // We need to convert to an array, since a user can enter several gridsquares
|
||||||
|
|
||||||
|
|
@ -26,7 +27,7 @@ class Distances_model extends CI_Model
|
||||||
else {
|
else {
|
||||||
$this->db->where('col_band', $postdata['band']);
|
$this->db->where('col_band', $postdata['band']);
|
||||||
}
|
}
|
||||||
|
$this->db->where('station_id', $station_id);
|
||||||
$dataarrayata = $this->db->get($this->config->item('table_name'));
|
$dataarrayata = $this->db->get($this->config->item('table_name'));
|
||||||
$this->plot($dataarrayata->result_array(), $gridsquare);
|
$this->plot($dataarrayata->result_array(), $gridsquare);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用