Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title><?php echo $pageTitle; ?></title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
- <link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
- <link href="css/bootstrap-responsive.css" rel="stylesheet" media="screen">
- <link href="css/style.css" rel="stylesheet" media="screen">
- <!--[if lt IE 7]-->
- <link rel="stylesheet" type="text/css" href="css/ie6.css">
- <!--[endif]-->
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
- <script src="js/jquery.fittext.js"></script>
- <script src="js/bootstrap.min.js"></script>
- <!-- bjqs.css contains the *essential* css needed for the slider to work -->
- <link rel="stylesheet" href="css/bjqs.css">
- <!-- some pretty fonts for this demo page - not required for the slider -->
- <link href='http://fonts.googleapis.com/css?family=Source+Code+Pro|Open+Sans:300' rel='stylesheet' type='text/css'>
- <!-- demo.css contains additional styles used to set up this demo page - not required for the slider -->
- <link rel="stylesheet" href="css/demo.css">
- <!-- load jQuery and the plugin -->
- <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
- <script src="js/bjqs-1.3.min.js"></script>
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-39599649-1', 'poweronlytransit.com');
- ga('send', 'pageview');
- </script>
- </head>
- <body>
- <div class="container">
- <div class="row-fluid">
- <div class="nav">
- <div class="span3">
- <div id="navLogo">
- <object data="images/logo.svg" type="image/svg+xml" class="chart">
- <a href="../index.html"></a>
- <!--|if lte IE 8 |-->
- <img src="images/logo.png" alt="Power Only Transit"/>
- <!--|endif|-->
- </object>
- </div>
- </div>
- <div class="span6">
- <div class="navbar">
- <ul>
- <li><a href="index.php">Home</a></li>
- <li><a href="get-a-quote.php">Get a Quote</a></li>
- <li><a href="towawayService.php">Tow Away Service</a></li>
- </ul>
- </div>
- </div>
- <div class="span3">
- <p>Call Us: 888-206-5830</p>
- <script type="text/javascript">
- <!--
- // Array of day names
- var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday",
- "Thursday","Friday","Saturday");
- var now = new Date();
- document.write("Happy " + dayNames[now.getDay()] + ".");
- // -->
- </script>
- </div>
- </div><!--end nav-->
- </div><!--end row-fluid-->
- <?php
- if ($_SERVER["REQUEST_METHOD"] == "POST") {
- $name = ($_POST['name']);
- $email = ($_POST['email']);
- $phone = ($_POST['phone']);
- $shipment = ($_POST['shipment']);
- if ($name == "" OR $phone == "" OR $shipment == "") {
- $error_message = "<div class='alert alert-error'>
- <p style='text-align:center'>Please fill in every field in the form,
- It helps us get you the best quote!</p>
- </div>";
- }
- if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
- //invalid emailAddress
- $error_message = "<div class='alert alert-error'>
- <p style='text-align:center'>The email you entered doesn't seem to be valid</p>
- </div>";
- }
- require_once("inc/phpmailer/class.phpmailer.php");
- $mail = new PHPMailer();
- if (!isset($error_message)) {
- $email_body = "";
- $email_body = $email_body . "Name: " . $name . "<br>";
- $email_body = $email_body . "Email: " . $email . "<br>";
- $email_body = $email_body . "Phone: " . $phone . "<br>";
- $email_body = $email_body . "Shipment: " . $shipment . "<br>";
- $mail->SetFrom($email);
- $address = "[email protected]";
- $mail->AddAddress($address, "Power Only Transit");
- $mail->Subject = "Quote Request | " . $name;
- $mail->MsgHTML($email_body);
- if($mail->Send()) {
- header("Location: get-a-quote.php?status=thanks");
- exit;
- } else{
- echo $error_message . $mail->ErrorInfo;
- }
- }
- }
- ?>
- <?php
- $pageTitle = "Power Only Transit - Get a Quote";
- ?>
- <div class="row-fluid">
- <div class="span12">
- <div class="page-content">
- <div class="row-fluid">
- <div class="span6">
- <div class="quote-left">
- <h1>No truck, No problem!</h1>
- <p>To request a quote please fill out this form.</p>
- <p>We always strive to have a quote back to you as soon as possible.</p>
- <img src="images/photo-13.jpg" style="border-radius: 5px;
- box-shadow:0px 0px 10px black">
- </div><!--end quote-left-->
- </div><!--end span6-->
- <div class="span6">
- <div class="contact-form">
- <?php if (isset($_GET["status"]) AND $_GET["status"] == "thanks") { ?>
- <div class="alert alert-success">
- <p>Thank you for contacting us, we will have a quote to you as soon as possible.</p>
- </div>
- <?php } else { ?>
- <?php
- if (!isset($error_message)) {
- } else {
- echo '<p class="message">' . $error_message . '</p>';
- }
- ?>
- <form action="get-a-quote.php" method="post">
- <fieldset>
- <label for="name">Name</label>
- <input type="text" name="name" placeholder="first and last name" value="<?php if (isset($name)) { echo htmlspecialchars($name); } ?>">
- <label for="email">Email</label>
- <input type="text" name="email" placeholder="[email protected]" value="<?php if (isset($email)) { echo htmlspecialchars($email); } ?>">
- <label for="phone">Phone Number</label>
- <input type="text" name="phone" placeholder="555-555-5555" maxlength="12" value="<?php if (isset($phone)) { echo htmlspecialchars($phone); } ?>">
- <label for="shipment">Please describe your shipment to <br>help us get you the best possible price</label>
- <textarea rows="6" name="shipment" class="span12"><?php if (isset($shipment)) { echo htmlspecialchars($shipment); } ?></textarea><br>
- <button class="btn btn-large btn-success" type="submit" style="margin-top:40px;">Request a Quote</a></button>
- </fieldset>
- </form>
- <?php } ?>
- </div><!--end contact-form-->
- </div><!--end span6-->
- </div><!--end row-fluid-->
- </div><!--end page-content-->
- </div><!--end span12-->
- </div><!--end row-fluid-->
- <div class="row-fluid">
- <div class="span12">
- <div class="navfooter">
- <div class="row-fluid">
- <div class="span3">
- <p style="font-size: 1em;">Copyright © <?php echo date("Y") ?> <br>Power Only Transit LLC. </P>
- </div>
- <div class="span6">
- <div class="navfooter">
- <ul>
- <li><a href="index.php">Home</a></li>
- <li><a href="get-a-quote.php">Get a Quote</a></li>
- <li><a href="towawayService.php">Tow Away Service</a></li>
- <li><a href="contactUs.php">Contact Us</a></li>
- </ul>
- </div>
- </div>
- <div class="span3">
- <p>Call Us: 888-206-5830</p>
- </div>
- </div><!--end row-fluid-->
- </div><!--end navfooter-->
- </div><!--end span12-->
- </div><!--end row-fluid-->
- </div> <!--end container-->
- <script src="http://code.jquery.com/jquery.js"></script>
- <script src="js/bootstrap.min.js"></script>
- <script>
- jQuery("#responsive_headline").fitText();
- jQuery("#responsive_nav").fitText();
- jQuery(document).ready(function($) {
- $('#banner-fade').bjqs({
- 'height' : 320,
- 'width' : 620,
- 'responsive' : true
- });
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement