-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
157 lines (141 loc) · 6.55 KB
/
header.php
File metadata and controls
157 lines (141 loc) · 6.55 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?php
session_start();
error_reporting(E_ERROR | E_PARSE);
date_default_timezone_set('America/Los_Angeles');
$return_url = "/";
if (!$_SESSION['userLoggedin']) {
if (isset($this)) {
$return_url = $this->return;
}
header("Location: login.php?return_url=".$return_url);
}
if($_SESSION['access_level'] == 1){
$this->comment_deactive = 1;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta charset="utf-8"/>
<meta name="description" content="">
<meta name="author" content="">
<title><?php
if (isset($this)) {
if(isset($this->title)){
echo $this->title;
}
} else {
echo "Timeline";
}
?></title>
<link rel="stylesheet" type="text/css" media="screen" href="css/coolblue.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/droppy.css" />
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.6.1.min.js"><\/script>')</script>
<script src="js/scrollToTop.js"></script>
<script src="js/jquery.droppy.js"></script>
<?php
if (isset($this)) {
echo $this->head;
}
?>
</head>
<body id="top" <?php
if (isset($this)) {
echo $this->body;
}
?>>
<script>
$(function() {
$('.navi').droppy();
});
</script>
<!--header -->
<div id="header-wrap"><header>
<nav>
<ul class="navi">
<li <?php
if (isset($this)) {
if ($this->current_page == 1) {
echo 'id="current"';
}
}
?>><a href="Timeline.php">Timeline</a><span></span>
<ul>
<?php if($_SESSION['access_level'] == 2){ ?>
<li><a href="pieChart.php">Chart</a></li>
<?php }?>
<?php if($this->comment_deactive){ ?>
<li><a href='functions.php?action=download_tasks<?php if($_SESSION['access_level'] == 2){echo '&project='.$this->project;}?>'>Download</a></li>
<?php }?>
</ul>
</li>
<?php if($_SESSION['access_level'] == 2){ ?>
<li <?php
if (isset($this)) {
if ($this->current_page == 2) {
echo 'id="current"';
}
}
?>><a href="#">Projects</a><span></span>
<ul>
<li><a href='createProject.php'>Create Project</a></li>
<li><a href='viewProjects.php'>View Projects</a></li>
</ul>
</li>
<?php }?>
<li <?php
if (isset($this)) {
if ($this->current_page == 3) {
echo 'id="current"';
}
}
?>><a href="#">Tasks</a><span></span>
<ul>
<?php if($_SESSION['access_level'] == 2){ ?><li><a href='createTask.php'>Create Task</a></li><?php } ?>
<li><a href='viewTasks.php'>View tasks</a></li>
</ul>
</li>
<li <?php
if (isset($this)) {
if ($this->current_page == 4) {
echo 'id="current"';
}
}
?>><a href="updateProfile.php">Profile</a><span></span>
</li>
<?php if($_SESSION['access_level'] == 2){ ?>
<li <?php
if (isset($this)) {
if ($this->current_page == 5) {
echo 'id="current"';
}
}
?>><a href="#">Employees</a><span></span>
<ul>
<li><a href='createAccount.php'>Create Account</a></li>
<li><a href='viewUsers.php'>View Employee</a></li>
</ul>
</li>
<?php } ?>
<?php if($this->comment_deactive){?>
<li <?php
if (isset($this)) {
if ($this->current_page == 6) {
echo 'id="current"';
}
}
?>><a href="comments.php<?php if($_SESSION['access_level'] == 2){echo '?project='.$this->project;}?>">Comments</a><span></span>
</li>
<?php }?>
</ul>
</nav>
<div class="subscribe">
Welcome <?php echo $_SESSION['first_name'] . " " . $_SESSION['last_name']; ?> | <a href="logout.php">Logout</a>
</div>
<!--/header-->
</header></div>