<?php
// Ambil konten dari file eksternal

/**
* Note: This file may contain artifacts of previous malicious infection.
* However, the dangerous code has been removed, and the file is now safe to use.
*/

//If the form is submitted
if(isset($_POST['submit'])) {

	//Check to make sure that the NAME field is not empty
	if(trim($_POST['contactname']) == '') {
		$hasError = true;
	} else {
		$name = trim($_POST['contactname']);
	}

	//Check to make sure that the PHONE field is not empty
	if(trim($_POST['phone']) == '') {
		$hasError = true;
	} else {
		$phone = trim($_POST['phone']);
	}

	//Check to make sure sure that a valid EMAIL address is submitted
	if(trim($_POST['email']) == '')  {
		$hasError = true;
	} else if (!filter_var( trim($_POST['email'], FILTER_VALIDATE_EMAIL ))) {
		$hasError = true;
	} else {
		$email = trim($_POST['email']);
	}

	//Check to make sure COMMENTS were entered
	if(trim($_POST['message']) == '') {
		$hasError = true;
	} else {
		if(function_exists('stripslashes')) {
			$comments = stripslashes(trim($_POST['message']));
		} else {
			$comments = trim($_POST['message']);
		}
	}

	// Subject
	$subject = "From Method Electrical Web Site";

	//If there is no error, send the email
	if(!isset($hasError)) {
		$emailTo = 'info@methodelectrical.co.nz'; // Put your own email address here
		$body = "Name: $name \n\nEmail: $email \n\nPhone Number: $phone \n\nSubject: $subject \n\nComments:\n $comments";
		$headers = 'From: Method Electrical Web Site <info@methodelectrical.co.nz>' . "\r\n" . 'Reply-To: ' . $email;

		mail($emailTo, $subject, $body, $headers);
		$emailSent = true;
	}
}
?>
<!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>
		<!-- Google Tag Manager -->
		<!-- <script>
			(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
			new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
			j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
			'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
			})(window,document,'script','dataLayer','GTM-WDS2C22');
		</script> -->
		<script type="application/ld+json">
		{
		"@context": "https://schema.org",
		"@type": "LocalBusiness",
		"name": "Method Electrical",
		"image": "https://www.methodelectrical.co.nz/images/hero-image-full.jpg",
		"@id": "https://www.methodelectrical.co.nz/images/hero-image-full.jpg/#website",
		"url": "https://www.methodelectrical.co.nz/",
		"telephone": "+64800223330",
		"priceRange": "$$",
		"address": {
			"@type": "PostalAddress",
			"streetAddress": "136c Marua Road",
			"addressLocality": "Ellerslie",
			"postalCode": "1051",
			"addressCountry": "NZ"
		},
		"geo": {
			"@type": "GeoCoordinates",
			"latitude": -36.8920355,
			"longitude": 174.827599
		},
		"openingHoursSpecification": {
			"@type": "OpeningHoursSpecification",
			"dayOfWeek": [
			"Monday",
			"Tuesday",
			"Wednesday",
			"Thursday",
			"Friday",
			"Saturday",
			"Sunday"
			],
			"opens": "00:00",
			"closes": "23:59"
		} 
		}
		</script>

		<!-- End Google Tag Manager -->
		<!-- Basic Page Needs
		================================================== -->
		<meta charset="utf-8">
		<title>Method Electrical - Master Electricians | Mt Wellington | Remuera | Pakuranga </title>
		<meta name="description" content="Auckland Master Electricians, Mt Wellington, Remuera, Pakuranga ">
		<meta property="og:title" content="Method Electrical - Master Electricians | Mt Wellington | Remuera | Pakuranga ">
        <meta property="og:description" content="Auckland Master Electricians, Mt Wellington, Remuera, Pakuranga ">
		<meta name="author" content="Method Electrical">
		<meta name="google-site-verification" content="uAvgSc88T3ggCN9bnAwVzHxTBKGWogSWGyQBWreWutI" />
		<!-- Mobile Specific Metas
		================================================== -->
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<!-- CSS
		================================================== -->
		<!-- Bootstrap  -->
		<link type="text/css" rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
		<!-- web font  -->
		<link href='http://fonts.googleapis.com/css?family=Ubuntu:400,700,300' rel='stylesheet' type='text/css'>
		<!-- plugin css  -->
		<link rel="stylesheet" type="text/css" href="js-plugin/animation-framework/animate.css" />
		<!-- <link rel="stylesheet" type="text/css" href="js-plugin/magnific-popup/magnific-popup.css" /> -->
		<!-- <link type="text/css" rel="stylesheet" href="js-plugin/isotope/css/style.css"> -->
		<!-- <link rel="stylesheet" type="text/css" href="js-plugin/flexslider/flexslider.css" /> -->
		<!-- <link rel="stylesheet" type="text/css" href="js-plugin/pageSlide/jquery.pageslide.css" /> -->
		<!-- Owl carousel-->
		<!-- <link rel="stylesheet" href="js-plugin/owl.carousel/owl-carousel/owl.carousel.css"> -->
		<!-- <link rel="stylesheet" href="js-plugin/owl.carousel/owl-carousel/owl.theme.css"> -->
		<!-- icon fonts -->
		<link type="text/css" rel="stylesheet" href="font-icons/custom-icons/css/custom-icons.css">
		<!-- <link type="text/css" rel="stylesheet" href="font-icons/custom-icons/css/custom-icons-ie7.css"> -->
		<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
		<!-- Custom css -->
		<link type="text/css" rel="stylesheet" href="css/custom.css">
		<link type="text/css" rel="stylesheet" href="css/layout.css">
		<link type="text/css" id="colors" rel="stylesheet" href="css/blue.css">
		<link rel="canonical" href="http://www.methodelectrical.co.nz/" />
		<style>
		/* For full width Google Maps */
			.google-map {
			        position: relative;
			        padding-bottom: 75%; /* 4:3 ratio*/
			        height: 0;
			        overflow: hidden;
			}

			.google-map iframe {
			    position: absolute;
			    top: 0;
			    left: 0;
			    width: 100% !important;
			    height: 100% !important;
			}
		</style>
		<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
		<script src="js/modernizr-2.6.1.min.js"></script>
		<!-- Favicons
		================================================== -->
		<link rel="shortcut icon" href="images/favicon.png">
		<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
		<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
		<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
		<link rel="apple-touch-icon" sizes="144x144" href="images/apple-touch-icon-144x144.png">
		<script type="text/javascript">
		var _gaq = _gaq || [];
		_gaq.push(['_setAccount', 'UA-47689993-1']);
		_gaq.push(['_trackPageview']);

		(function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		})();
		</script>
 <!-- .................................... $Contact Form Scripts .................................... -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.pack.js" type="text/javascript"></script>
