aktuelle.kurse/m133/5_Vorlagen-und-Loesungen/skeleton_1_tofix/navigation.inc.php
Harald G. Mueller 28ff49e098 muh
2023-06-29 07:50:41 +02:00

26 lines
851 B
PHP

<?php
$siteRoot="index.php?inhalt_mitte=";
$menuStruct = array("Home"=>array("root"=>$siteRoot."home.inc.php"),
"Vorwort"=>array("root"=>$siteRoot."vorwort.inc.php"),
"Eigenschaften"=>array("root"=>$siteRoot."eigenschaften.inc.php"),
"Aufgaben"=>array("root"=>$siteRoot."aufgaben.inc.php"),
"Anmeldung Schlosslauf"=>array("root"=>$siteRoot."schlosslauf.php"),
"Logout"=>array("root"=>$siteRoot."logout.php")
);
$url = "";
if(isset($_GET["inhalt_mitte"])){
$aktuell = $_GET["inhalt_mitte"];
$url = $siteRoot.$aktuell;
}
foreach($menuStruct as $key=>$value)
{
if($url == $value['root'])
{
echo "<a class=\"fstLevelActive\" href=".$value['root'].">$key</a>\n";
}
else
{
echo "<a class=\"fstLevel\" href=".$value['root'].">$key</a>\n";
}
}
?>