--- a/trip.php +++ b/trip.php @@ -31,10 +31,12 @@ $directionid = $trip['direction_id']; $service_period = strtolower($trip["service_id"]); $destination = getTripDestination($trip['trip_id']); -include_header("Stops on " . $trip['route_short_name'] . ' ' . $destination['stop_name'], "trip"); -trackEvent("Route/Trip View", "View Route", $trip['route_short_name'] . ' ' . $destination['stop_name'], $routeid); -echo ''; -echo 'View Original Timetable/Map'; +include_header("Route " . $trip['route_id'] . ' to ' . $destination['stop_name'], "trip"); +trackEvent("Route/Trip View", "View Route", $trip['route_id'] . ' ' . $destination['stop_name'], $routeid); +echo '
'; +echo 'View Original Timetable/Map '; +echo 'View Trip in Google Earth '; +echo 'View Route in Google Earth'; echo '

Via:

' . viaPointNames($tripid) . ''; echo '

Other Trips:

'; $routeTrips = getRouteTrips($routeid, $trip['direction_id'], $service_period); @@ -57,7 +59,7 @@ foreach (getRouteHeadsigns($routeid) as $headsign) { if ($headsign['direction_id'] != $directionid || strtolower($headsign['service_id']) != $service_period) { - echo ' Starting at ' . $headsign['stop_name'] . ' (' . $headsign['service_id'] . ') '; + echo ' Starting at ' . $headsign['stop_name'] . ' (' . $headsign['service_id'] . ') '; $otherDir++; } } @@ -65,21 +67,23 @@ if ($otherDir == 0) { echo "None"; } -echo ''; +echo '
'; flush(); @ob_flush(); echo "
"; -if ($nextTrip) +if (isset($nextTrip)) { echo 'Next Trip'; -if ($prevTrip) +} +if (isset($prevTrip)) { echo 'Previous Trip'; +} echo "
"; echo ' '; -echo ''; +echo '
'; include_footer(); ?>