-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
317 lines (290 loc) · 8.94 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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<?php
$pagename = "index.php";
include('includes/header.php');
$db = new Database();
$conn = $db->getConnection();
$query = "SELECT * FROM offers";
$q = $conn->query($query);
?>
<head>
<style type="text/css">
html,body{
width: 100%;
overflow-x: hidden;
}
</style>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<!-- Custom Theme files -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/custom.css" rel="stylesheet" type="text/css" />
<!-- Custom Theme files -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!--webfont-->
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900,200italic,300italic,400italic,600italic,700italic,900italic' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Lobster+Two:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
<!--Animation-->
<script src="js/wow.min.js"></script>
<link href="css/animate.css" rel='stylesheet' type='text/css' />
<script>
new WOW().init();
</script>
<script src="js/simpleCart.min.js"> </script>
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".scroll").click(function(event){
event.preventDefault();
$('html,body').animate({scrollTop:$(this.hash).offset().top},1200);
});
});
</script>
</head>
<body>
<!-- content-section-starts -->
<div class="content">
<div class="special-offers-section">
<div class="container">
<div class="special-offers-section-head text-center">
<hr><h4>Special Offers</h4><hr>
</div>
<div class="special-offers-section-grids">
<!--<div class="m_3"><span class="middle-dotted-line"> </span> </div>-->
<div class="container">
<ul id="flexiselDemo2">
<?php
if($q->setFetchMode(PDO::FETCH_ASSOC))
{
while ($r = $q->fetch()){
$offerId = $r['offer_id'];
$heading = $r['heading'];
$image = $r['image'];
$description = $r['description'];
?>
<li>
<div class="offer">
<div class="offer-image">
<img src="<?php echo $image;?>" class="img-responsive" alt=""/>
</div>
<div class="offer-text">
<h4><?php echo $heading ?></h4>
<p><?php echo $description; ?></p>
<input type="button" value="Grab It">
<span></span>
</div>
<div class="clearfix"></div>
</div>
</li>
<?php
}
}
?>
<!-- <li>
<div class="offer">
<div class="offer-image">
<img src="images/p2.jpg" class="img-responsive" alt=""/>
</div>
<div class="offer-text">
<h4>Chicken Jumbo pack lorem</h4>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. </p>
<input type="button" value="Grab It">
<span></span>
</div>
<div class="clearfix"></div>
</div>
</li>
<li>
<div class="offer">
<div class="offer-image">
<img src="images/p1.jpg" class="img-responsive" alt=""/>
</div>
<div class="offer-text">
<h4>Crab Combo pack lorem</h4>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. </p>
<input type="button" value="Grab It">
<span></span>
</div>
<div class="clearfix"></div>
</div>
</li>
<li>
<div class="offer">
<div class="offer-image">
<img src="images/p2.jpg" class="img-responsive" alt=""/>
</div>
<div class="offer-text">
<h4>Chicken Jumbo pack lorem</h4>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. </p>
<input type="button" value="Grab It">
<span></span>
</div>
<div class="clearfix"></div>
</div>
</li> -->
</ul>
<script type="text/javascript">
$(window).load(function() {
$("#flexiselDemo2").flexisel({
visibleItems: 3,
animationSpeed: 1000,
autoPlay: true,
autoPlaySpeed: 3000,
pauseOnHover: true,
enableResponsiveBreakpoints: true,
responsiveBreakpoints: {
portrait: {
changePoint:480,
visibleItems: 1
},
landscape: {
changePoint:640,
visibleItems: 2
},
tablet: {
changePoint:768,
visibleItems: 3
}
}
});
});
</script>
<script type="text/javascript" src="js/jquery.flexisel.js"></script>
</div>
</div>
</div>
</div>
</div>
<!-- content-section-ends -->
<!-- banner-bottom -->
<div class="banner-bottom animated wow lightSpeedIn" data-wow-duration="1500ms" data-wow-delay="800ms">
<ul id="flexiselDemo1">
<li>
<a href="cake.php"><div class="item item-sub">
<div class="item1">
<i class="glyphicon glyphicon-cutlery" aria-hidden="true"></i>
<h3>Cake</h3>
</div>
<div class="p-mask">
<h4>Bake Your Bread</h4>
<p>Content.</p>
</div>
</div></a>
</li>
<li>
<a href="bread.php"><div class="item item-sub1">
<div class="item1">
<i class="glyphicon glyphicon-cutlery" aria-hidden="true"></i>
<h3>Bread</h3>
</div>
<div class="p-mask">
<h4>Bake Your Bread</h4>
<p>Content</p>
</div>
</div></a>
</li>
<li>
<a href="cookies.php"><div class="item item-sub2">
<div class="item1">
<i class="glyphicon glyphicon-cutlery" aria-hidden="true"></i>
<h3>Cookies</h3>
</div>
<div class="p-mask">
<h4>Bake Your Bread</h4>
<p>Content.</p>
</div>
</div></a>
</li>
<li>
<a href="pastries.php"><div class="item item-sub3">
<div class="item1">
<i class="glyphicon glyphicon-cutlery" aria-hidden="true"></i>
<h3>Pastries</h3>
</div>
<div class="p-mask">
<h4>Bake Your Bread</h4>
<p>Content.</p>
</div>
</div></a>
</li>
<li>
<a href="otherstuff.php"><div class="item item-sub3">
<div class="item1">
<i class="glyphicon glyphicon-cutlery" aria-hidden="true"></i>
<h3>Other Stuff</h3>
</div>
<div class="p-mask">
<h4>Bake Your Bread</h4>
<p>Content.</p>
</div>
</div></a>
</li>
</ul>
<script type="text/javascript">
$(window).load(function() {
$("#flexiselDemo1").flexisel({
visibleItems: 4,
animationSpeed: 1000,
autoPlay: true,
autoPlaySpeed: 3000,
pauseOnHover: true,
enableResponsiveBreakpoints: true,
responsiveBreakpoints: {
portrait: {
changePoint:480,
visibleItems: 1
},
landscape: {
changePoint:640,
visibleItems: 2
},
tablet: {
changePoint:768,
visibleItems: 3
}
}
});
});
</script>
<script type="text/javascript" src="js/jquery.flexisel.js"></script>
</div>
<br>
<!-- //banner-bottom -->
<!-- banner-bottom-grids -->
<div class="banner-bottom-grids">
<div class="col-md-7 banner-bottom-grid-left animated wow fadeInLeft" data-wow-duration="1000ms" data-wow-delay="500ms">
<h2><span>Happiness is</span></h2>
<h1>the smell of freshly baked bread.</h1>
</div>
</div>
<div class="col-md-5 banner-bottom-grid animated wow fadeInRight" data-wow-duration="1000ms" data-wow-delay="500ms">
<img src="images/6.jpg" alt=" " class="img-responsive" />
<div class="banner-bottom-grid1">
<div class="banner-bottom-grid1-pos animated wow fadeInUpBig" data-wow-duration="1000ms" data-wow-delay="500ms">
<h3>I like to think of <span>bread as really </span> <i>Bland cake</i></h3>
</div>
</div>
</div>
<div class="clearfix"> </div>
<div class="banner-bottom-grids">
<div class="col-md-4 banner-bottom-grid-sub animated wow fadeInLeft" data-wow-duration="1000ms" data-wow-delay="500ms">
<img src="images/7.jpg" alt=" " class="img-responsive" />
<div class="banner-bottom-grid-sub1">
<div class="banner-bottom-grid-sub-pos">
<h3><span>god gives us</span> the ingredients for our daily <i>Bread</i>
but he expects us to do the <span>Baking !</span></h3>
</div>
</div>
</div>
<div class="col-md-8 banner-bottom-grid-left1 animated wow fadeInLeft" data-wow-duration="1000ms" data-wow-delay="1000ms">
<p>For it is we who must pray for our daily bread, and if he grants it to us, it is only through
our labour, our skill and preparation</p>
</div>
<div class="clearfix"> </div>
</div><br>
<!-- //banner-bottom-grids -->
<?php
include('includes/footer.php');
?>