--- a/include/common-template.inc.php
+++ b/include/common-template.inc.php
@@ -23,43 +23,42 @@
$url.= "&guid=ON";
return str_replace("&", "&", $url);
}
-
function include_header($pageTitle, $pageType, $opendiv = true, $geolocate = false, $datepicker = false)
{
-global $labsPath;
+ global $labsPath;
echo '
- ' . $pageTitle . '
-
- ';
+
+' . $pageTitle . '
+
+
+
+ ';
if (isDebugServer()) {
- echo '
-
-
-
+
- ';
- }
- else {
- echo '
-
-
- ';
- }
- echo '
-
-
-
-
+
+
+
+
+
+
+
- ';
- echo '';
+ echo '';
+ echo '';
if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPod') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
echo '
@@ -322,10 +118,6 @@
$(document).ready(function() {
$('#here').click(function(event) { $('#geolocate').val(geolocate()); return false;});
$('#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();";
@@ -350,28 +142,26 @@
';
$overrides = getServiceOverride();
if ($overrides['service_id']) {
- if ($overrides['service_id'] == "noservice") {
- echo '
';
- }
- else {
- echo '
';
- }
+ }
+ else {
+ echo '
';
}
}
-
+ }
}
function include_footer()
{
-
-global $labsPath;
- echo '
";
-}
-function timePlaceSettings($geolocate = false)
+ }
+ echo "\n