-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.php
More file actions
347 lines (316 loc) · 11.6 KB
/
contact.php
File metadata and controls
347 lines (316 loc) · 11.6 KB
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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
<?php
// Free html5 templates : www.zerotheme.com
$text = "<span style='color:red; font-size: 35px; line-height: 40px; magin: 10px;'>Error! Please try again.</span>";
if(isset($_POST['submitcontact']))
{
$name=$_POST['name'];
$email=$_POST['email'];
$subject=$_POST['subject'];
$message=$_POST['message'];
$to = "youremail@gmail.com";
$subject = "Zerotheme - Testing Contact Form";
$message = " Name: " . $name ."\r\n Email: " . $email . "\r\n Message:\r\n" . $message;
$from = "Zerotheme.com";
$headers = "From:" . $from . "\r\n";
$headers .= "Content-type: text/plain; charset=UTF-8" . "\r\n";
if(@mail($to,$subject,$message,$headers))
{
$text = "<span style='color:blue; font-size: 35px; line-height: 40px; margin: 10px;'>Your Message was sent successfully !</span>";
}
}
?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<!-- Basic Page Needs
================================================== -->
<meta charset="utf-8">
<title>zDominos - Free Restaurant Html5 Templates</title>
<meta name="description" content="Free Responsive Html5 Css3 Templates | zerotheme.com">
<meta name="author" content="www.zerotheme.com">
<!-- Mobile Specific Metas
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- CSS
================================================== -->
<link rel="stylesheet" href="css/zerogrid.css">
<link rel="stylesheet" href="css/menu.css">
<link rel="stylesheet" href="css/style.css">
<!-- Custom Fonts -->
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!-- Owl Carousel Assets -->
<link href="owl-carousel/owl.carousel.css" rel="stylesheet">
<link href="owl-carousel/owl.theme.css" rel="stylesheet">
<script src="js/jquery-2.1.1.js"></script>
<script src="js/script.js"></script>
<!--[if lt IE 8]>
<div style=' clear: both; text-align:center; position: relative;'>
<a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
<img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
</a>
</div>
<![endif]-->
<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<script src="js/css3-mediaqueries.js"></script>
<![endif]-->
</head>
<body>
<div class="wrap-body">
<!--////////////////////////////////////Header-->
<!--Top-->
<div id="top">
<div class="zerogrid">
<div class="row">
<div class="col-2-3">
<ul class="list-inline top-link link">
<li><i class="fa fa-map-marker"></i> 9876 Diamond hwy, California, US</li>
<li><a href="contact.html"><i class="fa fa-phone"></i> 123 456 7890</a></li>
<li><i class="fa fa-clock-o"></i> Mo-Fr 11:00-00:00, Sa-Sa 15:00-00:00</li>
</ul>
</div>
<div class="col-1-3">
<ul class="list-inline top-social">
<li><a href="#"><i class="fa fa-facebook"></i></a></li>
<li><a href="#"><i class="fa fa-twitter"></i></a></li>
<li><a href="#"><i class="fa fa-pinterest"></i></a></li>
<li><a href="#"><i class="fa fa-google-plus-square"></i></a></li>
<li><a href="#"><i class="fa fa-youtube"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
<header class="sub-header">
<nav class="wrap-menu">
<div class="zerogrid">
<div id="menu-trigger">Menu</div>
<ul id="menu" style="display: none;">
<li><a href="index.html">Home</a></li>
<li>
<a href="#">Categories <i class="fa fa-chevron-down"></i></a>
<ul style="z-index:999;">
<li>
<a href="#">Item 01</a>
</li>
<li>
<a href="#">Item 02</a>
</li>
<li>
<a href="#">Item 03 <i class="fa fa-chevron-right" style="margin: 2px 3px 2px;"></i></a>
<ul>
<li><a href="#">Item 31</a></li>
<li><a href="#">Item 32</a></li>
</ul>
</li>
<li>
<a href="#">Item 04 <i class="fa fa-chevron-right" style="margin: 2px 3px 2px;"></i></a>
<ul>
<li><a href="#">Item 41</a></li>
<li><a href="#">Item 42</a></li>
<li><a href="#">Item 43</a></li>
<li><a href="#">Item 44</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="single.html">About</a></li>
<li><a href="archive.html">Blog</a></li>
<li><a href="contact.html">Contact</a></li>
<li style="float:right !important">
<form method="get" action="/search" id="search" class="f-right">
<input name="q" type="text" size="40" placeholder="Search..." />
</form>
</li>
</ul>
</div>
</nav>
</header>
<!--////////////////////////////////////Container-->
<section id="container">
<div class="wrap-container zerogrid">
<div class="crumbs">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
<!-----------------Main-Content-------------------->
<div id="main-content">
<div class="wrap-content">
<div class="row">
<h3 class="t-center" style="font-size: 30px;margin: 10px 0 30px">Contact Form</h3>
<!--Start Map-->
<div id="map" style="height: 450px;"></div>
<!--End Map-->
<!--Warning-->
<center><?php echo $text;?></center>
<!---->
<div id="contact_form" >
<form name="form1" id="ff" method="post" action="contact.php">
<label class="row">
<div class="col-1-3">
<div class="wrap-col">
<input type="text" name="name" id="name" placeholder="Enter name" required="required" />
</div>
</div>
<div class="col-1-3">
<div class="wrap-col">
<input type="email" name="email" id="email" placeholder="Enter email" required="required" />
</div>
</div>
<div class="col-1-3">
<div class="wrap-col">
<input type="text" name="subject" id="subject" placeholder="Subject" required="required" />
</div>
</div>
</label>
<label class="row">
<div class="wrap-col">
<textarea name="message" id="message" class="form-control" rows="4" cols="25" required="required"
placeholder="Message"></textarea>
</div>
</label>
<center><input class="button sendButton" type="submit" name="Submit" value="Submit"></center>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<!--////////////////////////////////////Footer-->
<footer>
<div class="top-footer">
<div id="map" style="height: 270px;"></div>
</div>
<div class="zerogrid">
<div class="wrap-footer">
<div class="row">
<div class="col-1-3 col-footer-1">
<div class="wrap-col">
<h3 class="widget-title">About Us</h3>
<p>Ut volutpat consectetur aliquam. Curabitur auctor in nis ulum ornare. Sed consequat, augue condimentum fermentum gravida, metus elit vehicula dui. Curabitur auctor in nis ulum ornare. Sed consequat, augue condimentum fermentum</p>
<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque la udantium</p>
</div>
</div>
<div class="col-1-3 col-footer-2">
<div class="wrap-col">
<h3 class="widget-title">Recent Post</h3>
<ul>
<li><a href="#">MOST VISITED COUNTRIES</a></li>
<li><a href="#">5 PLACES THAT MAKE A GREAT HOLIDAY</a></li>
<li><a href="#">PEBBLE TIME STEEL IS ON TRACK TO SHIP IN JULY</a></li>
<li><a href="#">STARTUP COMPANY’S CO-FOUNDER TALKS ON HIS NEW PRODUCT</a></li>
</ul>
</div>
</div>
<div class="col-1-3 col-footer-3">
<div class="wrap-col">
<h3 class="widget-title">Subcribe</h3>
<p>Never missed any post published in our site. Subscribe to our daly newsletter now.</p>
<p>Email address:</p>
<form action="#" method="post">
<input type="text" name="your-name" value="" size="40" placeholder="Your Email" />
<input type="submit" value="SUBSCRIBE" class="button button-subcribe" />
</form>
</div>
</div>
</div>
</div>
</div>
<div class="copyright">
<div class="zerogrid">
<div class="wrapper">
Copyright @ zDominos - <a href="http://www.zerotheme.com" target="_blank" rel="nofollow">Free Html5 Templates</a> Designed by ZEROTHEME
<ul class="quick-link">
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Terms of Use</a></li>
</ul>
</div>
</div>
</div>
</footer>
<!-- Js Menu -->
<script src="js/jquery183.min.js"></script>
<script type="text/javascript">
$(function() {
if ($.browser.msie && $.browser.version.substr(0,1)<7)
{
$('li').has('ul').mouseover(function(){
$(this).children('ul').css('visibility','visible');
}).mouseout(function(){
$(this).children('ul').css('visibility','hidden');
})
}
/* Mobile */
$("#menu-trigger").on("click", function(){
$("#menu").slideToggle();
});
// iPad
var isiPad = navigator.userAgent.match(/iPad/i) != null;
if (isiPad) $('#menu ul').addClass('no-transition');
});
</script>
<!-- Google Map -->
<script>
var marker;
var image = 'images/map-marker.png';
function initMap() {
var myLatLng = {lat: 39.79, lng: -86.14};
// Specify features and elements to define styles.
var styleArray = [
{
featureType: "all",
stylers: [
{ saturation: -80 }
]
},{
featureType: "road.arterial",
elementType: "geometry",
stylers: [
{ hue: "#000000" },
{ saturation: 50 }
]
},{
featureType: "poi.business",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
}
];
var map = new google.maps.Map(document.getElementById('map'), {
center: myLatLng,
scrollwheel: false,
// Apply the map style array to the map.
styles: styleArray,
zoom: 7
});
var directionsDisplay = new google.maps.DirectionsRenderer({
map: map
});
// Create a marker and set its position.
marker = new google.maps.Marker({
map: map,
icon: image,
draggable: true,
animation: google.maps.Animation.DROP,
position: myLatLng
});
marker.addListener('click', toggleBounce);
}
function toggleBounce() {
if (marker.getAnimation() !== null) {
marker.setAnimation(null);
} else {
marker.setAnimation(google.maps.Animation.BOUNCE);
}
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB7V-mAjEzzmP6PCQda8To0ZW_o3UOCVCE&callback=initMap" async defer></script>
</div>
</body></html>