-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
142 lines (137 loc) · 4.9 KB
/
search.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
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
<?php
session_start();
$cookie_name = 'name';
if(isset($_COOKIE[$cookie_name])) {
$name = $_COOKIE[$cookie_name];
}
if(isset($_COOKIE['role'])) {
$role = $_COOKIE['role'];
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>HoosierBazaar</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" rel="stylesheet" href="eCommerceAssets/styles/eCommerceStyle.css">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="http://use.edgefonts.net/montserrat:n4:default;source-sans-pro:n2:default.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script type="text/javascript" src="js/search.js"></script>
<script type="text/javascript" src="js/bookmark.js"></script>
<script>
$( function() {
$( ".accordion" ).accordion({
collapsible: true,
active: false,
header: "h3",
heightStyle: "content"
});
$( "#menu" ).menu();
} );
</script>
<style type="text/css">
a{
color: #EEEDEB;
}
.nav-right{
margin-right: 20px;
}
body, #headerLinks, #logo{
color: #EEEDEB;
background-color: #990000;
}
</style>
</head>
<body>
<div id="mainWrapper">
<header>
<a id="logo" href="home.php"> HoosierBazaar </a>
<div id="headerLinks">
<a href="about.php">About Us</a>
<a href="contact.php">Contact Us</a>
<?php
if(isset($name))
{
?>
<a href="viewBookmarks.php">My Bookmarks</a>
<?php
if(isset($role) && (strcmp($role, 'Admin') == 0) )
{ ?>
<a href="feedback.php">View Feedback</a>
<?php
} ?>
<a href="login_page/logout.php?redirect_url=<?php echo $_SERVER['PHP_SELF']; ?>">Logout</a>
<a class="nav-right" href="#">Welcome <?php echo $name; ?>!</a>
<?php
}
else
{
?>
<a class="nav-right" href="login_page/login.html" title="Login/Register">Login/Register</a>
<?php
} ?>
</div>
</header>
<div id="content">
<section class="sidebar">
<div id="menubar">
<!--nav class = "menu size-menu">
<h3>Category</h3>
<ul id="menu">
<li><div>Movies</div></li>
</ul>
</nav-->
<nav class="menu size-menu">
<h3>Filters</h3>
<div class="accordion">
<h3>Size</h3>
<div>
<ul>
<li><a href="#" class="size-filter" data-custom-value="S">Small</a></li>
<li><a href="#" class="size-filter" data-custom-value="M">Medium</a></li>
<li><a href="#" class="size-filter" data-custom-value="L">Large</a></li>
<li></li>
</ul>
</div>
<h3>Brand</h3>
<div>
<ul>
<li><a href="#" class="brand-filter" data-custom-value="Columbia">Columbia</a></li>
<li><a href="#" class="brand-filter" data-custom-value="Adidas">Adidas</a></li>
<li><a href="#" class="brand-filter" data-custom-value="Antigua">Antigua</a></li>
<li> </li>
</ul>
</div>
<h3>Store</h3>
<div>
<ul>
<li><a href="#" class="store-filter" data-custom-value="TIS Bookstore">TIS Bookstore</a></li>
<li><a href="#" class="store-filter" data-custom-value="College Mall">College Mall</a></li>
<li><a href="#" class="store-filter" data-custom-value="iuvshop">iuvshop</a></li>
<li></li>
</ul>
</div>
</div>
<button type="button" id="searchBtn" class="btn btn-primary col-lg-12">Search All</button>
</nav>
</div>
</section>
<section id="mainCntnt" class="mainContent">
</section>
</div>
</div>
<footer class="text-center">
<div class="container">
<div class="row">
<div class="col-xs-12">
<p>Copyright © HoosierBazaar.com All rights reserved.</p>
</div>
</div>
</div>
</footer>
</body>
</html>