bootstrap php includes with sidebar - php

Okay, so this is a first for me. Using php includes.
The problem I'm running into is that the content for the page is being pushed down onto another row when i include the sidebar.php.
This is the code for the side bar. The content means pretty much nothing now, because I'll probably change a couple of things. But the col-md-3 class is the thing that most confusing, because it should in theory work in tandem with the pages col-md class.
<?php include('head.php'); ?>
<!--- Start of accordion ---->
<div class="container">
<div class="panel-group col-md-3 panel_custom_group" id="accordian">
<div class="panel panel-custom">
<div class="panel-heading">
<h4 class="panel-title">
APPAREL <span class="panel_plus">+</span>
</h4>
</div>
<div class="panel-collapse collapse" id="apparel">
<div class="panel-body">
<div class="panel-heading">
<h4 class="panel-title">
ALL PRODUCTS <span class="panel_plus">+</span>
</h4>
</div>
<div class="panel-collapse collapse" id="allproducts">
<div class="panel-body">
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-custom">
<div class="panel-heading">
<h4 class="panel-title">
HEADWEAR<span class="glyphicon glyphicon-plus side_bar_glyph"></span>
</h4>
</div>
<div class="panel-collapse collapse" id="headwear">
<div class="panel-body">
</div>
</div>
</div>
<div class="panel panel-custom">
<div class="panel-heading">
<h4 class="panel-title">
BAGS<span class="glyphicon glyphicon-plus"></span>
</h4>
</div>
<div class="panel-collapse collapse" id="bags">
<div class="panel-body">
</div>
</div>
</div>
<div class="panel panel-custom">
<div class="panel-heading">
<h4 class="panel-title">
GIFTS<span class="glyphicon glyphicon-plus"></span>
</h4>
</div>
<div class="panel-collapse collapse" id="gifts">
<div class="panel-body">
</div>
</div>
</div>
<div class="panel panel-custom">
<div class="panel-heading">
<h4 class="panel-title">
BRANDS<span class="glyphicon glyphicon-plus"></span>
</h4>
</div>
<div class="panel-collapse collapse" id="brands">
<div class="panel-body">
</div>
</div>
</div>
<div class="panel panel-custom">
<div class="panel-heading">
<h4 class="panel-title">
CATEGORIES<span class="glyphicon glyphicon-plus"></span>
</h4>
</div>
<div class="panel-collapse collapse" id="categories">
<div class="panel-body">
</div>
</div>
</div>
<div class="panel panel-custom">
<div class="panel-heading">
<h4 class="panel-title">
SPECIALS<span class="glyphicon glyphicon-plus"></span>
</h4>
</div>
<div class="panel-collapse collapse" id="specials">
<div class="panel-body">
</div>
</div>
</div>
</div>
</div>
<!--- end of accordian ---->
And this is the page i inserted it into.
<?php include('head.php'); ?>
<div class="breadcrumb">
<p>Home > Registration</p>
</div>
<section class="container registr_middle col-md-6">
<img class="img-responsive" src="images/become_a_partner_banner.jpg" title="Become a Partner" alt="Become a Partner" />
</section>
<section class="registr_side col-md-3">
<div>
<h3>Partner Registration</h3>
<p>Becoming an Altitude partner can be a life changing event. As Altitude Leisurewear is a sincerely TRADE ONLY SUPPLIER the criteria to become an Altitude agent.<br />
In order to register as an approved distributor of the Altitude Leisure Wear brand, you will be required to complete the following documentation.<br />
Once completed, the following information must be signed and faxed to: <strong>086 580 0596</strong>.<br /></p>
<p class="background_para">Any incomplete application forms will be disregarded</p>
<ul>
<li>A signed copy of our client profile document</li>
<li>A signed copy of our standard terms and conditions</li>
<li>A copy of company Registration(CK Form)</li>
<li>A company profile verifying that our primary business is the resale of corporate and promotional products.</li>
<li>A copy of your business card</li>
<li>A copy of your ID document</li>
<li>An invoice os order to a client or from a supplier showing that you re-sell sorporate wear</li>
</ul>
<p>Please complete the application form below to register with Altitude Leisure Wear. A Customer Care representative will forward you the documentation that needs to be completed in order to do the verification of your status.</p>
</div>
</section>
So shouldn't the side bar's width work with the main content of the pages width. They both add up to 12 (for the grid system).

