-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·271 lines (257 loc) · 14.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
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
<?php
include 'connect.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Andia - Responsive Agency Template</title>
<!-- CSS -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,400">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Droid+Sans">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lobster">
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/animate.css">
<link rel="stylesheet" href="assets/css/magnific-popup.css">
<link rel="stylesheet" href="assets/flexslider/flexslider.css">
<link rel="stylesheet" href="assets/css/form-elements.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/media-queries.css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Favicon and touch icons -->
<link rel="shortcut icon" href="assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
</head>
<body>
<!-- Top menu -->
<?php include 'header.php'; ?>
<!-- Slider -->
<?php
$query_getSliders = "SELECT * FROM home_slider";
($slider_sqlTable = mysql_query($query_getSliders))
or die('mySQL error: '.mysql_error());
?>
<div class="slider-container">
<div class="container">
<div class="row">
<div class="col-sm-10 col-sm-offset-1 slider">
<div class="flexslider">
<ul class="slides">
<?php while($slider_row = mysql_fetch_array($slider_sqlTable)) : ?>
<li data-thumb="admin_uploads/<?php echo $slider_row['image_name'];?>">
<img src="admin_uploads/<?php echo $slider_row['image_name'];?>">
<div class="flex-caption"> <?php echo $slider_row['caption_text']; ?> </div>
</li>
<?php endwhile; ?>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- Presentation -->
<div class="presentation-container">
<div class="container">
<div class="row">
<div class="col-sm-12 wow fadeInLeftBig">
<h1>We are <span class="violet">Andia</span>, a super cool design agency.</h1>
<p>We design beautiful websites, logos and prints. Your project is safe with us.</p>
</div>
</div>
</div>
</div>
<!-- Services -->
<div class="services-container">
<div class="container">
<div class="row">
<?php
$query_getServices = "SELECT * FROM `home_whyUs`";
($whyUs_sqlTable = mysql_query($query_getServices))
or die('Error in mySQL query: '.mysql_error());
?>
<?php while($whyUs_row=mysql_fetch_array($whyUs_sqlTable)) : ?>
<div class="col-sm-3">
<div class="service wow fadeInUp" style="height:252px; ">
<div class="service-icon">
<img src="admin_uploads/<?php echo $whyUs_row['image_name']; ?>" alt="" data-at2x="admin_uploads/<?php echo $whyUs_row['image_name']; ?>" style="max-height:85px"/>
</div>
<h3><?php echo $whyUs_row['title']; ?></h3>
<div style="height:60px"><p><?php echo $whyUs_row['description']; ?></p></div>
<a class="big-link-1" href="services.html">Read more</a>
</div>
</div>
<?php endwhile;?>
</div>
</div>
</div>
<!-- Latest work -->
<div class="work-container">
<div class="container">
<div class="row">
<div class="col-sm-12 work-title wow fadeIn">
<h2>Our Latest Work</h2>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<div class="work wow fadeInUp">
<img src="assets/img/portfolio/work1.jpg" alt="Lorem Website" data-at2x="assets/img/portfolio/work1.jpg">
<h3>Lorem Website</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor...</p>
<div class="work-bottom">
<a class="big-link-2 view-work" href="assets/img/portfolio/work1.jpg"><i class="fa fa-search"></i></a>
<a class="big-link-2" href="portfolio.html"><i class="fa fa-link"></i></a>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="work wow fadeInDown">
<img src="assets/img/portfolio/work2.jpg" alt="Ipsum Logo" data-at2x="assets/img/portfolio/work2.jpg">
<h3>Ipsum Logo</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor...</p>
<div class="work-bottom">
<a class="big-link-2 view-work" href="assets/img/portfolio/work2.jpg"><i class="fa fa-search"></i></a>
<a class="big-link-2" href="portfolio.html"><i class="fa fa-link"></i></a>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="work wow fadeInUp">
<img src="assets/img/portfolio/work3.jpg" alt="Dolor Prints" data-at2x="assets/img/portfolio/work3.jpg">
<h3>Dolor Prints</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor...</p>
<div class="work-bottom">
<a class="big-link-2 view-work" href="assets/img/portfolio/work3.jpg"><i class="fa fa-search"></i></a>
<a class="big-link-2" href="portfolio.html"><i class="fa fa-link"></i></a>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="work wow fadeInDown">
<img src="assets/img/portfolio/work4.jpg" alt="Sit Amet Website" data-at2x="assets/img/portfolio/work4.jpg">
<h3>Sit Amet Website</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor...</p>
<div class="work-bottom">
<a class="big-link-2 view-work" href="assets/img/portfolio/work4.jpg"><i class="fa fa-search"></i></a>
<a class="big-link-2" href="portfolio.html"><i class="fa fa-link"></i></a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Testimonials -->
<div class="testimonials-container">
<div class="container">
<div class="row">
<div class="col-sm-12 testimonials-title wow fadeIn">
<h2>Testimonials</h2>
</div>
</div>
<div class="row">
<div class="col-sm-10 col-sm-offset-1 testimonial-list">
<div role="tabpanel">
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane fade in active" id="tab1">
<div class="testimonial-image">
<img src="assets/img/testimonials/1.jpg" alt="" data-at2x="assets/img/testimonials/1.jpg">
</div>
<div class="testimonial-text">
<p>
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et.
Lorem ipsum dolor sit amet, consectetur..."<br>
<a href="#">Lorem Ipsum, dolor.co.uk</a>
</p>
</div>
</div>
<div role="tabpanel" class="tab-pane fade" id="tab2">
<div class="testimonial-image">
<img src="assets/img/testimonials/2.jpg" alt="" data-at2x="assets/img/testimonials/2.jpg">
</div>
<div class="testimonial-text">
<p>
"Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip
ex ea commodo consequat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit
lobortis nisl ut aliquip ex ea commodo consequat..."<br>
<a href="#">Minim Veniam, nostrud.com</a>
</p>
</div>
</div>
<div role="tabpanel" class="tab-pane fade" id="tab3">
<div class="testimonial-image">
<img src="assets/img/testimonials/3.jpg" alt="" data-at2x="assets/img/testimonials/3.jpg">
</div>
<div class="testimonial-text">
<p>
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et.
Lorem ipsum dolor sit amet, consectetur..."<br>
<a href="#">Lorem Ipsum, dolor.co.uk</a>
</p>
</div>
</div>
<div role="tabpanel" class="tab-pane fade" id="tab4">
<div class="testimonial-image">
<img src="assets/img/testimonials/1.jpg" alt="" data-at2x="assets/img/testimonials/1.jpg">
</div>
<div class="testimonial-text">
<p>
"Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip
ex ea commodo consequat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit
lobortis nisl ut aliquip ex ea commodo consequat..."<br>
<a href="#">Minim Veniam, nostrud.com</a>
</p>
</div>
</div>
</div>
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active">
<a href="#tab1" aria-controls="tab1" role="tab" data-toggle="tab"></a>
</li>
<li role="presentation">
<a href="#tab2" aria-controls="tab2" role="tab" data-toggle="tab"></a>
</li>
<li role="presentation">
<a href="#tab3" aria-controls="tab3" role="tab" data-toggle="tab"></a>
</li>
<li role="presentation">
<a href="#tab4" aria-controls="tab4" role="tab" data-toggle="tab"></a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<?php include 'footer.php'; ?>
<!-- Javascript -->
<script src="assets/js/jquery-1.11.1.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/js/bootstrap-hover-dropdown.min.js"></script>
<script src="assets/js/jquery.backstretch.min.js"></script>
<script src="assets/js/wow.min.js"></script>
<script src="assets/js/retina-1.1.0.min.js"></script>
<script src="assets/js/jquery.magnific-popup.min.js"></script>
<script src="assets/flexslider/jquery.flexslider-min.js"></script>
<script src="assets/js/jflickrfeed.min.js"></script>
<script src="assets/js/masonry.pkgd.min.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script src="assets/js/jquery.ui.map.min.js"></script>
<script src="assets/js/scripts.js"></script>
</body>
</html>