-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtemplate.php
79 lines (65 loc) · 3.99 KB
/
template.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Everest - Template Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="../css/main.css" />
<link rel= "stylesheet" type="text/css" href = "../css/header_style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<!-- HEADER -->
<div id = "header">
<div style="float:left;height:50px;width:15%;min-width:120px;">
<a href = "/">
<img type = "everest_logo" src = "/imgs/everest-logo.png" alt = "Everest Logo" style="padding-left:28px;width: 107px;"/>
</a>
</div>
<a href="cart.php"style="color:white;margin-left: 68%;position: absolute;top: 15px;"><span class="glyphicon glyphicon-shopping-cart"> Cart</span> </a>
<div id="search">
<input id = "searchbox" type="text" size="30" onkeyup="showResult(this.value)" placeholder="Search for an item..." />
</div>
<?php
if(isset($_COOKIE['email']) == "") {
echo '<a href="login.php"style="color:white;margin-left: 75%;position: absolute;top: 15px;" ><span class="glyphicon glyphicon-log-in"> Login</span> </a>
<a href="myaccount.php"style="color:white;margin-left: 41%;position: absolute;top: 15px;display:none"><span class="glyphicon glyphicon-user"> My Account</span> </a>
<a href="logout.php"style="color:white;margin-left: 75%;position: absolute;top: 15px;display:none"><span class="glyphicon glyphicon-log-out"> Logout</span> </a>
';
} else {
echo'
<a href="myaccount.php"style="color:white;margin-left: 41%;position: absolute;top: 15px;"><span class="glyphicon glyphicon-user"> My Account</span> </a>
<a href="logout.php"style="color:white;margin-left: 75%;position: absolute;top: 15px;"><span class="glyphicon glyphicon-log-out"> Logout</span> </a>
<a href="login.php"style="color:white;margin-left: 75%;position: absolute;top: 15px; display:none" ><span class="glyphicon glyphicon-log-in"> Login</span> </a>
';
}
?>
</div> <!-- End of Div header -->
<div id="wrapper">
<div id="content_inside">
<!-- ************* INCLUDE YOUR CODE HERE ************ -->
</div>
</div>
<div id="footer">
<div id="footer_inside">
<ul class="footer_menu">
<li><a href="index.html">Home Page</a>|</li>
<li><a href="index2.html">About Us</a>|</li>
<li><a href="index2.html">News & Events</a>|</li>
<li><a href="index2.html">Services</a>|</li>
<li><a href="index2.html">My Account</a>|</li>
<li><a href="index2.html">Contacts</a></li>
</ul><br /><br />
<p>Copyright ©. All rights reserved. Design by Team Best - CMPSC 431W</p>
</div>
</div>
<map name="Map">
<area shape="rect" coords="78,45,312,119" href="index.html">
<area shape="poly" coords="670,87,719,78,727,123,677,130" href="#">
<area shape="poly" coords="776,124,818,152,793,189,751,160" href="#">
<area shape="poly" coords="834,52,885,61,878,105,828,96" href="#">
</map>
</body>
</html>