I think you shoudn't use .container and .col-md-6 on the same element.
It should look like this:
<div class="container-fluid">
<div class="row">
<div class="col-md-6">First half</div>
<div class="col-md-6">Second half</div>
</div>
</div>
http://getbootstrap.com/css/#grid

I let it work by putting a 'div' with the class of 'col-md-3' around the include line and then wrapped all the contents in a container div. I then removed the 'col-md-3' in the sidebar.php file.
<div class="col-md-3">
<?php include('sidebar.php'); ?>
</div>

Related

How to access form element in while loop in PHP

i want to get acces to comment and get the value of it , i used $_POST but i get error
Undefined array key
the code create photo posts with while loop the post also contains the comment section.
here the Photo post code:
<!-- Photos section -->
<section>
<div class="container mt-5">
<div class="album py-5 bg-light">
<div class="row row-cols-1 row-cols-sm-1 row-cols-md-1 row-cols-lg-1">
<div class="container">
<?php
if (mysqli_num_rows($res_for_pics) > 0) {
while ($pics = mysqli_fetch_assoc($res_for_pics)) { ?>
<div class="col mb-3">
<div class="card shadow-sm">
<img src="images/user/<?= $pics['pic'] ?>" class="card-img-top img-fluid" alt="...">
<div class="card-body">
<h5 class="card-title" id="add-com"><?php echo $pics['pic_title'] ?></h5>
<p class="card-text"><?php echo $pics['pic_des'] ?></p>
<div class="d-flex justify-content-between align-items-center">
<small class="text-muted mb-3">by nithan</small>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="headingOne">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
<h5 class="card-title"> Comments</h5>
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse show" aria-labelledby="headingOne" data-bs-parent="#accordionExample">
<div class="accordion-body">
<ul class="list-group list-group-flush">
<li class="list-group-item">
howa
<p class="card-text"><small class="text-muted"></small></p>
</li>
</ul>
</div>
</div>
</div>
**I Want to get access to the value of textarea in the other php file**.
<form method="$_POST" action="../model/comment.php">
<div class="mb-3 mt-5">
<h5 for="message-text" class="col-form-label">add your comment</h5>
<textarea type="text" class="form-control" id="message-text" name="theComment"></textarea>
</div>
<button type="submit" class="btn btn-primary text-light" name="addComment">Comment</button>
</form>
</div>
</div>
</div>
<?php }
} ?>
</div>
</div>
</div>
</div>
</section>
and here comment.php
<?php
include('db_con.php');
$comment = $_POST["theComment"];
echo $comment;
So i try to get access to the 'theComment' value from the form .

Setting Categories using tabs with Laravel

I would like to ask how to pull categories using tabs. I was able to pull all the items on one tab but I could not pull them per category. here is my code. The data comes from the database and seems to work on All items but I could not figure out how to pull them individually. I need some help with you expertise.
<div class="tab-content">
<div class="tab-pane container active" id="home">...</div>
<div class="tab-pane container fade" id="allItems">All Items
<div>
<div class="row">
<div class="col-12">
<div class="row">
#foreach($items as $per_item)
<div class="col-lg-4 col-6">
<div class="card mb-3">
<img src="{{$per_item->image_path}}" class="card-img-top">
<div class="card-body">
<small>{{$per_item->category->name}}</small>
<h4 class="card-title">
<a href="/items/{{$per_item->id}}">
{{$per_item->name}}
</a>
</h4>
<p class="card-text">{{$per_item->description}}</p>
<h3>{{$per_item->price}}</h3>
<form action="/cart/{{$per_item->id}}" method="POST">
#csrf
<div class="row">
<div class="col-12 col-md-5 col-lg-12 mb-2">
<input type="number" name="quantity" id="quantity"
class="w-100">
</div>
<div class="col-12 col-md-7 col-lg-12 mb-2">
<button type="submit" class="btn btn-primary">Add To
Cart</button>
</div>
</div>
</form>
</div>
</div>
</div>
#endforeach
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane container fade" id="consumables">Consumables
<div>
</div>
</div>
<div class="tab-pvane container fade" id="pnuematicTools">Pnuematic
Tools</div>

