--- a/busui/common.inc.php +++ b/busui/common.inc.php @@ -30,10 +30,17 @@ return $_SERVER['SERVER_NAME'] == "10.0.1.154" || $_SERVER['SERVER_NAME'] == "localhost" || $_SERVER['SERVER_NAME'] == "127.0.0.1" || !$_SERVER['SERVER_NAME']; } +function isMetricsOn() +{ + return true; +} + function debug($msg) { if (isDebug()) echo "<!-- $msg -->"; } function isFastDevice() { + $fastDevices = Array("Mozilla/5.0 (X11;", "Mozilla/5.0 (Windows;", "Mozilla/5.0 (iP", "Mozilla/5.0 (Linux; U; Android", "Mozilla/4.0 (compatible; MSIE"); + $slowDevices = Array("J2ME","MIDP","Opera/","Mozilla/2.0 (compatible;","Mozilla/3.0 (compatible;"); return true; } @@ -42,8 +49,7 @@ <!DOCTYPE html> <html> <head> - <title>busness time - '.$pageTitle.'</title> - '; + <title>'.$pageTitle.'</title>'; if (isDebug()) echo '<link rel="stylesheet" href="css/jquery-mobile-1.0a3.css" /> <script type="text/javascript" src="js/jquery-1.5.js"></script> <script type="text/javascript" src="js/jquery-mobile-1.0a3.js"></script>'; @@ -73,6 +79,13 @@ .ui-listview-filter { margin: 0 !important; } + #footer { + text-size: 0.75em; + text-align: center; + } + body { + background-color: #F0F0F0; + } </style> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black" /> @@ -97,12 +110,18 @@ </script> "; } -echo '</head> -<body> +echo '</head> +<body> + '; if ($opendiv) { echo '<div data-role="page"> - + <script> +$(document).ready(function () +{ + document.title = "'.$pageTitle.'"; +}); +</script> <div data-role="header"> <h1>'.$pageTitle.'</h1> </div><!-- /header --> @@ -118,7 +137,8 @@ $('#here').show(); </script>"; } - echo '</div>'; + echo '<div id="footer"><a href="about.php">About/Contact Us</a> <a href="feedback.php">Feedback/Bug Report</a></a>'; + echo '</div>'; } $service_periods = Array ('sunday','saturday','weekday');