-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
62 lines (61 loc) · 1.49 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
session_start();
?>
<html>
<head>
<style>
.header{
background-color: lightGray;
}
</style>
</head>
<body class="header" alink="black" vlink="black"><center>
<table>
<tr>
<td>
<a href="index.php"> <img src="images/logo.png" height="30" width="90"> </a>
</td>
<td>
<a href="authors.php">Authors</a>
</td>
<td>
<a href="publishers.php">Publisher</a>
</td>
<td>
<a href="search.php">Search</a>
</td>
<?php
if(isset($_SESSION['type'])){
if($_SESSION['type'] == "customer"){ ?>
<td>
<a href="cart.php">Your Cart</a>
</td>
<?php }
else{ ?>
<td>
<a href="addProduct.php">Add Book</a>
</td>
<td>
<a href="addAuthor.php"> Add Author </a>
</td>
<td>
<a href="addPublisher.php"> Add Publisher </a>
</td>
<?php }
}?>
<?php
if(isset($_SESSION['uname'])){ ?>
<td>
<a href="logout.php"> <button> Logout </button></a>
</td>
<?php }else{ ?>
<td>
<a href="login.php"> <button> Login </button></a>
<a href="register.php"> <button> Signin </buton></a>
</td>
<?php }
?>
</tr>
</table></center>
</body>
</html>