Move the widget to the right side of the web page using bootstrap 4

I want the information tag to be at the right side of the web page. Rest of the things are in the middle of the page. While I am not able to move the information to the right side. Also, because of it the footer disappeared. While I remove the information code, the footer works. Please help me right-align the information widget and also have the footer too.
<div class="container">
<div class="card border-light mb-3 text-center">
<p class="card-header">Videos</p>
</div>
<div id="userSuccess" class="hide" role="alert">
<div id="successUserContent"></div>
</div>
<div class="row" id="userVid">
<?php
$allVid = Schema::getAll();
for ($i = 0; $i < count($allVid); $i++) {
echo <<<HTML
<div class="col-lg-4 col-md-6 mb-4">
<div class="card h-100">
<div class="card-body">
<img class="card-img-top" src="http://placehold.it/700x400" alt="">
<h4 class="card-title">{$allVid[$i]->getTitle()} </h4>
</div>
</div>
</div>
HTML;
}
?>
</div>
<div class="row">
<div class="col-md-4 order-md-2 mb-4">
<div class="card my-4">
<h5 class="card-header">Information</h5>
<div class="card-body">
<div class="row">
<ul class="list-unstyled mb-0">
<li>
...
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
require_once './page/footer.php';
?>
For right align, you'll want to add the class of "justify-content-end" after your "row" class.
<div class="row justify-content-end"><!-- ADDED HERE-->
<div class="col-md-4 order-md-2 mb-4">
<div class="card my-4">
<h5 class="card-header">Information</h5>
<!-- REST OF YOUR CODE-->
For your footer, you'll need to wrap your URL in parenthesis.
<?php require_once('/yourdirectory/yourfooter.php'); ?>

Loop on multiple values

I got a FAQ element in which I want to show questions and answers. I am using the joomla cms template to edit so I am fairly limited on how to add this.
My solution on how I wanted to do this:
In the textfield I add the string like this:
[question1? || Answer1]
[question2? || Answer2]
[question3? || Answer3]
Then I split the questions/answers on the brackets around them, and finally split those results on the two lines inbetween.
Then finally loop the results in this format:
<div id="accordion-1" role="tablist" aria-multiselectable="true">
<div class="panel panel-default panel-alt-two">
<div class="panel-heading active" role="tab" id="heading1">
<h5 class="panel-title"><a data-toggle="collapse" data-parent="#accordion-1" href="#collapse1" aria-expanded="true" class=""><span class="accordion-icon"><span class="stacked-icon"><i class="fa fa-rocket"></i></span></span>Question 1</a></h5>
</div>
<!-- LOOP FROM HERE -->
<div id="collapse1" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading1" style="height: auto;">
<div class="panel-body">Answer 1</div>
</div>
<div class="panel-heading" role="tab" id="heading2">
<h5 class="panel-title"><a class="collapsed" data-toggle="collapse" data-parent="#accordion-1" href="#collapse2" aria-expanded="false"><span class="accordion-icon"><span class="stacked-icon"><i class="fa fa-quote-left"></i></span></span>Question 2</a></h5>
</div>
<div id="collapse2" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading2" style="height: 0px;">
<div class="panel-body">Answer 2</div>
</div>
<div class="panel-heading" role="tab" id="heading3">
<h5 class="panel-title"><a class="collapsed" data-toggle="collapse" data-parent="#accordion-1" href="#collapse3" aria-expanded="false">Question 3<span class="accordion-icon"><span class="stacked-icon"><i class="fa fa-flag"></i></span></span></a></h5>
</div>
<div id="collapse3" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading3" style="height: 0px;">
<div class="panel-body">Answer 3</div>
</div>
<!-- -->
</div>
</div>
I split the parts like this:
// faq data
$faq = "SELECT * FROM `web_content` WHERE catid = 13 AND `alias` = '".$conn->real_escape_string($_GET['alias'])."' AND state = 1 ORDER BY ordering";
$faqcon = $conn->query($faq);
$faqcr = array();
while ($faqcr[] = $faqcon->fetch_array());
$faqtext = $faqcr[0]['introtext'];
preg_match_all("/\[([^\]]*)\]/", $faqtext, $faqarray);
How can I get the question and answer seperate and loop them for example like this:
<div class="panel-heading" role="tab" id="heading3">
<h5 class="panel-title"><a class="collapsed" data-toggle="collapse" data-parent="#accordion-1" href="#collapse3" aria-expanded="false">'.$question[0].'<span class="accordion-icon"><span class="stacked-icon"><i class="fa fa-flag"></i></span></span></a></h5>
</div>
<div id="collapse3" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading3" style="height: 0px;">
<div class="panel-body">'.$answer[0].'</div>
</div>
I know I have to add numbers to the accordion element but that is not an issue.

