-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
58 lines (48 loc) · 1.77 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
<?php include ('db_connect.php') ?>
<div id="logo"><img src="imagini/logooo.png" id="imagine-logo" alt="Imagine"></div>
<div class="topnav" id="myTopnav">
<?php if(isset($_SESSION['email']) && $_SESSION['email'] == "[email protected]"): ?>
<a href="admin.php" >Admin</a>
<?php endif; ?>
<a href="index.php" >Acasa</a>
<a href="#"><span style="cursor:pointer" onclick="openNav()">DESPRE</span></a>
<a href="contact.php">Contact</a>
<?php if(isset($_SESSION['email'])): ?>
<?php include('online_users.php') ?>
<a href="logout.php">DECONECTARE</a>
<?php else: ?>
<?php
$ses = session_id();
$sql4 = "DELETE FROM users_status WHERE session='$ses'";
$result4 = mysqli_query($conn, $sql4); ?>
<a href="login.php">AUTENTIFICARE</a>
<?php endif; ?>
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
<i class="fa fa-bars"></i> </a>
</div>
<script>
function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
</script>
<div id="myNav" class="overlay">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<div class="overlay-content">
<a href="ghid_utilizare.html">Ghid de utilizare-TraST</a>
<a href="raport_frontend-backend.html">Raport-TraST</a>
<a href="diagrame.html">Diagrama</a>
</div>
</div>
<script>
function openNav() {
document.getElementById("myNav").style.height = "100%";
}
function closeNav() {
document.getElementById("myNav").style.height = "0%";
}
</script>