2018-06-17 22:23:11 +02:00
|
|
|
|
|
|
|
|
2018-06-17 20:12:19 +02:00
|
|
|
<div>
|
|
|
|
<div id="carouselExampleSlidesOnly" class="carousel slide" data-ride="carousel">
|
|
|
|
<div class="carousel-inner" style="height: 100px;">
|
|
|
|
<div class="carousel-item active">
|
|
|
|
<img class="d-block h-100" src="img/header_pink.png" alt="First slide">
|
|
|
|
</div>
|
|
|
|
<div class="carousel-item">
|
|
|
|
<img class="d-block h-100" src="img/header_lime.png" alt="Second slide">
|
|
|
|
</div>
|
|
|
|
<div class="carousel-item">
|
|
|
|
<img class="d-block h-100" src="img/header_blue.png" alt="Third slide">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!--Navbar-->
|
|
|
|
<nav class="navbar sticky-top navbar-expand-lg navbar-dark bg-dark">
|
2018-06-17 20:34:25 +02:00
|
|
|
<a class="navbar-brand" href="index.php?page=home">FriendsBook</a>
|
2018-06-17 20:12:19 +02:00
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
|
|
<ul class="navbar-nav mr-auto">
|
2018-06-20 15:53:52 +02:00
|
|
|
<li id="navItemHome" class="nav-item">
|
2018-06-17 20:12:19 +02:00
|
|
|
<a class="nav-link" href="index.php?page=home">Home <span class="sr-only">(current)</span></a>
|
|
|
|
</li>
|
2018-06-20 15:53:52 +02:00
|
|
|
<li id="navItemEntry" class="nav-item">
|
2018-06-17 20:12:19 +02:00
|
|
|
<a class="nav-link" href="index.php?page=newEntry">New Entry</a>
|
|
|
|
</li>
|
2018-06-20 15:53:52 +02:00
|
|
|
<li id="navItemDashboard" class="nav-item">
|
2018-06-17 20:12:19 +02:00
|
|
|
<a class="nav-link" href="index.php?page=myFriendsBook">My FriendsBook</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<form class="form-inline my-2 my-lg-0">
|
|
|
|
<div class="btn-group" role="group" aria-label="Basic example">
|
|
|
|
<!-- Button Logout -->
|
2018-06-17 22:23:11 +02:00
|
|
|
<!-- <button id="btnLogout" onclick=window.location.href = 'http://www.google.com' type="button" class="btn btn-secondary">Logout</button> -->
|
|
|
|
|
2018-06-20 15:53:52 +02:00
|
|
|
|
2018-06-17 22:23:11 +02:00
|
|
|
<form action="" method="post">
|
2018-06-20 15:53:52 +02:00
|
|
|
<?php
|
|
|
|
if(isset($_SESSION['username'])){
|
2018-06-20 16:32:42 +02:00
|
|
|
echo('<input class="btn btn-secondary" type="button" value="Herzlich Willkommen ' . $_SESSION['username'] . '"></input>');
|
2018-06-20 15:53:52 +02:00
|
|
|
}
|
|
|
|
?>
|
2018-06-20 16:32:42 +02:00
|
|
|
<input class="btn btn-danger" onClick="window.location.href = 'php/logout.php'" type="button" value="Logout"></input>
|
2018-06-20 15:53:52 +02:00
|
|
|
|
2018-06-17 22:23:11 +02:00
|
|
|
</form>
|
2018-06-17 20:12:19 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</nav>
|