--- a/betweenpoint.php
+++ b/betweenpoint.php
@@ -76,7 +76,7 @@
';
}
?>
-var timeicon = new OpenLayers.Icon("http://maps.google.com/mapfiles/kml/pushpin/grn-pushpin.png",new OpenLayers.Size(32,32));
+var timeicon = new OpenLayers.Icon("icong.png",new OpenLayers.Size(32,32));
var timepoints = new OpenLayers.Layer.GeoRSS("Timing Points", "displaytimepoints.georss.php", { icon: timeicon });
map.addLayers([osmtiles, markers,timepoints]);
@@ -88,7 +88,7 @@
function submitBetween () {
$.post("betweenpoint.submit.php", $("#inputform").serialize(), function(html){
$("#response").html(html);
- //clearForms();
+ clearForms();
return false;
});
};
@@ -203,10 +203,11 @@
}
-
+ $processed = 0;
foreach ($paths as $path => $routes) {
if (!in_array($path, array_keys($completedPaths))) {
- echo "\n";
+ echo "\n";
+ $processed++;
} else {
$completedRoutes = explode(";", $completedPaths[$path]);
$incompleteRoutes = "";
@@ -218,13 +219,14 @@
}
if ($incompleteRoutes != "") {
- echo "\n";
+ echo "\n";
+ $processed++;
}
}
}
+ echo "$processed";
?>
-
from
to