mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[Distances worked] Added orbit as a selection
This commit is contained in:
@@ -25,6 +25,7 @@ class Distances_model extends CI_Model
|
||||
$gridsquare = explode(',', $station_gridsquare); // We need to convert to an array, since a user can enter several gridsquares
|
||||
|
||||
$this->db->select('COL_PRIMARY_KEY,COL_DISTANCE,col_call callsign, col_gridsquare grid');
|
||||
$this->db->join('satellite', 'satellite.name = '.$this->config->item('table_name').'.COL_SAT_NAME', 'left outer');
|
||||
$this->db->where('LENGTH(col_gridsquare) >', 0);
|
||||
|
||||
if ($postdata['band'] == 'sat') {
|
||||
@@ -37,6 +38,10 @@ class Distances_model extends CI_Model
|
||||
$this->db->where('col_band', $postdata['band']);
|
||||
}
|
||||
|
||||
if ($postdata['orbit'] != 'All') {
|
||||
$this->db->where('satellite.orbit', $postdata['orbit']);
|
||||
}
|
||||
|
||||
$this->db->where('station_id', $station_id);
|
||||
$queryresult = $this->db->get($this->config->item('table_name'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user