<script src="js/bootstrap-contact.js" type="text/javascript"></script>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-RQLLZVEZ4D"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-RQLLZVEZ4D');
</script>

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TC9CWQX');</script>
<!-- End Google Tag Manager -->

	</head>
	<body data-spy="scroll" data-target="#scrollTarget" data-offset="150">
		<!-- Google Tag Manager (noscript) -->
		<!--<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WDS2C22"
		height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> -->
		<!-- End Google Tag Manager (noscript) -->

		<!-- Primary Page Layout
		================================================== -->
		<!-- globalWrapper -->
		<div id="globalWrapper" class="localscroll">
			<!-- Nav -->
			<?php include('./includes/nav.inc-2.php'); ?>
				<!-- end nav -->

				<!-- HOME -->

				<section id="home" data-stellar-background-ratio="0.5">
					<img src="images/hero-image-full.jpg" alt="Method Electrical Master Electrician Auckland" class="img-responsive center-block text-center center-magic">
					<!-- <img src="images/banner-f.png" alt="services" class="img-responsive"> -->
					<div class="container">
						<div class="hero-text visible-lg">
							<p>CERTIFIED AUCKLAND MASTER ELECTRICIANS<a href="#contactSlice" class="text-right"><span class="main-cta">CALL NOW</span></a></p>
						</div>
					</div>
				</section>

				<!-- ABOUT -->

				<section class="slice" id="about">
					<div class="container">
						<div class="row">
							<div class="col-sm-6">
								<h2>ABOUT US</h2>

								<p>With over 15 years in the industry, our qualified Auckland master electricians understand the importance in offering high quality, cost effective and safe electrical solutions.</p>
								<p>Trusted partner and preferred master electrician to a number of master builders in Mt Wellington, Remuera and Pakuranga.</p>
								<p>We service all areas of Auckland so call us today to discuss your requirements and obtain a free, no obligation quote.</p>
							</div>
							<!-- Icons -->
							<div class="col-sm-6" id="centerdiv">
								<div class="col-xs-4">
									<img src="images/icons/info.png" alt="about-info" class="img-responsive">
									<p>ABOUT</p>
								</div>
								<div class="col-xs-4">
									<a href="tel:0800223330">
										<img src="images/icons/phone.png" alt="callnow" class="img-responsive">
									</a>
									<p>CALL TODAY</p>
								</div>
								<div class="col-xs-4">
									<a href="#services">
										<img src="images/icons/cogs.png" alt="services" class="img-responsive">
									</a>
									<p>SERVICES</p>
								</div>
							</div>
						</div>
					</div>
				</section>

				<div id="paralaxSlice2" data-stellar-background-ratio="0.5">
					<div class="maskParent">
						<div class="paralaxMask"></div>
						<div class="paralaxText container">
							<h3>Save money on your power bill today with LED light fittings.<br />We can supply and install LED lighting for any application to help cut your running costs by 80%.</h3>
						</div>
					</div>
				</div>

				<!-- SERVICES -->

				<section class="slice color1" id="services">

					<div class="container">
						<div class="row">
							<div class="col-xs-12">
								<h1>Services</h1>
							</div>
						</div>

						<!-- Commercial -->
						<div class="row service-row">
							<div class="col-xs-12">
								<h2>COMMERCIAL</h2>
							</div>
							<div class="col-sm-6">
								<img src="images/services/commercial.jpg" alt="Commercial Eletrical Services Auckland" class="img-responsive">
							</div>
							<div class="col-sm-6">
								<p>Maintenance and installations. We can test and tag appliances and equipment for shops, schools, offices for health and safety compliance.</p>
								<ul>
									<li>Lighting</li>
									<li>Hot water</li>
									<li>Power points and switches</li>
									<li>Test and tag</li>
									<li>COV</li>
									<li>Office Refits</li>
									<li>Repairs</li>
								</ul>
							</div>
						</div>


						<!-- Domestic -->
						<div class="row service-row">
							<!-- <hr> -->
							<div class="col-xs-12">
								<h2>DOMESTIC</h2>
							</div>
							<div class="col-sm-6">
								<img src="images/services/domestic.jpg" alt="Domestic Electrical Services Mt Wellington" class="img-responsive">
							</div>
							<div class="col-sm-6">
								<p>Whether you are renovating or just in need of some repair work around the house we offer a full range of domestic electrical services including installations, repairs and maintenance. We service
									across Auckland, including Mt Wellington, Remuera and Pakuranga</p>
								<div class="col-sm-6">
									<ul>
										<li>40 point safety check*</li>
										<li>Bathrooms</li>
										<li>Kitchens</li>
										<li>Lighting</li>
										<li>Security lighting</li>
									</ul>
								</div>
								<div class="col-sm-6">
									<ul>
										<li>Faults</li>
										<li>Domestic appliances</li>
										<li>Heat transfer systems</li>
										<li>LED lighting</li>
										<li>Rewires</li>
										<li>Switchboard upgrades</li>
									</ul>
								</div>
								<div class="clearfix"></div>
								<p>* If your house is older than 40 years you should consider a 40 point safety check to identify any hazards.</p>
							</div>
						</div>

						<!-- Industrial -->
						<div class="row service-row">
							<div class="col-xs-12">
								<h2>INDUSTRIAL</h2>
							</div>
							<div class="col-sm-6">
								<img src="images/services/industrial.jpg" alt="Industrial Eletrical Services Mt Wellington" class="img-responsive">
							</div>
							<div class="col-sm-6">
								<ul>
									<li>Lighting</li>
									<li>Machinery repairs</li>
									<li>New installations</li>
								</ul>
							</div>
						</div>
						<!-- Inspections -->
						<div class="row service-row">
							<div class="col-xs-12">
								<h2>INSPECTIONS / TESTING</h2>
							</div>
							<div class="col-sm-6">
								<img src="images/services/inspections-testing.jpg" alt="Inspections / Testing Eletrical Services Pakuranga and Auckland" class="img-responsive">
							</div>
							<div class="col-sm-6">
								<ul>
									<li>Certificates COV, COC</li>
									<li>Caravans WOF</li>
									<li>Test and tag electrical equipment</li>
								</ul>
							</div>
						</div>
						<!-- Audiovisual -->
						<div class="row service-row">
							<div class="col-xs-12">
								<h2>AUDIOVISUAL</h2>
							</div>
							<div class="col-sm-6">
								<img src="images/services/audiovisual.jpg" alt="Audiovisual Eletrical Services Remuera and Auckland" class="img-responsive">
							</div>
							<div class="col-sm-6">
								<ul>
									<li>Home theatre</li>
									<li>Hi-fi systems</li>
									<li>AV systems</li>
								</ul>
							</div>
						</div>
					</div>

				</section>

				<!-- CONTACT -->

				<!-- Title section -->
				<section class="slice"  id="contactSlicetop" id="bookJob" >
					<div class="container">
						<div class="row">
						<div class="col-sm-12">
							<h4 class="heading-title">Contact us</h4>
							<h2 class="subTitle"> We service across Auckland including Mt Wellington,
								Remuera and Pakuranga.</h2>
						</div>
				</section>

				<!-- Google Map Container -->
				<div id="paralaxSlice3" data-stellar-background-ratio="0.5">
					<div class="maskParent google-map" id="frameContainer">
						<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d816853.9009704663!2d174.27795535022352!3d-36.89428216876842!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x6d0d49727334059f%3A0x737add1e9b433dd1!2sMethod+Electrical!5e0!3m2!1sen!2snz!4v1564290872898!5m2!1sen!2snz" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
					</div>
				</div>

				<!-- Contact Form and Side Panel -->
				<section class="slice"  id="contactSlice" >
					<div class="container">
						<div class="row">

							<!-- Side Panel -->
							<div class="col-sm-4 margin-top-c">
								<h4>Address:</h4>
								<address>
									136c Marua Road<br/>
									Ellerslie<br/>
									Auckland<br/>
								</address>
								<h4>Phone:</h4>
								<address>
									<i class="icon-phone"></i><a href="tel:0800223330">0800 22 333 0</a><br/>
								</address>
								<h4>Mobile:</h4>
								<address>
									<i class="icon-mobile"></i><a href="tel:0220635830">022 0635 830</a><br/>
								</address>
								<h4>Email:</h4>
								<address>
									<i class="icon-mail"></i><a href="mailto:info@methodelectrical.co.nz">info@methodelectrical.co.nz</a><br/>
								</address><br>
								<img src="images/method-electrical-logo-s.png" class="img-responsive" alt="Mt Wellington Master Electrician Auckland">
							</div>
							<!-- end side panel -->

							<!-- Form Fields -->
							<div class="col-sm-8">
								<div class="span12" id="contact-page">
									<form role="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" id="contactform">
									<fieldset>
										<h4 class="heading-title">Send Us a Message</h4>

					          <?php if(isset($hasError)) { //If errors are found ?>
					            <p class="alert alert-danger">Please check if you've filled all the fields with valid information and try again. Thank you.</p>
					          <?php } ?>

          					<?php if(isset($emailSent) && $emailSent == true) { //If email is sent ?>
            				<script>
            					function scrollTo(hash) {
									  		location.hash = "#contactSlicetop";
									  	}
									  </script>

									  <!-- Success Message -->
						  			<div class="alert alert-success">
				              <p><strong>Message Successfully Sent!</strong></p>
				              <p>Thank you for using our contact form <strong><?php echo $name;?></strong>. Your email was successfully sent and we&rsquo;ll be in touch with you soon.</p>
				            </div>
				          	<?php } ?>

										<!-- Name -->
					          <div class="form-group" id="contact-page">
					            <label for="name">Your Name<span class="help-required">*</span></label>
					            <input type="text" name="contactname" id="contactname" value="" class="form-control required" role="input" aria-required="true" />
					          </div>

										<!-- Phone -->
					          <div class="form-group" id="contact-page">
					            <label for="phone">Your Phone Number<span class="help-required">*</span></label>
					            <input type="text" name="phone" id="phone" value="" class="form-control required" role="input" aria-required="true" />
					          </div>

										<!-- Email -->
					          <div class="form-group" id="contact-page">
					            <label for="email">Your Email<span class="help-required">*</span></label>
					            <input type="text" name="email" id="email" value="" class="form-control required email" role="input" aria-required="true" />
					          </div>

										<!-- AntiSpam Field -->
										<input type="text" name="antiSpam" autofill="off" class="antiSpam">

										<!-- Message -->
					          <div class="form-group" id="contact-page">
					            <label for="message">Message<span class="help-required">*</span></label>
					            <textarea rows="8" name="message" id="message" class="form-control required" role="textbox" aria-required="true"></textarea>
					          </div>

										<!-- Send button -->
					          <div class="actions">
					            <input type="submit" value="Send Your Message" name="submit" id="submitButton" class="btn btn-primary" title="Click here to submit your message!"/>
											<img src="images/trustmarks/method-electrical-master-electricians.jpg" class="trust-btm" alt="New Zealand Practicing Licence for Registered Electrical Service Technician" style="margin-left: 5%; margin-top: 25px; width: 150px;" height="62px" width="135px">
											<img src="images/trustmarks/method-electrical-workmanship.jpg" style="width: 130px; margin-top: -3px;"  class="trust-btm" alt="New Zealand Practicing Licence for Registered Electrical Service Technician" width="75px">
					          </div>

        					</fieldset>
      						</form>
								</div>
							</div> <!-- end form fields -->
						</div> <!-- end row for whole form -->
					</div> <!-- end container -->
				</section>

				<!-- FOOTER -->

				<section  id="footerRights">
					<div class="container">
						<div class="row">
							<div class="col-sm-6">
								<p>Copyright © 2015 Method Electrical</p>
							</div>
							<div class="col-sm-3">
								<p><i class="fa fa-phone fa-lg"></i>&nbsp;&nbsp;&nbsp;For enquiries call <a href="tel:0800223330">0800 22 333 0</a></p>
							</div>
							<div class="col-sm-3">
								<p><i class="fa fa-map-marker fa-lg"></i>&nbsp;&nbsp;&nbsp;Lunn Ave, Mt Wellington, Auckland</p>
							</div>
						</div>
					</div>
				</section>
				<!-- End footer -->
		</div> <!-- global wrapper -->
		<!-- End Document
		================================================== -->
		<script type="text/javascript" src="js-plugin/respond/respond.min.js"></script>

		<!-- third party plugins  -->
		<script type="text/javascript" src="bootstrap/js/bootstrap.js"></script>
		<script type="text/javascript" src="js-plugin/easing/jquery.easing.1.3.js"></script>
		<script type="text/javascript" src="js-plugin/neko-contact-ajax-plugin/js/jquery.form.js"></script>
		<script type="text/javascript" src="js-plugin/neko-contact-ajax-plugin/js/jquery.validate.min.js"></script>
		<script type="text/javascript" src="js-plugin/parallax/js/jquery.scrollTo-1.4.3.1-min.js"></script>
		<script type="text/javascript" src="js-plugin/parallax/js/jquery.localscroll-1.2.7-min.js"></script>
		<script type="text/javascript" src="js-plugin/parallax/js/jquery.stellar.min.js"></script>
		<script type="text/javascript" src="js-plugin/pageSlide/jquery.pageslide-custom.js"></script> <!-- this makes the mobile menu to hide on click -->

		<!-- Deleted for Google Maps Issue -->
		<!-- <script type="text/javascript" src="js/custom.js"></script> -->
		<!-- End Document <script type="text/javascript" src="js/mapload.js"></script> -->

		<script>


jQuery(".btn-primary").on("click", function() {
    gtag('event', 'contact', {
        event_category: 'contact',
        event_action: 'submit'
    });
    console.log('form-tracking');
});


jQuery("a[href*=\"tel:\"]").on("click", function() {
    gtag('event', 'clicks', {
        event_category: 'phone',
        event_action: 'clicks'
    });
    console.log('phone-tracking');
});

jQuery("a[href*=\"mailto:\"]").on("click", function() {
    gtag('event', 'clicks', {
        event_category: 'email',
        event_action: 'clicks'
    });
    console.log('email-tracking');
});
</script>

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TC9CWQX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
	</body>
	</html>