Bootstrap 3 IE Grid Compatibillity

I have created a bootstrap 3 website and it looks great except in some versions of Internet Explorer the grids overlap each other. The url is awseattle.com the html code looks like this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="AW Seattle provides luxury transportation services in the Greater Seattle-Tacoma & Airport area. We operate a full fleet of vehicles 24 hours a day, 7 days a week. (206) 412-9353">
<meta name="author" content="awseattle.com">
<meta name="keywords" content="seattle limo, limousine service, airport limo, cruise transfers, limo service" />
<META NAME="ROBOTS" CONTENT="INDEX, NOFOLLOW">
<title>AW Seattle</title>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/grayscale.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="font-awesome-4.2.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<script src="js/DateTimePicker.js" type="text/javascript"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!--[if IE]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
<!-- Respond.js proxy on external server -->
<link href="http://externalcdn.com/respond-proxy.html" id="respond-proxy" rel="respond-proxy" />
</head>
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse">
<i class="fa fa-bars"></i>
</button>
<a class="navbar-brand page-scroll" href="#page-top">
<span class="light">AW</span> Seattle
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-right navbar-main-collapse">
<ul class="nav navbar-nav">
<!-- Hidden li included to remove active class from about link when scrolled up past about section -->
<li class="hidden">
</li>
<li>
<a class="page-scroll" href="#fleet">Fleet</a>
</li>
<li>
<a class="page-scroll" href="#services">Services</a>
</li>
<li>
<a class="page-scroll" href="#rates">Rates</a>
</li>
<li>
<a class="page-scroll" href="#reservations">Reservations</a>
</li>
<li>
<a class="page-scroll" href="#testimonials">Testimonials</a>
</li>
<li>
<a class="page-scroll" href="#contact">Contact Us</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<!-- Intro Header -->
<header class="intro">
<div class="intro-body">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div>
<br><br><br><br>
</div>
<div class="col-md-8">
<!---- Carosel --->
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img width='500' height='250' src="img/towncar.jpg" alt="AW Seattle Town Car">
<div class="carousel-caption">
</div>
</div>
<div class="item">
<img width='500' height='250' src="img/seattle.jpg" alt="AW Seattle">
<div class="carousel-caption">
</div>
</div>
<div class="item">
<img width='500' height='250' src="img/chauffeur.jpg" alt="chauffeur">
<div class="carousel-caption">
</div>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
<!---- End Carosel --->
<br>
<div class="panel panel-default">
<div class="panel-body">
<font color='gray'> We take pride in making every trip a memorable experience. We have been rated one of the best towncar and limousine companies in the Greater Puget Sound area. We have been based in the Seattle Metropolitan area since 2000 and have built our business one customer at a time.
<Br><br>
Our service and prices set us apart from other companies, which makes our company highly competitive. Our experienced drivers are knowledgeable about city streets and locations statewide, are courteous, personable, and confident. Our town cars are meticulously clean and well-maintained. You can relax in luxury as you are safely taken to your desired destination.</font>
</div>
</div>
</div>
<div class="col-md-4">
<br>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Account Log In</h3>
</div>
<div class="panel-body">
<form method="post" action="index.php">
<div class="input-group">
<input name="user" type="text" class="form-control" placeholder="User Name">
</div><Br>
<div class="input-group">
<input name="pass" type="text" class="form-control" placeholder="Password">
</div>
<Br>
<input type="submit" name="login" value="Log in">
</form>
</div>
</div>
<br>
<div class="panel panel-default">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Proud Transporter of</h3>
</div>
<div class="panel-body">
<img src="img/microsoft.png" alt="microsoft" style="width:150px;height:40px"><Br>
<img src="img/amazon.jpg" alt="amazon" style="width:150px;height:40px"><Br>
<img src="img/boeing.jpg" alt="boeing" style="width:150px;height:40px"><Br>
<img src="img/passportunlimited.jpg" alt="passport unlimited" style="width:150px;height:40px"><Br>
<img src="img/facebook.png" alt="facebook" style="width:150px;height:40px"><Br>
<img src="img/eddiebauer.jpg" alt="eddie bauer" style="width:150px;height:40px">
</div>
</div>
<div class="panel-body">
<a href='http://www.heathmanhotel.com/'>Hotel Reservations</a><br>
<a href='http://www.weather.com/weather/today/Seattle+WA+USWA0395?from=search_city'>Weather</a><br>
<a href='http://www.citysearch.com/guide/seattle-wa-metro'>Around Seattle</a><br>
</div>
</div>
</div>
<div class="col-md-8 col-md-offset-2">
<br><br><br><br>
</div>
</div>
</div>
</div>
</div>
</header>
<section id="fleet" class="container content-section text-center">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h2>OUR FLEET</h2>
<div class="row">
<div class="col-md-6">
<a class="thumbnail">
<img src="img/Fleet_TownCar.jpg" width="450" height="150" class="img-responsive" alt="Town Car">
Luxury Signature and L model Town Cars up to 4 passengers
</a>
</div>
<div class="col-md-6">
<a class="thumbnail">
<img src="img/Fleet_WhiteLimo.jpg" width="450" height="150" class="img-responsive" alt="White Limo">
Seats 8-10 passengers, Tinted windows, Privacy divider
</a>
</div>
<div class="col-md-6">
<a class="thumbnail">
<img src="img/Fleet_Suv.jpg" width="450" height="150" class="img-responsive" alt="SUV">
Seats up to 7 passengers, Climate controlled, Ample luggage room
</a>
</div>
<div class="col-md-6">
<a class="thumbnail">
<img src="img/Fleet_Van.jpg" width="450" height="150" class="img-responsive" alt="Van">
Seats up to 14 passengers, Ample leg room, Privacy dividers
</a>
</div>
<div class="col-md-6">
<a class="thumbnail">
<img src="img/Fleet_SuvLimo.jpg" width="450" height="150" class="img-responsive" alt="SUV Limo">
Seats up to 14 people, Rear luggage space, Sound system
</a>
</div>
<div class="col-md-6">
<a class="thumbnail">
<img src="img/Fleet_mkt.jpg" width="450" height="150" class="img-responsive" alt="MKT">
Seats 7 comfortably with lots of leg room and style in a Lincon MKT.
</a>
</div>
<div class="col-md-6">
<a class="thumbnail">
<img src="img/Fleet_partybus.jpg" width="450" height="150" class="img-responsive" alt="Party Bus">
<br>Seats up to 16 people
</a>
</div>
<div class="col-md-6">
<a class="thumbnail">
<img src="img/Fleet_Bus.jpg" width="450" height="150" class="img-responsive" alt="Bus">
Luxury Buses, Seats 39-54 people, Ample luggage room, TV/DVD
</a>
</div>
</div>
</div>
</div>
</section>
<section id="services" class="content-section text-center">
<div class="download-section">
<div class="container">
<div class="col-lg-8 col-lg-offset-2">
<h2>Services</h2>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">WEDDINGS, PROMS AND SPECIAL OCCASIONS</h3>
</div>
<div class="panel-body">
<div class="col-md-4">
<img src="img/wedding.jpg" alt="wedding" height="100%" width="100%">
</div>
<div class="col-md-8">
<font size="2" color="gray">On your special day everything must be perfect! Planning for a special occasion is very stressful, so let us take some of your stress away. Arrive and leave in style in one of our beautiful limousines. We guarantee that you will make it to all of your planned destinations on time and worry free. Let us help you make your special day the one to remember for years to come.</font>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">CITY TOURS</h3>
</div>
<div class="panel-body">
<div class="col-md-4">
<img src="img/city.jpg" alt="city" height="100%" width="100%">
</div>
<div class="col-md-8">
<font size="2" color="gray">Whether you are new to the Seattle area or have lived here your entire life and need to be reacquainted with our fair city, allow AW Seattle Towncar Service show you the splendor of the Pacific Northwest. Our drivers are well familiar with the area and will be able to provide a memorable experience for you and your family.</font>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">CORPORATE</h3>
</div>
<div class="panel-body">
<div class="col-md-4">
<img src="img/corprate.jpg" alt="corprate" height="100%" width="100%">
</div>
<div class="col-md-8">
<font size="2" color="gray">Take the worry out of your busy work day! Allow reliable and dependable drivers of AW Seattle Towncar Service take you to and from your business meetings in style and luxury. You will enjoy a smooth relaxing ride and arrive at your business meeting in a timely matter.</font>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">GROUND TRANSPORTATION SERVICE</h3>
</div>
<div class="panel-body">
<div class="col-md-4">
<img src="img/ground.jpg" alt="ground" height="100%" width="100%">
</div>
<div class="col-md-8">
<font size="2" color="gray">We began our business with ground transportation service and to this day continue to offer luxury and comfortable rides to and from the SeaTac Airport. Let go of all of your worries about traffic on the roads, rental cars or finding reliable parking for your vehicle. Allow our drivers to take you to the airport or home in style and on time.</font>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Service Agreement</h3>
</div>
<div class="panel-body" align="left">
<div class="col-md-12">
<font size="2" color="gray">
<ul>
<li>All round-trip reservations to be booked with return itinerary at the time of the initial booking </li>
<li>Reservations should include cell phone contact information ONLY; Home and office telephone numbers are irrelevant for coordinating pickups </li>
<li>When exiting baggage claim client to call dispatch # 206 412-9353 to inform from which exit door they can be met </li>
<li>Car seats for children are not provided but can be accommodated for drop-off at Sea-Tac and return will have the seats available for return to home at "one time charge" of $10.00 per seat </li>
<li>Trips between Midnight and 4:00 AM will result in a $10.00 surcharge </li>
<li>Stops en-route will result in an additional $10.00 service fee </li>
<li>Credit card information is kept on file ONLY if requested by the customer, otherwise client needs to present the card for payment to the driver each time </li>
<li>$10 charge to have a driver meet inside with sign at baggage claim </li>
<li>Reservations must be cancelled within 2 hours of pickup to avoid penalties </li>
<li>No-show reservations will result in full charge for the trip </li>
<li>Smoking is NOT permitted </li>
<li>Drinking alcohol is permitted; driver discretionary limits </li>
</ul>
</font>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="rates" class="container content-section text-center">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h2>Rates</h2>
<br><br>
<table width='100%' align='center'>
<tr>
<td align='right'><font size='5'>Calculate your rate:</font></td>
<td width="5%"></td>
<td align='left'><div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
Event Type
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
<li role="presentation"><a role="menuitem" tabindex="-1" onclick='$("#toFromModal").modal({keyboard: false})'>Transportation to or from Sea Tac Airport</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" onclick='$("#cityTourModal").modal({keyboard: false})'>City Tour</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" onclick='$("#specialEventsModal").modal({keyboard: false})'>Special Occasion</a></li>
</ul>
</div></td>
</table>
<div class="modal fade" id="cityTourModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel"><font color='black'>City Tours</font></h4>
</div>
<div class="modal-body"><font color='gray'>
Your Rate is estimated at: $65 / hour for town cars<br><br>
Rates vary based on events, vehicles, and people. Rates are subject to change.
</font></div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<div class="modal fade" id="specialEventsModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel"><font color='black'>Special Events</font></h4>
</div>
<div class="modal-body">
<font color='gray'>
Your Rate is estimated at: $65 / hour for town cars<br><br>
Rates vary based on events, vehicles, and people. Rates are subject to change.
</font>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<div class="modal fade" id="toFromModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel"><font color='black'>To or From Sea Tac Airport</font></h4>
</div>
<div class="modal-body">
<select id='zip' name='zip' onchange="document.getElementById('ratediv').firstChild.nodeValue = this.options[this.selectedIndex].value">
<option value=''>Select A Pick Up / Drop Off Area</option>
<?php
// Create connection
$conn = new mysqli($dbhost, $dbuser, $dbpass, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT * FROM ziprates GROUP BY city";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "<option value='$".$row['ratelow']." - $". $row['ratehigh']."'>". $row['city']."</option>";
}
} else {
echo "0 results";
}
$conn->close();
?>
</select>
<br><br>
<font color='gray'>
Your Rate is estimated at:<br>
<div id='ratediv'>
</div><br><br>
Rates are for one way travel. Round trip is double.<br>
Lowest price is based on closest location to Sea Tac Airport<br>
Rates vary based on events, vehicles, and people. Rates are subject to change.
</font>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<br><br><br><br><br><br><br><br>There is $65.00 per hour charge for city tours and any other occasion. <br>Downtown Seattle to/from Sea-Tac Airport flat rate of $55.00. <br><br><br><br>All rates may be subject to change.
</div>
</div>
</section>
<section id="reservations" class="content-section text-center">
<div class="download-section">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h2>Reservations</h2>
<br>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Select a event type to make a reservation:</h3>
</div>
<div class="panel-body" align="center">
<a class="btn btn-default btn-lg" style='width: 310px;' onclick='$("#tofromModal").modal({keyboard: false})'><span class="network-name">TO / From Sea TAc Airport</span></a>
<br>
Custom Route</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="modal fade" id="tofromModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content" align="center">
<div class="modal-body">
To Sea Tac Airport</span><br>
From Sea Tac Airport</span><br>
Round Trip (Travel To Seattle)</span><br>
Round Trip (Travel From Seattle)</span><br>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<section id="testimonials" class="container content-section text-center">
<div class="row">
<h2>Testimonials</h2>
<div class="table-responsive">
<table width='200%'>
<tr>
<?php
// Create connection
$conn = new mysqli($dbhost, $dbuser, $dbpass, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT * FROM testimonials";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "<td valign='top'>
<blockquote>
<p class='clients-words'>".$row['testimonial']."</p>
<span class='clients-name text-primary'>— ".$row['name']."</span>
</blockquote>
</td>";
}
} else {
echo "0 results";
}
$conn->close();
?>
</tr>
</table>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="container content-section text-center">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h2>Contact Us</h2>
<p>Call Us: (206) 412-9353 </p>
<p>Email Us: info#awseattle.com
</p>
<ul class="list-inline banner-social-buttons">
<li>
<i class="fa fa-twitter fa-fw"></i> <span class="network-name">Twitter</span>
</li>
<li>
<i class="fa fa-facebook fa-fw"></i> <span class="network-name">Facebook</span>
</li>
<li>
<i class="fa fa-google-plus fa-fw"></i> <span class="network-name">Google+</span>
</li>
</ul>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<div class="container text-center">
<p>Copyright © AW Seattle 2014</p>
</div>
</footer>
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<!-- Google Maps API Key - Use your own API key to enable the map feature. More information on the Google Maps API can be found at https://developers.google.com/maps/ -->
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCRngKslUGJTlibkQ3FkfTxj3Xss1UlZDA&sensor=false"></script>
<!-- Custom Theme JavaScript -->
<script src="js/grayscale.js"></script>
</body>
</html>
Any advice is appreciated. Not sure what to do ) :

Categories