This repository has been archived by the owner on Feb 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·140 lines (117 loc) · 5.7 KB
/
index.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
<?php include "session.php"; ?>
<!--Index.php is the front page for QuickShop-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<title>Front Page</title>
<!--Styles-->
<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 15px;
padding-bottom: 20px;
}
.sidebar-nav {
padding: 9px 0;
}
</style>
<!-- Icons -->
<link rel="shortcut icon" href="http://twitter.github.com/bootstrap/assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-57-precomposed.png">
</head>
<body>
<!--Start of Center Section-->
<div id="center-section">
<!--Start of Navigation Bar-->
<div class="navbar navbar-inverse ">
<div class="navbar-inner">
<div class="container-nav">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<!--Links to Account Login and Cart-->
<div class="nav-collapse collapse">
<p class="navbar-text pull-right">
<ul class="nav pull-right">
<?php include './models/Account.php';
$db = new DatabaseLink();
$a = Account::dbGet($_SESSION['accountId'], $db);
if ($a == false) {
echo("<a class=\"brand\" href=\"login.php\">Login/Create Account</a>");
} else {
echo("<a class=\"brand\" href=\"accountmgr.php\">Hello, " . $a->fields['first_name'] . "!</a>");
}
?>
<a class="brand" href="mycart.php">My Cart</a>
</ul>
</p>
</div>
<!--Search Bar-->
<form class="form-search" action="search.php" method="post" name="Search">
<div style="text-align:left">
<input type="text" name="fsearch" maxlength="100" class="span6 input-large search-query">
<button type="submit" class="btn">Search</button>
</div>
</form><!--End of Search Bar-->
</div>
</div>
</div><!--End of Navigation Bar-->
<!--Start of the Center Section below the Navigation Bar-->
<div class="container-center">
<div class="row-fluid">
<!--Logo Here-->
<a class="brand" href="index.php"> <img src="assets/img/logo.png"></a>
</div>
<!--Start of Sidebar-->
<div class="row-fluid">
<div class="span3">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">Product Categories</li>
<?php include 'sidebar.php';?>
</ul>
</div><!--End of Sidebar-->
</div><!--Span-->
<!--Start of Featured Section-->
<div class="span9">
<div class="container-main">
<p><u><h3>Featured Items</h3></u></p>
<div id="featured" class="carousel slide">
<!-- Carousel items -->
<div class="carousel-inner">
<?php include "featured.php";?>
</div>
<!-- Carousel nav -->
<a class="carousel-control left" href="#featured" data-slide="prev">‹</a>
<a class="carousel-control right" href="#featured" data-slide="next">›</a>
</div><!--End of Featured Section-->
</div><!--Span-->
<hr><!--Breakline between Featured Section and New Items Display-->
<p><u><h3>Newest Items</h3></u></p>
</div><!--End of row containing sidebar and main section-->
<!--Start of New Items Display-->
<div class="row-fluid">
<?php include "newestItems.php";?>
</div><!--End of New Items Display-->
<hr><!--Breakline before Footer-->
<!--Footer-->
<footer>
<p><a href="contact.php">Contact Us</a></p>
</footer>
</div><!--End of the Center Section below the Navigation Bar-->
</div><!--End of Center Section-->
<!-- Javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="assets/js/jquery-1.8.2.min.js"></script>
<script src="assets/js/bootstrap.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
</body></html>