Add Mode/SAT

This commit is contained in:
int2001
2025-03-10 15:05:43 +00:00
parent e838274a11
commit e255091ff1
2 changed files with 8 additions and 1 deletions

View File

@@ -894,7 +894,7 @@
return $result->result();
}
public function sat_qsos($sat){
public function sat_qsos($sat,$mode) {
$this->load->model('logbooks_model');
$logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
$this->db->select('*, satellite.displayname AS sat_displayname');
@@ -902,6 +902,12 @@
$this->db->join('satellite', 'satellite.name = '.$this->config->item('table_name').'.COL_SAT_NAME');
$this->db->join('dxcc_entities', $this->config->item('table_name') . '.col_dxcc = dxcc_entities.adif', 'left outer');
$this->db->where('COL_SAT_NAME', $sat);
if (($mode ?? '') != '') {
$this->db->group_start();
$this->db->where('COL_MODE', $mode);
$this->db->or_where('COL_SUBMODE', $mode);
$this->db->group_end();
}
$this->db->where_in($this->config->item('table_name').'.station_id', $logbooks_locations_array);
$this->db->order_by("COL_TIME_ON desc, COL_PRIMARY_KEY desc");
$this->db->limit(500);