Files
wachter/admin/header.php

46 lines
1.4 KiB
PHP

<?php
if ( isset ( $_SESSION['ID'] ) )
{
?>
<a style="width:10px; float:right; padding:0px 5px; margin:10px; font-size:20px;" href="img/help.pdf" target="_blank">?</a>
<a style="width:50px; float:right; margin:10px; color:red;" href="index.php?section=logout">Logout</a>
<ul style="float:left;">
<?php
if ( $_SESSION['IsBuero'] )
{
?>
<li><a <?php echo ( isset ( $_GET['section'] ) AND ( 'suche' == $_GET['section'] ) ) ? "class=\"head_active\" " : ""; ?>href="index.php?section=suche">Objektsuche</a></li>
<?php
}
if ( $_SESSION['IsAdmin'] )
{
?>
<li><a <?php echo ( isset ( $_GET['section'] ) AND ( 'home' == $_GET['section'] ) ) ? "class=\"head_active\" " : ""; ?>href="index.php?section=home">Home</a></li>
<?php
}
?>
<li><a <?php echo ( isset ( $_GET['section'] ) AND ( 'objekte' == $_GET['section'] ) ) ? "class=\"head_active\" " : ""; ?>href="index.php?section=objekte">Objekte</a></li>
<?php
if ( $_SESSION['IsAdmin'] )
{
/* ?>
<li><a <?php echo ( isset ( $_GET['section'] ) AND ( 'statistik' == $_GET['section'] ) ) ? "class=\"head_active\" " : ""; ?>href="index.php?section=statistik">Statistik</a></li>*/?>
<li><a <?php echo ( isset ( $_GET['section'] ) AND ( 'stamm' == $_GET['section'] ) ) ? "class=\"head_active\" " : ""; ?>href="index.php?section=stamm">Stammdaten</a></li>
<?php
}
?>
</ul>
<?php
}
?>