-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
39 lines (39 loc) · 1.36 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
<?php
require_once 'connect.php';
require_once 'functions.php';
?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo $pageTitle; ?></title>
<link href="styles/styles.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<meta name="viewport" content="initial-scale=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="scripts/scripts.js"></script>
</head>
<body>
<div id='cssmenu'>
<ul>
<li><a href='index.php'><span>Home</span></a></li>
<?php if (!isLoggedIn()) { echo "<li><a href='register.php'>Register</a></li>"; } ?>
<?php if (isLoggedIn()) {
if (isAdministrator()) {
echo "<li class='has-sub'><a href='#'>Admin</a>
<ul>
<li><a href='adminUsers.php'>User Admin</a></li>
<li><a href='siteMessage.php'>Site-wide Message</a></li>
<li><a href='siteConfiguration.php'>Site Configuration</a></li>
<li><a href='timeAdmin.php'>User Time Admin</a></li>
</ul>
</li>";
}
echo "<li class='has-sub'><a href='profile.php'>Welcome, ";getFirstName($_SESSION['user_id'])."</a>";
echo "<ul>
<li><a href='profile.php'>My Profile</a></li>
<li><a href='logout.php'>Logout</a></li>
</ul>";
} ?>
</ul>
</div>
<div class="container">