'.chr(13).chr(13); echo'
'.chr(13); // -----> Ebene 1 <----------------------------------------------------------------------------------------------------------------- foreach($menu as $mainI => $subI1){ echo'

'.chr(13);} else {if($item==$mainI) echo'_open'; echo'">'.$mainI.'
'.chr(13);} // -----> Ebene 2 <----------------------------------------------------------------------------------------------------------------- if($item==$mainI){ foreach($menu[$mainI] as $subI1 => $subI2){ echo'

'.chr(13);} else {$sub1Keys = array_keys($menu[$mainI]); if($sub1==$subI1) {echo'_open';} elseif($sub1Keys[count($menu[$mainI])-1]==$subI1) {echo'_last';} echo'">'.$subI1.''.chr(13);} // -----> Ebene 3 <----------------------------------------------------------------------------------------------------------------- if($sub1==$subI1){ foreach($menu[$mainI][$subI1] as $subI2 => $subI3){ echo'

'.chr(13);} else {$sub2Keys = array_keys($menu[$mainI][$subI1]); if($sub2==$subI2) {echo'_open';} elseif(($sub2Keys[count($menu[$mainI][$subI1])-1]==$subI2)&&($sub1Keys[count($menu[$mainI])-1]==$subI1)) {echo'_last';} echo'">'.$subI2.''.chr(13);} // -----> Ebene 4 <----------------------------------------------------------------------------------------------------------------- if($sub2==$subI2){ foreach($menu[$mainI][$subI1][$subI2] as $subI3 => $t){ echo'

'.chr(13);} else {$sub3Keys = array_keys($menu[$mainI][$subI1][$subI2]); if($sub3==$subI3) {echo'_open';} elseif(($sub3Keys[count($menu[$mainI][$subI1][$subI2])-1]==$subI3)&&($sub2Keys[count($menu[$mainI][$subI1])-1]==$subI2)&&($sub1Keys[count($menu[$mainI])-1]==$subI1)) {echo'_last';} if(!$t)$t='machine.php?id='.$subI3; echo'">'.$subI3.''.chr(13);} }; }; }; }; }; }; }; ?>