-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
37 lines (28 loc) · 1.11 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
<head>
<title>Books Info</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" href="css/intro.css">
</head>
<body>
<!-- <div class="wrapper">
<h1>Hello there!</h1>
</div> -->
<nav class="navbar navbar-inverse">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="index.html">Book Finder</a>
</div>
<ul class="nav navbar-nav navbar-right">
<?php if(isset($_SESSION['name'])): ?>
<!-- <a class="link" href="logout.php" style="text-decoration:none">logout</a> -->
<li><a href="login.html"><span class="glyphicon glyphicon-log-in"></span> <?php $_SESSION['name'] ?></a></li>
<?php else: ?>
<!-- <a class="link" href="login.php" style="text-decoration:none">login</a> -->
<li><a href="login.html"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
<?php endif; ?>
</ul>
</div>
</nav>