--- a/include/common-template.inc.php +++ b/include/common-template.inc.php @@ -34,12 +34,20 @@ '; if ($datepicker) echo ''; - if (isDebugServer()) echo ' + if (isDebugServer()) echo ' - '; - else echo ' - - '; + + '; + else echo ' + + + '; if ($datepicker) echo ' "; - } - if (!isDebugServer()) echo ' +} +$(document).ready(function() { + $('#here').click(function(event) { $('#geolocate').val(geolocate()); return false;}); +$('#here').show(); +}); +"; +if (!isset($_SESSION['lat']) || $_SESSION['lat'] == "") echo "geolocate();"; +echo " "; + } + if (isAnalyticsOn()) echo ' "; echo '
@@ -160,8 +169,10 @@ document.title = "' . $pageTitle . '"; }); -