printAddress($loc, $daddr, $end_marker_img);
 echo "<br/>\n";
 if ($path) {
     if ($path == "walk" || $path == "same") {
         $cpath = $path;
     } else {
         $cpath = $path->path;
     }
     if ($cpath == "walk") {
         echo "You don't need to take the subway. Why don't you walk instead?<br/>";
     } else {
         if ($cpath == "same") {
             echo "You're just testing the system, aren't you? Go do something more interesting, like telling your firends about this great site.<br/>";
         } else {
             if (count($path->path) > 1) {
                 $cpath = consolidatePath($path, $_GET['type']);
             }
             printPath($cpath);
         }
     }
     echo "<br/>\n";
     echo "<form id=\"form_pick\" action=\"{$current_url}\" method=\"get\">\n";
     // list alternate stations
     echo "<table border=\"1\">\n<tbody>\n<tr>\n<td colspan=\"4\"><b>Start Station Choices</b></td>\n</tr>\n<tr>\n<td>&nbsp;<b>Show</b>&nbsp;</td>\n<td><b>Station Name</b></td>\n<td><b>Subway Lines</b></td>\n</tr>\n";
     $num = 1;
     // grab the stations
     $start_stations = findNearestStations2($starts[0]);
     $start_station_marker = $path_array[0]->m2;
     foreach ($start_stations as $station) {
         $station_marker = $station->marker;
         echo "<tr>\n";
Beispiel #2
0
     } else {
         if ($path == "same") {
             echo "You're just testing the system, aren't you? Go do something more interesting, like telling your friends about this great site.<br/>";
         }
     }
 } else {
     if (is_object($path)) {
         if ($debug) {
             echo "setting cpath<br/>";
         }
         $cpath = $path->path;
         if (count($cpath) > 1) {
             if ($debug) {
                 echo "consolidating path<br/>";
             }
             $cpath = consolidatePath($path, $type);
         }
         if (is_string($cpath)) {
             if ($cpath == "walk") {
                 echo "You don't need to take the subway. Why don't you walk instead?<br/>";
             } else {
                 if ($cpath == "same") {
                     echo "You're just testing the system, aren't you? Go do something more interesting, like telling your friends about this great site.<br/>";
                 }
             }
         } else {
             printPath($cpath);
         }
         echo "<br/>\n";
         displayStationChoices($current_url, $start_location, $end_location, $path->path);
     }