From: maxious Date: Thu, 05 May 2011 10:32:58 +0000 Subject: Design 2 column data layout X-Git-Url: http://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=1ad50c480a1f637f5b1f012b46f4188a82e3bdda --- Design 2 column data layout --- --- a/include/common-template.inc.php +++ b/include/common-template.inc.php @@ -126,7 +126,25 @@ border-radius: 15px; } - +/*#leftcolumn { + float: none; +} +.min-width-768px #leftcolumn { + float: left; + width: 30%; +} +#rightcolumn { + float: none; +} +.min-width-768px #rightcolumn { + float: right; + width: 68%; +}*/ + +#footer { +clear:both; +text-align:center; +} // source http://webaim.org/techniques/skipnav/ #skip a, #skip a:hover, #skip a:visited { @@ -145,7 +163,7 @@ height:auto; } '; - if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPod')) { + if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPod') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) { echo ' @@ -176,7 +194,11 @@ } $(document).ready(function() { $('#here').click(function(event) { $('#geolocate').val(geolocate()); return false;}); -$('#here').show(); + $('#here').show(); + /*if ($.mobile.media('screen and (min-width: 768px)')) { + $('map a:first').click(); + $('#settings a:first').click(); + }*/ }); "; if (!isset($_SESSION['lat']) || $_SESSION['lat'] == "") echo "geolocate();"; @@ -251,7 +273,7 @@ or enter an address/co-ordinates in the box below.'; } echo ''; - echo '
+ echo '

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

--- a/include/db/route-dao.inc.php +++ b/include/db/route-dao.inc.php @@ -200,7 +200,7 @@ $query = $conn->prepare($query); $query->bindParam(":service_period", $service_period); $query->bindParam(":distance", $distance); - $query->bindParam(":limit", $limit); + if ($limit != "") $query->bindParam(":limit", $limit); $query->execute(); if (!$query) { databaseError($conn->errorInfo()); --- a/stop.php +++ b/stop.php @@ -60,6 +60,7 @@ } } include_header($stop['stop_name'], "stop"); +echo ''; timePlaceSettings(); echo $stopLinks; if (sizeof($stops) > 0) { @@ -75,6 +76,7 @@ ) )) ; } +echo ''; echo '
    '; if (sizeof($allStopsTrips) > 0) { sktimesort($allStopsTrips,"arrival_time", true); @@ -107,6 +109,7 @@ } } echo '
'; +echo '
'; include_footer(); ?> --- a/trip.php +++ b/trip.php @@ -16,7 +16,7 @@ include_header("Stops on " . $trip['route_short_name'] . ' ' . $trip['route_long_name'], "trip"); trackEvent("Route/Trip View","View Route", $trip['route_short_name'] . ' ' . $trip['route_long_name'], $routeid); - +echo ''; echo '

Via:

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

Other Trips:

'; foreach (getRouteTrips($routeid) as $othertrip) { @@ -27,6 +27,7 @@ foreach (getRoutesByNumber($trip['route_short_name']) as $row) { if ($row['route_id'] != $routeid) echo '' . $row['route_long_name'] . ' (' . ucwords($row['service_id']) . ') '; } +echo '
'; flush(); @ob_flush(); echo ' '; + +echo ''; include_footer(); ?>