MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/bosweb/b1705/absoluteresultstechnologies.net/public_html/arc/
File Upload :
Current < : /hermes/bosweb/b1705/absoluteresultstechnologies.net/public_html/arc/aboutus.php

<?php
	session_start();

	include_once('../Emailer/swift_required.php');	

	if(isset($_POST['email'])){
		$_SESSION['post'] = $_POST; 
		header('Location: '.$_SERVER['PHP_SELF']);
		exit;
	}	

	if(isset($_SESSION['post'])){
		$emailSent = false;
		$email = $_SESSION['post']['email'];
		$name = $_SESSION['post']['name'];
		$company = $_SESSION['post']['company'];
		$email = $_SESSION['post']['email'];
		$messageResponse = $_SESSION['post']['message'];
		$subject = $name . " - " . $company . " - Arc Website Contact Us Response";
		try
		{
			$transport = Swift_SmtpTransport::newInstance('mx2.newgencloud.com');
			$mailer = Swift_Mailer::newInstance($transport);			
					
			$message = Swift_Message::newInstance($subject); 
			
			$ts = date("Y-m-d H:i:s");
			$body =  'Date Sent:  ' . $ts;
			$body .= '<br>Name: ' . $name;
			$body .= '<br>Company: ' . $company;
			$body .= '<br>Email: ' . $email;
			$body .= '<br><br>Message: ' . $messageResponse;
			

			$message->setBody(utf8_encode($body), 'text/html');
			$message->setTo(array('emeerstra@absoluteresults.com','ben@absoluteresults.com'));
			$message->setBcc(array('emeerstra@absoluteresults.com'));
			/*$message->setReturnPath();*/
			$message->setFrom($email);
			if($mailer->send($message))
			{			
				
				?>	<script>alert("Email Sent: Thank-you");</script> <?php
				$emailSent = true;
				session_unset();
			}
			else{}			
		}
		catch (Swift_RfcComplianceException $e){
			echo '<script>alert("Invalid Email Address Entered");</script>';
		}
		catch (Swift_TransportException $e) {} 
		catch (Swift_Message_MimeException $e) {}
		
	}

	include_once('header.php');
?>
<style>
.bottomContent{
	margin: 15px 0 15px 0 ;
	overflow: hidden;
}
	.leftContent{

	}

	.rightContent{

	}
</style>


<div class="row white">
	<div class="bottomContent">
		<div class="leftContent push_one five columns"  >
			<h4 style="border-bottom: 1px solid grey; margin: 0 0 10px 0 ">About Us:</h4>
			<p>ARC is managed by car people for car people! We have a dedicated calling staff of over 50 professional people working
			 hard every day calling customers and booking appointments. <br><br>
			  Today’s customers expect friendly, engaged and educated communications. 
			 At ARC we recognize this and treat each and every call as a relationship that deserves respect. With regular training and skill upgrading, 
			 ARC is committed to striving for excellence and constantly improving. Our trained professionals represent your company and give 100% every 
			 day to work hard for you. 
			 <br><br>With over 1,000,000 phone calls made, Absolute Results Communications Center knows how to call your customers 
			 and book appointments for you.
			</p>
			
			<p>
				<span style="text-decoration: underline">Address: </span>
				<br>
				102-2755 192nd Street<br>Surrey, BC 
			</p>

		</div>

		<div class="rightContent five columns" >
			<h4 style="border-bottom: 1px solid grey; margin: 0 0 10px 0">Contact Us:</h4>
			<div style="padding: 0 3%;">
				<form method="post">
					<div class="field">
						<label class="inline" for="name" style="width: 24%;">Name: </label>
						<input type="text" class="input" id="name" name="name" placeholder="Name" style="width: 74%;" <?= (isset($_SESSION['post']['name']) ? 'value='.$_SESSION['post']['name'] : "") ?> >
					</div>
					<div class="field">
						<label class="inline" for="company" style="width: 24%;">Company: </label>
						<input type="text" class="input" id="company" name="company" placeholder="Company Name" style="width: 74%;" <?= (isset($_SESSION['post']['company']) ? 'value='.$_SESSION['post']['company'] : "") ?> >
					</div>
					<div class="field">
						<label class="inline" for="email" style="width: 24%;">Email: </label>
						<input type="text" class="input" id="email" name = "email" placeholder="Email Address" style="width: 74%;" <?= (isset($_SESSION['post']['email']) ? 'value='.$_SESSION['post']['email'] : "") ?> >
					</div>
					<div class="field">
						<label  for="message" style="width: 22%;">Message: </label>
						<textarea class="input textarea" rows = "6" id="message" name="message" placeholder="Message" style="width: 99%;" ><?= (isset($_SESSION['post']['message']) ? $_SESSION['post']['message'] : "") ?></textarea>
					</div>
					<div class="pretty medium info btn" style="float:right;"><input type="submit" style="float:right;" value="Submit" /></button>
					<?php if($emailSent == true){ ?>
						Email Sent: Thank-you
					<?php } ?>
				</form>
			</div>
		</div>
	</div>
</div>

</body>
</html>