-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
57 lines (48 loc) · 1.7 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
<?php
session_start();
echo "<!DOCTYPE html>\n<html><head>";
require_once 'functions.php';
$userstr = '(Guest)';
if (isset($_SESSION['netid']))
{
$netid = $_SESSION['netid'];
$loggedin = TRUE;
$userstr = " ($netid)";
}
else $loggedin = FALSE;
echo "<title>$appname$userstr</title> " .
"<link href='normalize.css' rel='stylesheet'/>" .
"<link href='col.css' rel='stylesheet'/>" .
"<link href='grid.css' rel='stylesheet'/>" .
"<link href='ui/checkbox.css' rel='stylesheet'/>" .
"<link href='style.css' rel='stylesheet'/>" .
"<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400' rel='stylesheet' type='text/css'>" .
"</head>" .
"<body>";
if ($loggedin)
{
echo "<div id='nav'>".
"<div class = 'col'>" .
"<a href='home.php?view=$netid'><img id='logo' src='logo.png' alt='logo'/></a>" .
"</div> ".
"<div id='right'>".
"<ul class='menu'>" ;
echo "<li><img id='heart' src='heart.png'></li>".
"<li><img id='paint' src='paint.png'></li>".
"<div id='you'><li><img id='profile-icon' src='profile.png'><a href='profile.php?view=$netid''>You</a><div id='arrow'></div></li>" .
"<ul>" .
"<li class='subnav'><a href='profile.php?view=$netid''>Edit</a></li>".
"<li class='subnav'><a href='logout.php'>Log out</a></li>".
"</ul></div>".
"</ul>" .
"</div>".
"</div>";
}
else
{
echo "<div id='nav'>".
"<div class='col'>" .
"<a href='index.php'><img id='logo' src='logo.png' alt='logo'/></a>" .
"</div></div></nav> ";
}
?>