-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader2.php
More file actions
42 lines (41 loc) · 1.41 KB
/
header2.php
File metadata and controls
42 lines (41 loc) · 1.41 KB
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
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel='stylesheet' type='text/css' href="css/bootstrap.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/header.css"/>
</head>
<header>
<div class="header">
<div class="logo">
<a href="index.php">ERP SYSTEM</a>
</div>
</div>
<?php
if (isset($_GET['error'])) {
// Error handling code here...
}
if (isset($_GET['success'])) {
// Success handling code here...
}
?>
<div class="topnav" id="myTopnav">
<!-- Additional navigation links for index, ManageUsers, UsersLog, and devices -->
<a href="index2.php">Users</a>
<a href="ManageUsers2.php">Manage Users</a>
<a href="UsersLog2.php">Attendance Logs</a>
<a href="projects.php">Projects</a>
<a href="inventory.php">Inventory</a>
<!-- Other navigation links -->
<?php
if (isset($_SESSION['Admin-name'])) {
echo '<a href="#" data-toggle="modal" data-target="#admin-account">'.$_SESSION['Admin-name'].'</a>';
echo '<a href="logout.php">Log Out</a>';
}
else{
echo '<a href="login.php">Log In</a>';
}
?>
<!-- End of additional navigation links -->
</div>
<!-- Other HTML elements -->
</header>