diff --git a/application/views/components/hamsat/table.php b/application/views/components/hamsat/table.php index 8753058d..ebda28b7 100644 --- a/application/views/components/hamsat/table.php +++ b/application/views/components/hamsat/table.php @@ -5,10 +5,11 @@ - + + - + @@ -30,11 +31,12 @@ ?> - - - - + echo date($custom_date_format, $timestamp); ?> +
Date / TimeDateTime Callsign SatelliteGridsquareGridsquare(s)
+ + logbook_model->check_if_grid_worked_in_logbook($rove['gridsquare'], null, "SAT"); - if ($worked != 0) { - echo " " . $rove['gridsquare'] . ""; + if (strpos($rove['gridsquare'], '/') !== false) { + $grids = explode('/', $rove['gridsquare']); + foreach ($grids as $grid) { + $worked = $CI->logbook_model->check_if_grid_worked_in_logbook($grid, null, "SAT"); + if ($worked != 0) { + echo " " . $grid . ""; + } else { + echo " " . $grid . ""; + } + } } else { - echo " " . $rove['gridsquare'] . ""; + $worked = $CI->logbook_model->check_if_grid_worked_in_logbook($rove['gridsquare'], null, "SAT"); + if ($worked != 0) { + echo " " . $rove['gridsquare'] . ""; + } else { + echo " " . $rove['gridsquare'] . ""; + } } ?>