Skip to content

Commit

Permalink
Hotel Details Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Woliul Hasan committed Jul 11, 2023
1 parent 84d513f commit a366ae2
Show file tree
Hide file tree
Showing 11 changed files with 1,413 additions and 259 deletions.
15 changes: 15 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added gypsy/assets/img/flightbody1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gypsy/assets/img/flightbody2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gypsy/assets/img/flightbody3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 31 additions & 13 deletions gypsy/flightbooking.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
if (isset($_SESSION['user']) != "") {

}
if (isset($_POST['submit'])) {
$from = $_POST['dep'];
$to = $_POST['dest'];
$departureDate = $_POST['departure_date'];
$departureTime = $_POST['departure_time'];
$arrivalDate = $_POST['arrival_date'];
$arrivalTime = $_POST['arrival_time'];
$airline = $_POST['airline'];
$duration = $_POST['duration'];
$price = $_POST['price'];
}

/*$username = $_SESSION['user'];*/
include 'header.php';
include 'func.php';
Expand Down Expand Up @@ -372,39 +384,45 @@

<div class="mt-4 container">
<div class="row">
<?php
//Loop for destination data


?>
<div class="container">
<div class="card mb-3">
<div class="card-header">
<h5 class="mb-0">Flight from <?php echo $from[$i]; ?> to <?php echo $to[$i]; ?></h5>
<h5 class="mb-0">Flight from <?php echo $from; ?> to <?php echo $to; ?></h5>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-4">
<h5><i class="fas fa-plane-departure"></i> Departure</h5>
<p><i class="far fa-calendar-alt"></i> <?php echo $departureDate[$i]; ?></p>
<p><i class="far fa-clock"></i> <?php echo $departureTime[$i]; ?></p>
<p><i class="fas fa-plane"></i> <?php echo $airline[$i]; ?></p>
<p><i class="far fa-calendar-alt"></i> <?php echo $departureDate; ?></p>
<p><i class="far fa-clock"></i> <?php echo $departureTime; ?></p>
<p><i class="fas fa-plane"></i> <?php echo $airline; ?></p>
</div>
<div class="col-md-4">
<h5><i class="fas fa-plane-arrival"></i> Arrival</h5>
<p><i class="far fa-calendar-alt"></i> <?php echo $arrivalDate[$i]; ?></p>
<p><i class="far fa-clock"></i> <?php echo $arrivalTime[$i]; ?></p>
<p><i class="fas fa-plane"></i> <?php echo $airline[$i]; ?></p>
<p><i class="far fa-calendar-alt"></i> <?php echo $arrivalDate; ?></p>
<p><i class="far fa-clock"></i> <?php echo $arrivalTime; ?></p>
<p><i class="fas fa-plane"></i> <?php echo $airline; ?></p>
</div>
<div class="col-md-2">
<h5><i class="far fa-clock"></i> Duration</h5>
<p><?php echo $duration[$i]; ?></p>
<p><?php echo $duration; ?></p>
</div>
<div class="col-md-2">
<h5><i class="fas fa-coins"></i> Price</h5>
<p><?php echo $price[$i]; ?></p>
<p><?php echo $price; ?></p>
<p class="text-right h4"><i class="fa fa-angle-down"></i></p>
</div>
</div>

</div>
</div>
</div>

<div class="card col-md-4">
<div class="mt-3">
<img alt="Eiffel Tower" class="card card-img-top mb-0" src="assets/img/eiffel_tower.jpg">
Expand All @@ -413,14 +431,14 @@

