diff --git a/application/models/Satellite_model.php b/application/models/Satellite_model.php index a566e5dc1..c2e567b86 100644 --- a/application/models/Satellite_model.php +++ b/application/models/Satellite_model.php @@ -3,7 +3,7 @@ class Satellite_model extends CI_Model { function get_all_satellites() { - $sql = "select satellite.id, satellite.name as satname, group_concat(distinct satellitemode.name separator ', ') as modename, satellite.exportname, satellite.orbit + $sql = "select satellite.id, satellite.name as satname, group_concat(distinct satellitemode.name separator ', ') as modename, satellite.exportname, satellite.orbit, satellite.lotw as lotw from satellite left outer join satellitemode on satellite.id = satellitemode.satelliteid group by satellite.name, satellite.exportname, satellite.orbit, satellite.id"; diff --git a/application/views/satellite/index.php b/application/views/satellite/index.php index b4db59ecb..fc48a06f3 100644 --- a/application/views/satellite/index.php +++ b/application/views/satellite/index.php @@ -22,6 +22,7 @@ + @@ -46,9 +47,23 @@ echo 'bg-light'; break; } - echo '">'.$sat->orbit.''; + echo '">'.$sat->orbit.''; ?> modename ?? '') ?> + '; + switch ($sat->lotw) { + case 'Y': + echo ''.__("Yes").''; + break; + case 'N': + echo ''.__("No").''; + break; + default: + echo ''.__("Unknown").''; + break; + } + echo ''; + ?>