engelsystem/includes/menu.php

59 lines
1.0 KiB
PHP
Raw Normal View History

<!-- anfang des menue parts //-->
2011-06-01 12:13:39 +02:00
<td width="160" valign="top">
<?php
ShowMenu("");
ShowMenu("nonpublic");
ShowMenu("admin");
2011-06-01 17:28:03 +02:00
if (!isset ($submenus))
$submenus = 0;
2011-06-01 12:13:39 +02:00
if ($submenus >= 1) {
2011-06-01 17:28:03 +02:00
$inc_name = $_SERVER['PHP_SELF'];
$filenamepos = strrpos($inc_name, '/');
$filenamepos += 1;
$filename = substr($inc_name, $filenamepos);
$filepost = substr($filename, 0, -4);
$filepre = substr($filename, -4);
$verzeichnis = substr($inc_name, 0, $filenamepos);
for ($index_nummer = 1; $index_nummer <= $submenus; $index_nummer++) {
?>
<table align="center" class="border" cellpadding="3" cellspacing="1">
2011-06-01 12:13:39 +02:00
<tr>
<td width="160" class="menu">
<?php include ("./".$filepost.".".$index_nummer.$filepre); ?>
</td>
</tr>
</table>
2011-06-01 12:13:39 +02:00
<br />
<?php
2011-06-01 17:28:03 +02:00
2011-06-01 17:51:39 +02:00
2011-06-01 17:28:03 +02:00
}
}
2011-06-01 17:28:03 +02:00
if (isset ($_SESSION['UID'])) {
?>
2011-06-01 17:51:39 +02:00
<nav class="container">
2011-06-01 12:13:39 +02:00
<?php include("funktion_activeUser.php"); ?>
2011-06-01 17:28:03 +02:00
</nav>
2011-06-01 12:13:39 +02:00
<?php
2011-06-01 17:28:03 +02:00
2011-06-01 17:51:39 +02:00
}
2011-06-01 13:36:24 +02:00
?>
2011-06-01 17:51:39 +02:00
<nav class="container">
2011-06-01 17:28:03 +02:00
<h4><?php echo Get_Text("Sprache") ?></h4>
2011-06-01 13:36:24 +02:00
<?php
2011-06-01 17:28:03 +02:00
2011-06-01 17:51:39 +02:00
2011-06-01 13:36:24 +02:00
include ("funktion_flag.php");
?>
2011-06-01 17:28:03 +02:00
</nav>
<!-- ende des menue parts //-->