From: maxious Date: Fri, 22 Jul 2011 06:38:07 +0000 Subject: Show settings on less screens X-Git-Url: http://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=2217bb57770f794e6128f8aa0dbd08b3eda1322d --- Show settings on less screens --- --- a/include/common-template.inc.php +++ b/include/common-template.inc.php @@ -181,13 +181,12 @@ } echo "\n"; } -function timePlaceSettings($geolocate = false) +function placeSettings() { global $service_periods; $geoerror = false; - if ($geolocate == true) { $geoerror = !isset($_SESSION['lat']) || !isset($_SESSION['lat']) || $_SESSION['lat'] == "" || $_SESSION['lon'] == ""; - } + echo '
'; if ($geoerror) { echo 'Sorry, but your location could not currently be detected. @@ -196,27 +195,13 @@ } echo '
'; echo '
-

Change Time/Place (' . (isset($_SESSION['time']) ? $_SESSION['time'] : "Current Time,") . ' ' . ucwords(service_period()) . ')...

+

Change Location...

-
- - - Current Time? -
-
- - - -
--- a/index.php +++ b/index.php @@ -24,7 +24,6 @@
  • Nearby Routes
  • Busness R&D'; include_footer(true) ?> --- a/routeList.php +++ b/routeList.php @@ -44,7 +44,7 @@ include_header("Routes Nearby", "routeList", true, true); trackEvent("Route Lists", "Routes Nearby", $_SESSION['lat'] . "," . $_SESSION['lon']); navbar(); - timePlaceSettings(true); + placeSettings(); if (!isset($_SESSION['lat']) || !isset($_SESSION['lat']) || $_SESSION['lat'] == "" || $_SESSION['lon'] == "") { include_footer(); die(); --- a/stop.php +++ b/stop.php @@ -61,6 +61,7 @@ } } include_header($stop['stop_name'], "stop"); + /*$serviceAlerts = json_decode(getPage(curPageURL() . "/servicealerts_api.php?filter_class=stop&filter_id=".$stopid) , true); foreach($serviceAlerts['entities'] as $serviceAlert) { @@ -82,7 +83,31 @@ ) )) ; } -timePlaceSettings(); + +// time settings +echo '
    +

    Change Time (' . (isset($_SESSION['time']) ? $_SESSION['time'] : "Current Time,") . ' ' . ucwords(service_period()) . ')...

    +
    +
    +
    + + + Current Time? +
    +
    + + + +
    + + +
    +
    '; + echo ''; echo '
      '; if (sizeof($allStopsTrips) > 0) { --- a/stopList.php +++ b/stopList.php @@ -40,7 +40,6 @@ $stops = getStops(); include_header("All Stops", "stopList"); navbar(); - timePlaceSettings(); } else if (isset($nearby)) { $listType = 'nearby=yes'; @@ -48,7 +47,7 @@ trackEvent("Stop Lists", "Stops Nearby", $_SESSION['lat'] . "," . $_SESSION['lon']); navbar(); if (!isset($_SESSION['lat']) || !isset($_SESSION['lat']) || $_SESSION['lat'] == "" || $_SESSION['lon'] == "") { - timePlaceSettings(true); + placeSettings(); include_footer(); die(); } @@ -65,7 +64,7 @@ ); } echo staticmap($stopPositions, 0, "iconb", true, true); - timePlaceSettings(true); + placeSettings(); echo ''; } else if (isset($suburb)) { @@ -78,7 +77,6 @@ $stops = getStops(true, $firstLetter); include_header("Timing Points / Major Stops", "stopList"); navbar(); - timePlaceSettings(); } echo '
        '; if (!isset($firstLetter) && !isset($suburb) && !isset($nearby)) {