-
Notifications
You must be signed in to change notification settings - Fork 0
/
nav.php
37 lines (33 loc) · 1.05 KB
/
nav.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
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand">Lifestyle Store</a>
</div>
<ul class="nav navbar-nav">
<li><a href="index.php">Inicio</a></li>
<li><a href="produtos.php">Produtos</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<?php
session_start();
if(isset($_SESSION["user"]) && is_array($_SESSION['user'])){
include("basedados/config.php");
?>
<li><a href="logout.php"><span class="glyphicon glyphicon-log-out"></span> Sair</a></li>
<li><a href="carrinho.php"><span class="glyphicon glyphicon-shopping-cart"></span> Carrinho</a></li>
<li><a href="dashboard.php"><span class="glyphicon glyphicon-cog"></span> Definições</a></li>
<?php
}else{
?>
<li>
<a href="register.php"><span class="glyphicon glyphicon-user"></span> Register</a>
</li>
<li>
<a href="login.php"><span class="glyphicon glyphicon-log-in"></span> Login</a>
</li>
<?php
}
?>
</ul>
</div>
</nav>