--- a/include/common-template.inc.php +++ b/include/common-template.inc.php @@ -1,117 +1,96 @@ - ' . $pageTitle . ' - '; - if ($datepicker) echo ''; - if (isDebugServer()) echo ' - - '; + if (isDebugServer()) { + $jqmcss = $labsPath . 'css/jquery.mobile-1.0b1.css'; + $jqjs = $labsPath . 'js/jquery-1.6.1.min.js'; + $jqmjs = $labsPath . 'js/jquery.mobile-1.0b1.js'; + } + else { + $jqmcss = "http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.css"; + $jqjs = "http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"; + $jqmjs = "http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.js"; + } + echo ' + + - '; - else echo ' - - + + + - '; - if ($datepicker) echo ' - '; - echo ''; - if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPod')) { + '; + echo ''; + echo ''; + if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPod') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) { echo ' @@ -142,20 +121,21 @@ } $(document).ready(function() { $('#here').click(function(event) { $('#geolocate').val(geolocate()); return false;}); -$('#here').show(); + $('#here').show(); }); "; -if (!isset($_SESSION['lat']) || $_SESSION['lat'] == "") echo "geolocate();"; -echo " "; + if (!isset($_SESSION['lat']) || $_SESSION['lat'] == "") echo "geolocate();"; + echo " "; } if (isAnalyticsOn()) echo ' -"; -echo ' + echo '