79 lines
3.3 KiB
PHP
Executable File
79 lines
3.3 KiB
PHP
Executable File
|
|
<?php
|
|
if (isset($_SESSION['id'])) { $id_site = $_SESSION['id'];} else { $id_site = 2;}?>
|
|
<nav class="navbar navbar-inverse navbar-fixed-top">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="homepages">Website</a>
|
|
</div>
|
|
<div id="navbar" class="collapse navbar-collapse">
|
|
<ul class="nav navbar-nav">
|
|
<li<?php if ($thisPage=="index")
|
|
echo " id=\"currentpage\""; ?>>
|
|
<a href="index">Home</a></li>
|
|
</ul>
|
|
<ul class="nav navbar-nav">
|
|
<li<?php if ($thisPage=="baum")
|
|
echo " id=\"currentpage\""; ?>>
|
|
<a href="baum?anz=4&id=<?php echo $id_site;?>&baum=0">Stammbaum</a></li>
|
|
</ul>
|
|
<ul class="nav navbar-nav">
|
|
<li<?php if ($thisPage=="familienblatt")
|
|
echo " id=\"currentpage\""; ?>>
|
|
<a href="familienblatt?id=<?php echo $id_site;?>">Familienblatt</a></li>
|
|
</ul>
|
|
<ul class="nav navbar-nav">
|
|
<li<?php if ($thisPage=="familientafel")
|
|
echo " id=\"currentpage\""; ?>>
|
|
<a href="familientafel?id=<?php echo $id_site;?>">Familientafel</a></li>
|
|
</ul>
|
|
<ul class="nav navbar-nav">
|
|
<li<?php if ($thisPage=="nachkommen")
|
|
echo " id=\"currentpage\""; ?>>
|
|
<a href="nachkommen?id=<?php echo $id_site;?>">Nachkommen</a></li>
|
|
</ul>
|
|
<ul class="nav navbar-nav">
|
|
<li<?php if ($thisPage=="showlist")
|
|
echo " id=\"currentpage\""; ?>>
|
|
<a href="showlist?zeichen=B&liste=6">Listen</a></li>
|
|
</ul><?php
|
|
if (isset($_SESSION['rechte'])){ // admin rechte
|
|
if ($_SESSION['rechte'] == "admin") {?>
|
|
<ul class="nav navbar-nav">
|
|
<li<?php if ($thisPage=="update")
|
|
echo " id=\"currentpage\""; ?>>
|
|
<a href="update?id=<?php echo $id_site;?>">Admin</a></li>
|
|
</ul> <?php
|
|
}
|
|
}
|
|
|
|
if ($thisPage=="showlist" || $thisPage=="showlist_1") {?>
|
|
<ul>
|
|
<form class="navbar-form navbar-right" role="search">
|
|
<div class="form-group input-group">
|
|
<input type="text" class="form-control" id="myInput" placeholder="Search..">
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-default" type="button">
|
|
<span class="glyphicon glyphicon-search"></span>
|
|
</button>
|
|
</span>
|
|
</div>
|
|
</form>
|
|
</ul><?php
|
|
}?>
|
|
<ul class="nav navbar-nav" style="float:right">
|
|
<li<?php if ($thisPage=="impressum"){
|
|
echo " id=\"currentpage\"";}?> >
|
|
<a href="impressum">Impressum</a></li>
|
|
</ul>
|
|
</div><!--/.nav-collapse -->
|
|
<!-- </div> wird am Ende der Seite geschlossen -->
|
|
</nav>
|
|
</br></br></br>
|