<!--Progressbar-->
<div class="pt-3 pl-3 pr-3 mt-3 mb-3 card">
<p><strong><i class="fas fa-plane"></i> Airline:</strong> <?php echo $airline[$i]; ?>
<p><strong><i class="fas fa-plane"></i> Airline:</strong> <?php echo $airline; ?>
</p>
<p><strong><i class="fas fa-plane"></i> Flight:</strong> <?php echo $from[$i]; ?>
| <?php echo $to[$i]; ?></p>
<p><strong><i class="fas fa-plane"></i> Flight:</strong> <?php echo $from; ?>
| <?php echo $to; ?></p>
</div>
<div class="pl-3 pr-3 pt-3 card mt-3 mb-3">
<p><strong><i class="fas fa-star"></i> Class:</strong> Economy</p>
<p><strong><i class="far fa-clock"></i> Duration:</strong> <?php echo $duration[$i]; ?>
<p><strong><i class="far fa-clock"></i> Duration:</strong> <?php echo $duration; ?>
</p>
</div>
<div class="pl-3 pr-3 pt-3 card mt-3 mb-3">
Expand Down
2 changes: 1 addition & 1 deletion gypsy/flightinvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ class="float-right text-muted font-size-15 mb-0 pr-2" style="margin-top: 0.3rem;
<div class="col-sm-6">
<div class="text-muted">
<h5 class="font-size-16 mb-3">Billed To:</h5>
<h5 class="font-size-15 mb-2">Preston Miller</h5>
<h5 class="font-size-15 mb-2">James William</h5>
<p class="mb-1">4068 Post Avenue Newfolden, MN 56738</p>
<p class="mb-1">[email protected]</p>
<p>001-234-5678</p>
Expand Down
143 changes: 114 additions & 29 deletions gypsy/flights.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
$arrivalTime = array();
$airline = array();
$duration = array();
$price= array();
$price = array();
// Check if the query was successful
if ($result3) {
// Fetch the rows from the result set
Expand Down Expand Up @@ -134,7 +134,7 @@
<input type="date" class="form-control" id="inputReturn">
</div>
</div>
<button type="submit" class="btn btn-primary">Search Flights</button>
<button type="submit" name="submit" class="btn btn-primary">Search Flights</button>
</form>

</div>
Expand All @@ -145,37 +145,50 @@
$i < $count;
$i++) {
?>

<div class="container">
<div class="card mb-3">
<div class="card-header">
<h5 class="mb-0">Flight from <strong> <?php echo $from[$i]; ?> </strong> to <strong><?php echo $to[$i]; ?></strong></h5>
<h5 class="mb-0">Flight from <span name="dep"> <strong> <?php echo $from[$i]; ?> </strong></span> to
<span name="dest"><strong><?php echo $to[$i]; ?></strong></span></h5>
</div>
<div class="card-body">
<div class="row collapsed" aria-controls="flightDetails<?php echo $i; ?>" aria-expanded="false" data-target="#flightDetails<?php echo $i; ?>" data-toggle="collapse">
<div class="col-md-4">
<h5><i class="fas fa-plane-departure"></i> Departure</h5>
<p class="mb-0"><i class="fas fa-calendar-alt"></i> <?php echo $departureDate[$i]; ?></p>
<p><i class="fas fa-clock"></i> <?php echo $departureTime[$i]; ?></p>
<p><i class="fas fa-plane" style="display: inline-block;transform: rotate(-90deg); margin-right: 5px; font-size: 20px;"></i> <?php echo $airline[$i]; ?></p>
</div>
<div class="col-md-4">
<h5><i class="fas fa-plane-arrival"></i> Arrival</h5>
<p class="mb-0"><i class="fas fa-calendar-alt"></i> <?php echo $arrivalDate[$i]; ?></p>
<p><i class="fas fa-clock"></i> <?php echo $arrivalTime[$i]; ?></p>
<p><i class="fas fa-plane" style="display: inline-block;transform: rotate(90deg); margin-right: 5px; font-size: 20px;"></i> <?php echo $airline[$i]; ?></p>
</div>
<div class="col-md-2">
<h5><i class="fas fa-clock"></i> Duration</h5>
<p><?php echo $duration[$i]; ?></p>
<p class="card-text"><i class="fas fa-exchange-alt"></i> Stops: Non-stop</p>
</div>
<div class="col-md-2">
<h5><i class="fas fa-coins"></i> Price</h5>
<p><?php echo $price[$i]; ?></p>
<p aria-controls="flightDetails<?php echo $i; ?>" aria-expanded="false" data-target="#flightDetails<?php echo $i; ?>" data-toggle="collapse" class="collapsed text-right h4"><i class="fa fa-angle-down"></i></p>
<form action="flightbooking.php" method="post">
<div class="row collapsed" aria-controls="flightDetails<?php echo $i; ?>" aria-expanded="false"
data-target="#flightDetails<?php echo $i; ?>" data-toggle="collapse">
<div class="col-md-4">
<h5><i class="fas fa-plane-departure"></i> Departure</h5>
<p name="departure_date" class="mb-0"><i
class="fas fa-calendar-alt"></i> <?php echo $departureDate[$i]; ?></p>
<p name="departure_time"><i class="fas fa-clock"></i> <?php echo $departureTime[$i]; ?></p>
<p name="airline"><i class="fas fa-plane"
style="display: inline-block;transform: rotate(-90deg); margin-right: 5px; font-size: 20px;"></i> <?php echo $airline[$i]; ?>
</p>
</div>
<div class="col-md-4">
<h5><i class="fas fa-plane-arrival"></i> Arrival</h5>
<p name="arrival_date" class="mb-0"><i
class="fas fa-calendar-alt"></i> <?php echo $arrivalDate[$i]; ?></p>
<p name="arrival_time"><i class="fas fa-clock"></i> <?php echo $arrivalTime[$i]; ?></p>
<p name="airline"><i class="fas fa-plane"
style="display: inline-block;transform: rotate(90deg); margin-right: 5px; font-size: 20px;"></i> <?php echo $airline[$i]; ?>
</p>
</div>
<div class="col-md-2">
<h5><i class="fas fa-clock"></i> Duration</h5>
<p name="duration"><?php echo $duration[$i]; ?></p>
<p class="card-text"><i class="fas fa-exchange-alt"></i> Stops: Non-stop</p>
</div>
<div class="col-md-2">
<h5><i class="fas fa-coins"></i> Price</h5>
<p name="duration"><?php echo $price[$i]; ?></p>
<p aria-controls="flightDetails<?php echo $i; ?>" aria-expanded="false"
data-target="#flightDetails<?php echo $i; ?>" data-toggle="collapse"
class="collapsed text-right h4"><i class="fa fa-angle-down"></i></p>
</div>
</div>
</div>
<a class="btn btn-primary" href="#"><i class="fas fa-check mr-2"></i>Book Now</a>
<button type="submit" class="btn btn-primary"><i class="fas fa-check mr-2"></i>Book Now</button>
</form>
</div>

<div class="collapse" id="flightDetails<?php echo $i; ?>" style="">
Expand All @@ -184,14 +197,16 @@
<div class="col-md-12">
<div class="row justify-content-center">
<div class="pt-3 pl-3 pr-3 mb-3 card col-md-6">
<p><strong><i class="fas fa-plane"></i> Airline:</strong> <?php echo $airline[$i]; ?>
<p><strong><i class="fas fa-plane"></i>
Airline:</strong> <?php echo $airline[$i]; ?>
</p>
<p><strong><i class="fas fa-plane"></i> Flight:</strong> <?php echo $from[$i]; ?>
| <?php echo $to[$i]; ?></p>
</div>
<div class="ml-3 pt-3 card mb-3 col-md-5">
<p><strong><i class="fas fa-star"></i> Class:</strong> Economy</p>
<p><strong><i class="fas fa-clock"></i> Duration:</strong> <?php echo $duration[$i]; ?>
<p><strong><i class="fas fa-clock"></i>
Duration:</strong> <?php echo $duration[$i]; ?>
</p>
</div>
<div class="pt-3 pl-3 pr-3 card col-md-6">
Expand Down Expand Up @@ -249,11 +264,81 @@ class="mb-0 vertical-dash-icon fas fa-minus fa-fw align-middle"
</div>
</div>


<?php
//Loop for destination data
}
?>
<div class="container">
<span style="
font-family: Pangea Text,Helvetica,Arial,sans-serif;
font-size: 14px;
font-weight: 600;
" class="text-muted">PLAN YOUR TRIP</span>
<h1 style="
font-family: Pangea Text,Helvetica,Arial,sans-serif;
font-size: 48px;
font-weight: 600;
">Where to next?</h1>
<div class="row">
<div class="col-md-4">
<div class="card mb-3">
<img src="assets/img/flightbody1.jpg" class="card-img-top" alt="Destination 1">

