-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
218 lines (199 loc) · 7.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<?php
session_start();
if(isset($_SESSION['uid'])){
header('location:profile.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Ceramika</title>
<link rel="stylesheet" type="text/css" href="assets/slick.css"/>
<link rel="stylesheet" type="text/css" href="assets/slick-theme.css"/>
<link rel="stylesheet" type="text/css" href="assets/bootstrap-3.3.6-dist/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="icon" type="image/png" href="assets/images/fav.png">
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top" id="topnav">
<div class="container-fluid">
<div class="navbar-header">
<a href="index.php" class="navbar-brand">Ceramika</a>
</div>
<ul class="nav navbar-nav">
<li style="width:300px;left:10px;top:10px;"><input type="text" class="form-control" id="search" name="" placeholder="Search here.."></li>
<li style="top:10px;left:20px;"><button class="btn btn-primary" id="search_btn" name=""><span class='glyphicon glyphicon-search'></span></button></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li id='shoppingcart'><a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-shopping-cart"></span>Cart <span class="badge">0</span> </a>
<div class="dropdown-menu" style="width: 400px;">
<div class="panel panel-success">
<div class="panel-heading">
<div class="row">
<div class="col-md-3">S. No.</div>
<div class="col-md-3">Product Image</div>
<div class="col-md-3">Product Name</div>
<div class="col-md-3">Price in Rs.</div>
</div>
</div>
<div class="panel-body"></div>
<div class="panel-footer"></div>
</div>
</div>
</li>
<!-- <li><a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span>Sign In</a>
<ul class="dropdown-menu">
<div style="width: 300px;">
<div class="panel panel-primary">
<div class="panel-heading">Login</div>
<div class="panel-heading">
<label for="email">Email</label>
<input type="email" class="form-control" id="email">
<label for="email">Password</label>
<input type="password" class="form-control" id="password">
<p><br></p>
<a href="forget-password.php" style="color: white;list-style-type: none;">Forgot Password?</a>
<input type="submit" class="btn btn-success" style="float: right;bottom:12px;" id="login" value="Login" name="">
</div>
<div class="panel-footer" id="e_msg"></div>
</div>
</div>
</ul> -->
<li><a href="sm_login.php">Sales Manager</a></li>
<li><a href="" data-toggle="modal" data-target="#login_modal">Sign in</a></li>
<li><a href="customer_registration.php">Sign Up</a></li>
</ul>
</div>
</div>
<br><br><br>
<!-- Slider Begins -->
<div class="one-time">
<div><img src="assets/images/slider1.jpg"></div>
<div><img src="assets/images/slider2.jpg"></div>
<div><img src="assets/images/slider3.jpg"></div>
</div>
<!-- Slider ends -->
<br>
<div class="container-fluid">
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-2">
<div id="get_cat"></div>
<!--<div class="nav nav-pills nav-stacked">
<li class="active"><a href="#"><h4>Categories</h4></a></li>
<li><a href="#">Categories</a></li>
<li><a href="#">Categories</a></li>
<li><a href="#">Categories</a></li>
<li><a href="#">Categories</a></li>
</div>-->
<div id="get_brand" style="display: none;"></div>
<!--<div class="nav nav-pills nav-stacked">
<li class="active"><a href="#"><h4>Brands</h4></a></li>
<li><a href="#">Categories</a></li>
<li><a href="#">Categories</a></li>
<li><a href="#">Categories</a></li>
<li><a href="#">Categories</a></li>
</div>-->
</div>
<div class="col-md-8">
<div class="row">
<div class="col-md-12" id="cartmsg">
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading text-center">--Featured Products--
<div class='pull-right'>
Sort: <a href="#" id='price_sort'>Price</a> | <a href="#" id='pop_sort'>Popularity</a>
</div>
</div>
<div class="panel-body">
<div id="get_product"></div>
<!--<div class="col-md-4">
<div class="panel panel-info">
<div class="panel-heading">Samsung Galaxy</div>
<div class="panel-body"><img src="assets/prod_images/samsung_galaxy.jpg"></div>
<div class="panel-heading">$500.00
<button class="btn btn-danger btn-xs" style="float:right;">Add to Cart</button>
</div>
</div>
</div>-->
</div>
<div class="panel-footer">© 2019</div>
</div>
</div>
<div class="col-md-1"></div>
</div>
<div class="row">
<div class="col-md-12">
<center>
<ul class='pagination' id='pageno'>
</ul>
</center>
</div>
<!-- Modal -->
<div class="modal fade" id="prod_detail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h3 class="modal-title" id="myModalLabel">Product Details</h3>
</div>
<div class="modal-body" id='dynamic_content'>
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal ends-->
</div>
</div>
<?php
if(isset($_SESSION['succ']) && $_SESSION['succ'] != '')
{
echo '<script type="text/javascript">alert("'.$_SESSION['succ'].'");</script>';
$_SESSION['succ'] = '';
}
if(isset($_SESSION['fail']) && $_SESSION['fail'] != '')
{
echo '<script type="text/javascript">alert("'.$_SESSION['fail'].'");</script>';
$_SESSION['fail'] = '';
}
?>
<div id="login_modal" class="modal fade" role="dialog">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title text-center">Login</h4>
</div>
<div class="modal-body">
<label for="email">Email</label>
<input type="email" class="form-control" id="email">
<label for="email">Password</label>
<input type="password" class="form-control" id="password">
<a href="forget-password.php" style="list-style-type: none;">Forgot Password?</a>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-success" style="bottom:12px;" id="login" value="Login" name="">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="assets/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="assets/slick.min.js"></script>
<script src="assets/bootstrap-3.3.6-dist/js/bootstrap.min.js"></script>
<script src="main.js"></script>
</body>
<div class="foot"><footer>
<p> Brought To You By <a href="http://www.gecbh.cteguj.in/" target="_blank">GEC Bhavnagar</a></p>
</footer></div>
<style> .foot{text-align: center;}
</style>
</html>