You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This is done because we have two different ways to get dxcc info in Wavelog. Once is using the name (in awards), and the other one is using the ADIF DXCC.
382
384
// We replace the values to make it look a bit nicer
@@ -402,7 +404,18 @@ public function qso_details_ajax(){
402
404
403
405
// Render Page
404
406
$data['page_title'] = "Log View - " . $type;
405
-
$data['filter'] = $type . "" . $searchphrase . " and band ".$band . " and mode ".$mode;
407
+
$data['filter'] = $type."".$searchphrase." and band ".$band;
408
+
if ($band == 'SAT') {
409
+
if ($sat != 'All' && $sat != null) {
410
+
$data['filter'] .= " and sat ".$sat;
411
+
}
412
+
if ($orbit != 'All' && $orbit != null) {
413
+
$data['filter'] .= " and orbit type ".$orbit;
414
+
}
415
+
}
416
+
if ($mode != null && strtolower($mode) != 'all') {
417
+
$data['filter'] .= " and mode ".$mode;
418
+
}
406
419
if (!empty($qsltype)) {
407
420
$data['filter'] .= " and ".implode('/', $qsltype);
$sql = "SELECT distinct col_sat_name FROM ".$this->config->item('table_name')." WHERE station_id in (" . $location_list . ") and coalesce(col_sat_name, '') <> '' ORDER BY col_sat_name";
182
+
// get all worked sats from database
183
+
$sql = "SELECT distinct col_sat_name FROM ".$this->config->item('table_name')." WHERE station_id in (" . $location_list . ") and coalesce(col_sat_name, '') <> '' ORDER BY col_sat_name";
$sql = "SELECT DISTINCT satellite.orbit AS orbit FROM ".$this->config->item('table_name')." LEFT JOIN satellite ON COL_SAT_NAME = satellite.name WHERE station_id in (" . $location_list . ") AND COL_PROP_MODE = 'SAT' AND satellite.orbit IS NOT NULL ORDER BY orbit ASC";
0 commit comments