Example #1
0
<script type="text/javascript" src="javascript/functions.js"></script>


<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-<?php 
echo $v_leaflet;
?>
/leaflet.css" />

<link rel="stylesheet" type="text/css" href="style/style.css">
<link rel="alternate" type="application/rss+xml" href="changelog.php" title="Changelog">

<?php 
//route id is defined -> get route
if (isset($_GET["id"]) || isset($_POST["id"])) {
    $route = new Route();
    // get data
    $route->getData();
    $route->train = new Train();
    $route->loadXml();
    $route->loadRelationWays();
    $route->calculateSpeed();
    $route->output();
    showAbout();
} else {
    start();
    Search::showSearchResult();
    showAbout();
}
?>
</body>
</html>