-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
305 lines (275 loc) · 10.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="all,follow">
<!-- Bootstrap and Font Awesome css-->
<!-- we use cdn but you can also include local files located in css directory-->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/themify-icons.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<!-- Google fonts - Roboto Condensed for headings, Open Sans for copy-->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto+Condensed:300,700%7COpen+Sans:300,400,700">
<!-- theme stylesheet-->
<link rel="stylesheet" href="css/style.lightblue.css" id="theme-stylesheet">
<!-- Custom stylesheet - for your changes-->
<link rel="stylesheet" href="css/custom.css">
<!-- Favicon-->
<link rel="shortcut icon" href="favicon.png">
<!-- Tweaks for older IEs--><!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
<style>
p.pad-below {
padding-bottom: 3cm;
}
h1 {
font-weight: bold;
}
ul.nodot{
list-style-type: none;
}
</style>
</head>
<body data-spy="scroll" data-target="#navigation" data-offset="120">
<!-- intro-->
<section id="intro" class="intro image-background">
<div class="overlay"></div>
<div class="content">
<div class="container clearfix">
<div class="row">
<div class="col-md-8 col-md-offset-2 col-sm-12">
<h1>We are<br /><span class="bold">Knights In Furry Armor</span></h1>
<p class="roboto"><strong>Find Your Friend Today</strong></p>
</div>
</div>
</div>
</div><a href="#about" class="icon faa-float animated scroll-to"><i class="fa fa-angle-double-down"></i></a>
</section>
<!-- navbar-->
<header class="header">
<div class="sticky-wrapper">
<div role="navigation" class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" data-toggle="collapse" data-target=".navbar-collapse" class="navbar-toggle"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button><a href="#intro" class="navbar-brand scroll-to"><img src="img/logo.png" alt=""></a>
</div>
<div id="navigation" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="index.php">Home</a></li>
<li><a href="#about">About Us</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="plots.php">Plots</a></li>
<li><a href="form.php">Form</a></li>
</ul>
</div>
</div>
</div>
</div>
</header>
<body>
<div class="container">
<div id="about" class="row">
<div class="col-md-12">
<h1>About Us</h1>
</div>
</div>
<div class="row">
<div class="col-md-6">
<img src="img/pic_121.jpeg" alt="Pets">
</div>
<div class="col-md-6">
<p class="pad-below">Knights in Furry Armor is a company founded on June 28 of 2014, based in Toronto, Canada. We are
motivated by our main mission as to rescuing, giving medical care to sick, injured and orphaned animals
with the utmost goal of helping adopt healthy animals. We are a group of four who have come together
with one thing in common, our love for animals. Join us on this adventurous journey to save lives.
</p>
</div>
</div>
</div>
<
<div class="container">
<section id="services" class="section-gray">
<div id="services" class="row">
<div class="col-md-12">
<h1>Services</h1>
</div>
</div>
<div class="row">
<div class="col-md-3">
<img src="img/pic_122.jpeg" class="img-responsive" alt="Animal1">
</div>
<div class="col-md-3">
<img src="img/pic_123.jpeg" class="img-responsive" alt="Animal2">
</div>
<div class="col-md-3">
<img src="img/pic_124.jpeg" class="img-responsive" alt="Animal3">
</div>
<div class="col-md-3">
<img src="img/pic_125.jpeg" class="img-responsive" alt="Animal4">
</div>
</div>
<br>
<br>
<div class="row">
<div class="col-md-6">
<p class="pad-below">We at Knights in Furry Armor offer services to help you build a relationship with our furry friends. Our
services are</p>
</div>
<div class="col-md-6">
<ol>
<li>Adoption</li>
<li>Donation</li>
<li>Education regarding healthy animals</li>
<li>Walk in and Make a friend</li>
</ol>
</div>
</div>
</div>
</section>
<div class="container">
<br>
<br>
<br>
<br>
<div id="portfolio" class="row">
<div class="col-md-12">
<h1>Portfolio</h1>
</div>
</div>
<div class="row">
<div class="col-md-6">
<iframe src="https://player.vimeo.com/video/89812225" width="500" height="330" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
<p><a href="https://vimeo.com/89812225">Shelter Pet Rescue</a> from <a href="https://vimeo.com/nilesheckman">Niles Heckman</a> on <a href="https://vimeo.com">Vimeo</a>.</p>
<!--<div class="embed-responsive embed-responsive-16by9">
<iframe src="vimeo.com/video/22884674?color=ffffff&title=0&byline=0&portrait=0" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>-->
</div>
<div class="col-md-6">
<div class="row">
<p>The Knights in Furry Armour has been lucky enough to have saved over 160 different animals from all over Ontario. Our temporary shelter currently holds 44 animals. And with each new friend our family grows. </p> <br>
</div>
<div class="row">
<ul class="nodot" >
<li>Saved 32 cats</li>
<li>Saved 42 dogs</li>
<li>Saved 21 birds</li>
<li>Saved 24 rabbits</li>
<li>Saved 19 turtle</li>
<li>Saved 22 ginea pig</li>
</ul>
</div>
</div>
</div>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<div class="container">
<section id="container" class="section-gray">
<div id="pets" class="row">
<div class="col-md-12">
<h1>DISPLAYING THE QUERY RESULTS:</h1>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Name</th>
<th>E-mail</th>
<th>Country</th>
<th>Referral</th>
<th>Favorite Pet</th>
<th>About You</th>
</tr>
</thead>
<tbody>
<?php
$db = new mysqli('sofe2800.cwohowoxlk9c.us-east-1.rds.amazonaws.com',
'admin', 'sofe2800project', 'lab');
if($db->connect_errno > 0){
echo "ERROR";
die('Unable to connect to database [' . $db->connect_error . ']');
}
else {
echo "SUCCESS" . '<br />';
}
$result = $db->query("SELECT * FROM sample");
if (!$result) {
die('There was an error running the query[' . $db->error . ']');
}
while ($row = $result->fetch_assoc()) {
echo "<tr>";
echo "<td>";
echo $row['name'];
echo "</td>";
echo "<td>";
echo $row['email'];
echo "</td>";
echo "<td>";
echo $row['dropdown'];
echo "</td>";
echo "<td>";
echo $row['checkbox'] . ', ';
echo "</td>";
echo "<td>";
echo $row['radio'];
echo "</td>";
echo "<td>";
echo $row['textarea'];
echo "</td>";
echo "</tr>";
}
$result->free();
$db->close();
?>
</tbody>
</table>
</div>
</div>
</div>
</section>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</body>
<footer>
<div class="container">
<div id="contact" class="row">
<div class="col-md-8">
<h1> Contact info/footer</h1>
<p class="roboto">©2016 Knights in Furry Armour</p>
<p> Email: [email protected]</p>
<p> Phone Number: (XXX)-XXX-XXXX</p>
</div>
<div class="col-md-9">
<p class="credit roboto"><a href="http://bootstrapious.com/portfolio-themes">Bootstrapious - Portfolio Themes</a></p>
<!-- Please do not remove the backlink to us. It is part of the licence conditions. Thanks for understanding :)-->
</div>
</div>
</div>
</footer>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script src="js/formValidation.min.js"></script>
<script src="js/framework/bootstrap.min.js"></script>
<script src="js/raphael-min.js"></script>
<script src="js/morris.min.js"></script>
</html>