-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.php
351 lines (199 loc) · 12.3 KB
/
contact.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
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
348
349
350
351
<!DOCTYPE html>
<html lang="en-US"
prefix="og: https://ogp.me/ns#" >
<?php include("headtag.php");
require("connection.php"); ?>
<body class="page-template page-template-contact-page page-template-contact-page-php page page-id-1452 qode-quick-links-1.0 qode-title-hidden qode-theme-ver-12.1.1 qode-theme-bridge wpb-js-composer js-comp-ver-6.0.5 vc_responsive" itemscope itemtype="http://schema.org/WebPage">
<!-- Clickcease.com tracking-->
<script type="text/javascript">
var script = document.createElement("script");
script.async = true; script.type = "text/javascript";
var target = 'https://www.clickcease.com/monitor/stat.js';
script.src = target;
var elem = document.head;
elem.appendChild(script);
</script>
<noscript><a href="https://www.clickcease.com" rel="nofollow"><img src="https://monitor.clickcease.com/stats/stats.aspx" alt="ClickCease"/></a></noscript>
<!-- Clickcease.com tracking-->
<div class="wrapper">
<div class="wrapper_inner">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-112462302-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-112462302-1');
</script>
<!-- End Global site tag (gtag.js) - Google Analytics -->
<?php include("header.php"); ?>
<a id='back_to_top' href='#'>
<span class="fa-stack">
<i class="fa fa-arrow-up" style=""></i>
</span>
</a>
<div class="content ">
<div class="content_inner ">
<div class="container">
<div class="container_inner default_template_holder clearfix" >
<div class="contact_detail">
<div class="contact_info">
<div class="vc_row wpb_row section vc_row-fluid " style=' text-align:left;'><div class=" full_section_inner clearfix"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper"> <div class="vc_empty_space" style="height: 100px" ><span
class="vc_empty_space_inner">
<span class="empty_space_image" ></span>
</span></div>
</div></div></div><div class="wpb_column vc_column_container vc_col-sm-3"><div class="vc_column-inner"><div class="wpb_wrapper">
<div class="wpb_text_column wpb_content_element ">
<div class="wpb_wrapper">
<h3>Our Office</h3>
</div>
</div> <div class="separator transparent " style="margin-top: 6px;margin-bottom: 6px;"></div>
<div class="wpb_raw_code wpb_content_element wpb_raw_html" >
<div class="wpb_wrapper">
<p>PHONE: <a href="tel:16048360181" onclick="gtag('event', 'contact', { event_category: 'Mobile Calls', event_action: 'call'});">604-836-0181</a></p>
</div>
</div>
<div class="wpb_text_column wpb_content_element ">
<div class="wpb_wrapper">
<p><span style="font-weight: 400;">120 – 2055 Commercial Drive</span></p>
<p><span style="font-weight: 400;">Vancouver, BC</span></p>
<p><span style="font-weight: 400;"> V5N 0C7</span></p>
</div>
</div>
<div class="wpb_raw_code wpb_content_element wpb_raw_html" >
<div class="wpb_wrapper">
<a href="mailto:[email protected]" onclick="gtag('event', 'contact', { event_category: 'Inquiries', event_action: 'email'});">[email protected]</a>
</div>
</div>
<div class="wpb_text_column wpb_content_element ">
<div class="wpb_wrapper">
<p><a href="https://www.yelp.ca/biz/hall-electrical-vancouver" target="_blank" rel="noopener noreferrer"><img class="alignnone wp-image-17089" src="http://www.hallelectrical.ca/wp-content/uploads/2017/05/Hall-Electrical-yelp-reviews-300x132.png" alt="" width="266" height="117" srcset="http://www.hallelectrical.ca/wp-content/uploads/2017/05/Hall-Electrical-yelp-reviews-300x132.png 300w, http://www.hallelectrical.ca/wp-content/uploads/2017/05/Hall-Electrical-yelp-reviews-500x221.png 500w, http://www.hallelectrical.ca/wp-content/uploads/2017/05/Hall-Electrical-yelp-reviews.png 504w" sizes="(max-width: 266px) 100vw, 266px" /></a></p>
<p><a href="https://www.facebook.com/hallelectricalvancouver/reviews/" target="_blank" rel="noopener noreferrer"><img class="alignnone wp-image-17090" src="http://www.hallelectrical.ca/wp-content/uploads/2017/05/Hell-Electrical-Facebook-Reviews-300x139.jpg" alt="" width="261" height="121" /></a></p>
<p><a href="https://goo.gl/Wxc4K4" target="_blank" rel="noopener noreferrer"><img class="alignnone size-full wp-image-17091" src="http://www.hallelectrical.ca/wp-content/uploads/2018/07/Review_Us_on_Google-border.jpg" alt="" width="255" /></a></p>
</div>
</div> <div class="separator transparent " style="margin-top: 6px;margin-bottom: 6px;"></div>
</div></div></div><div class="wpb_column vc_column_container vc_col-sm-9"><div class="vc_column-inner"><div class="wpb_wrapper">
<div class="wpb_text_column wpb_content_element ">
<div class="wpb_wrapper">
<h2>Contact Us</h2>
</div>
<div class="screen-reader-response"></div>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
<label for="">First Name</label><br>
<input type="text" name="your-firstname" id=""><br>
<label for=""> Last Name</label><br>
<input type="text" name="your-lastname" id=""><br>
<label for=""> EmailName</label><br>
<input type="text" name="your-email" id=""><br>
<label for="">Mobile No</label><br>
<input type="text" name="tel-248" id=""><br>
<label for="">Massage</label><br>
<input type="text" name="your-message" id=""><br>
<button type="submit" name="submit">Submit Query</button>
</form>
<?php
// Auth --> Swapnil
// PHP Version --> 7.4.3
if(isset($_POST['submit'])) {
$first_name = $_POST['your-firstname'];
$last_name = $_POST['your-lastname'];
$phone_no = $_POST['tel-248'];
$email_ad = $_POST['your-email'];
$msg_user = $_POST['your-message'];
$insert_query = "INSERT INTO `Contact`(`first_name`, `last_name`, `email`, `phone`, `message`) VALUES ('$first_name','$last_name','$email_ad','$phone_no','$msg_user')";
$query = mysqli_query($con, $insert_query);
if($query) {
echo "<script>alert('Message Sent');</script>";
} else {
echo "<script>alert('Internal Server Error');</script>";
}
}
?>
</div></div></div></div><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper"></div></div></div></div></div><div class="vc_row wpb_row section vc_row-fluid " style=' text-align:left;'><div class=" full_section_inner clearfix"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper"> <div class="vc_empty_space" style="height: 40px" ><span
class="vc_empty_space_inner">
<span class="empty_space_image" ></span>
</span></div>
<div class="wpb_text_column wpb_content_element ">
<div class="wpb_wrapper">
<div id="wk-grid886" class="uk-grid-width-1-1 uk-grid-width-large-1-5 uk-grid-width-xlarge-1-5 uk-grid uk-grid-match uk-text-center bottom-boxes" data-uk-grid-match="{target:'> div > .uk-panel', row:true}" data-uk-grid-margin >
<div>
<div class="uk-panel">
<h3 class="uk-panel-title">
<a class="uk-link-reset" href="/electrical-car-charger-installation-vancouver/">EV CHARGERS</a>
</h3>
<div class="uk-margin uk-text-center"><div class="uk-overlay uk-overlay-hover "><img src="/wp-content/plugins/widgetkit/cache/residential-solar-panel-installation-feature-f8a3e3a75075b1462782c2a4bdda0238.jpg" class=" uk-overlay-scale" alt="EV CHARGERS" width="150" height="100"><a class="uk-position-cover" href="/electrical-car-charger-installation-vancouver/" title="EV CHARGERS"></a></div></div>
</div>
</div>
<div>
<div class="uk-panel">
<h3 class="uk-panel-title">
<a class="uk-link-reset" href="/electrical-panel-upgrades-electrical-service-upgrades/">RESIDENTIAL</a>
</h3>
<div class="uk-margin uk-text-center"><div class="uk-overlay uk-overlay-hover "><img src="/wp-content/plugins/widgetkit/cache/Elementary-20-6ab9f0b0231342e1df77e441ee4f64eb.jpg" class=" uk-overlay-scale" alt="RESIDENTIAL" width="150" height="100"><a class="uk-position-cover" href="/electrical-panel-upgrades-electrical-service-upgrades/" title="RESIDENTIAL"></a></div></div>
</div>
</div>
<div>
<div class="uk-panel">
<h3 class="uk-panel-title">
<a class="uk-link-reset" href="/services/commercial-electrical/">COMMERCIAL</a>
</h3>
<div class="uk-margin uk-text-center"><div class="uk-overlay uk-overlay-hover "><img src="/wp-content/plugins/widgetkit/cache/AuraOpening-JR-171208-015_Credit-Joern-Rohde-cc61a6ef8bdb3ac3e95568ca5fc387ee.jpg" class=" uk-overlay-scale" alt="COMMERCIAL" width="150" height="100"><a class="uk-position-cover" href="/services/commercial-electrical/" title="COMMERCIAL"></a></div></div>
</div>
</div>
<div>
<div class="uk-panel">
<h3 class="uk-panel-title">
<a class="uk-link-reset" href="/service-maintenance/">SERVICE & MAINTENANCE</a>
</h3>
<div class="uk-margin uk-text-center"><div class="uk-overlay uk-overlay-hover "><img src="/wp-content/plugins/widgetkit/cache/farmhouse-staircase-fcd96c55dfc8b7f4ad49c6544ac03ee6.jpg" class=" uk-overlay-scale" alt="SERVICE & MAINTENANCE" width="150" height="100"><a class="uk-position-cover" href="/service-maintenance/" title="SERVICE & MAINTENANCE"></a></div></div>
</div>
</div>
<div>
<div class="uk-panel">
<h3 class="uk-panel-title">
<a class="uk-link-reset" href="/careers/">CAREERS</a>
</h3>
<div class="uk-margin uk-text-center"><div class="uk-overlay uk-overlay-hover "><img src="/wp-content/plugins/widgetkit/cache/Careers-Icon-e8f0cd7a13240f54c503b2f8b566dbcb.jpg" class=" uk-overlay-scale" alt="CAREERS" width="150" height="100"><a class="uk-position-cover" href="/careers/" title="CAREERS"></a></div></div>
</div>
</div>
</div>
<script>
(function($){
// get the images of the gallery and replace it by a canvas of the same size to fix the problem with overlapping images on load.
$('img[width][height]:not(.uk-overlay-panel)', $('#wk-grid886')).each(function() {
var $img = $(this);
if (this.width == 'auto' || this.height == 'auto' || !$img.is(':visible')) {
return;
}
var $canvas = $('<canvas class="uk-responsive-width"></canvas>').attr({width:$img.attr('width'), height:$img.attr('height')}),
img = new Image,
release = function() {
$canvas.remove();
$img.css('display', '');
release = function(){};
};
$img.css('display', 'none').after($canvas);
$(img).on('load', function(){ release(); });
setTimeout(function(){ release(); }, 1000);
img.src = this.src;
});
})(jQuery);
</script>
</div>
</div> <div class="vc_empty_space" style="height: 40px" ><span
class="vc_empty_space_inner">
<span class="empty_space_image" ></span>
</span></div>
</div></div></div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include("footer.php"); ?>
</div>
</div>
<?php include("jsscript.php"); ?>
</body>
</html>