</div>
<h3 class="card-title font-weight-bold">Indonesia</h3>
</div>
<div class="col-md-4">
<div class="card mb-3">
<img src="assets/img/flightbody2.jpg" class="card-img-top" alt="Destination 1">

</div>
<h3 class="card-title font-weight-bold">Amazon</h3>
</div>
<div class="col-md-4">
<div class="card mb-3">
<img src="assets/img/flightbody3.jpg" class="card-img-top" alt="Destination 1">

</div>
<h3 class="card-title font-weight-bold">Dominica</h3>
</div>

</div>

<h2>Top Deals</h2>
<div class="row">
<div class="col-md-4">
<div class="card">
<img src="assets/img/bali.jpg" class="card-img-top" alt="Deal 1">
<div class="card-body">
<h5 class="card-title">Flight + Hotel to Bali</h5>
<p class="card-text">Experience the beauty and tranquility of Bali with our special package.</p>
<a href="#" class="btn btn-primary">View Deal</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<img src="assets/img/cancun.jpg" class="card-img-top" alt="Deal 2">
<div class="card-body">
<h5 class="card-title">All-Inclusive Resort in Cancun</h5>
<p class="card-text">Enjoy a luxurious and worry-free vacation in Cancun.</p>
<a href="#" class="btn btn-primary">View Deal</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<img src="assets/img/europe.jpg" class="card-img-top" alt="Deal 3">
<div class="card-body">
<h5 class="card-title">European Cruise Package</h5>
<p class="card-text">Embark on a breathtaking journey through Europe's iconic cities.</p>
<a href="#" class="btn btn-primary">View Deal</a>
</div>
</div>
</div>
</div>
</div>
<?php
// Include the footer
include 'footer.php';
Expand Down
37 changes: 1 addition & 36 deletions gypsy/hotelbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,42 +542,7 @@
Zip code required.
</div>
</div>
<div class="col-md-4 mb-3">
<label for="rooms">Rooms</label>
<select class="custom-select d-block w-100" id="rooms" required="">
<option value="">Choose...</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
<div class="invalid-feedback">
Please select a valid country.
</div>
</div>
<div class="col-md-4 mb-3">
<label for="adults">Adults</label>
<select class="custom-select d-block w-100" id="adults" required="">
<option value="">Choose...</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
<div class="invalid-feedback">
Please select a valid country.
</div>
</div>
<div class="col-md-4 mb-3">
<label for="country">Children</label>
<select class="custom-select d-block w-100" id="country" required="">
<option value="">Choose...</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
<div class="invalid-feedback">
Please select a valid country.
</div>
</div>

</div>
<hr class="mb-4">
<div class="custom-control custom-checkbox">
Expand Down
Loading

0 comments on commit a366ae2

Please sign in to comment.