BLACKSITE
:
216.73.217.4
:
104.37.75.190 / alpenpass.ca
:
Linux server3.pointsplan.com 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
:
/
home2
/
apca
/
www
/
Upload File:
files >> //home2/apca/www/my-booking.php
<?php session_start(); error_reporting(0); include('includes/config.php'); if(strlen($_SESSION['login'])==0) { header('location:index.php'); } else{ ?><!DOCTYPE HTML> <html lang="en"> <head> <title>Alpenpass Rental Portal - My Booking</title> <!--Bootstrap --> <link rel="stylesheet" href="assets/css/bootstrap.min.css" type="text/css"> <!--Custome Style --> <link rel="stylesheet" href="assets/css/style.css" type="text/css"> <!--OWL Carousel slider--> <link rel="stylesheet" href="assets/css/owl.carousel.css" type="text/css"> <link rel="stylesheet" href="assets/css/owl.transitions.css" type="text/css"> <!--slick-slider --> <link href="assets/css/slick.css" rel="stylesheet"> <!--bootstrap-slider --> <link href="assets/css/bootstrap-slider.min.css" rel="stylesheet"> <!--FontAwesome Font Style --> <link href="assets/css/font-awesome.min.css" rel="stylesheet"> <!-- Fav and touch icons --> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/images/favicon-icon/apple-touch-icon-144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/images/favicon-icon/apple-touch-icon-114-precomposed.html"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/images/favicon-icon/apple-touch-icon-72-precomposed.png"> <link rel="apple-touch-icon-precomposed" href="assets/images/favicon-icon/apple-touch-icon-57-precomposed.png"> <link rel="shortcut icon" href="assets/images/favicon-icon/favicon.png"> <!-- Google-Font--> <link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900" rel="stylesheet"> <!-- 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]--> </head> <body> <!--Header--> <?php include('includes/header.php');?> <!--Page Header--> <!-- /Header --> <!--Page Header--> <section class="page-header profile_page"> <div class="container"> <div class="page-header_wrap"> <div class="page-heading"> <h1>My Booking</h1> </div> <ul class="coustom-breadcrumb"> <li><a href="#">Home</a></li> <li>My Booking</li> </ul> </div> </div> <!-- Dark Overlay--> <div class="dark-overlay"></div> </section> <!-- /Page Header--> <?php $useremail=$_SESSION['login']; $sql = "SELECT * from tblusers where EmailId=:useremail "; $query = $dbh -> prepare($sql); $query -> bindParam(':useremail',$useremail, PDO::PARAM_STR); $query->execute(); $results=$query->fetchAll(PDO::FETCH_OBJ); $cnt=1; if($query->rowCount() > 0) { foreach($results as $result) { ?> <section class="user_profile inner_pages"> <div class="container"> <div class="user_profile_info gray-bg padding_4x4_40"> <div class="upload_user_logo"> <img src="assets/images/profile.png" alt="image"> </div> <div class="dealer_info"> <h5><?php echo htmlentities($result->FullName);?></h5> <p><?php echo htmlentities($result->Address);?><br> <?php echo htmlentities($result->City);?> <?php echo htmlentities($result->Country); }}?></p> </div> </div> <div class="row"> <div class="col-md-3 col-sm-3"> <?php include('includes/sidebar.php');?> <div class="col-md-8 col-sm-8"> <div class="profile_wrap"> <h5 class="uppercase underline">My Booikngs </h5> <div class="my_vehicles_list"> <ul class="vehicle_listing"> <?php $useremail=$_SESSION['login']; $sql = "SELECT tblvehicles.Vimage1 as Vimage1, tblvehicles.VehiclesTitle, tblvehicles.id as vid, tblbrands.BrandName, tblbooking.FromDate, tblbooking.ToDate, tblbooking.message, tblbooking.Status, tblbooking.amountCharged, tblbooking.rateName, DATEDIFF(tblbooking.ToDate, tblbooking.FromDate) as totaldays, tblbooking.BookingNumber from tblbooking join tblvehicles on tblbooking.VehicleId=tblvehicles.id join tblbrands on tblbrands.id=tblvehicles.VehiclesBrand where tblbooking.userEmail=:useremail order by tblbooking.id desc"; $query = $dbh -> prepare($sql); $query-> bindParam(':useremail', $useremail, PDO::PARAM_STR); $query->execute(); $results=$query->fetchAll(PDO::FETCH_OBJ); $cnt=1; if($query->rowCount() > 0) { foreach($results as $result) { ?> <li> <h4 style="color:red">Booking No #<?php echo htmlentities($result->BookingNumber);?></h4> <div class="vehicle_img"> <a href="vehical-details.php?vhid=<?php echo htmlentities($result->vid);?>"><img src="admin/img/vehicleimages/<?php echo htmlentities($result->Vimage1);?>" alt="image"></a> </div> <div class="vehicle_title"> <h6><a href="vehical-details.php?vhid=<?php echo htmlentities($result->vid);?>"> <?php echo htmlentities($result->BrandName);?> , <?php echo htmlentities($result->VehiclesTitle);?></a></h6> <p><b>From </b> <?php echo date("l, F d, Y",strtotime($result->FromDate))." at ".date("g:i A",strtotime($result->FromDate));?><br /> <b>To </b><br /> <?php echo date("l, F d, Y",strtotime($result->ToDate))." at ".date("g:i A",strtotime($result->ToDate));?></p> <div style="float: left"><p><b>Total Amount: </b> <?php echo htmlentities($result->amountCharged);?> </p> <div style="float: left"><p><b>Rate Information: </b> <?php echo htmlentities($result->rateName);?> </p></div> </div> <?php if($result->Status==1) { ?> <div class="vehicle_status"> <a href="#" class="btn outline btn-xs active-btn">Confirmed</a> <div class="clearfix"></div> </div> <?php } else if($result->Status==2) { ?> <div class="vehicle_status"> <a href="#" class="btn outline btn-xs">Cancelled</a> <div class="clearfix"></div> </div> <?php } else { ?> <div class="vehicle_status"> <a href="#" class="btn outline btn-xs">Not Confirmed yet</a> <div class="clearfix"></div> </div> <?php } ?> </li> <h5 style="color:blue">Invoice</h5> <table> <tr> <th>Motorcycle Name</th> <th>From Date</th> <th>To Date</th> <th>Billed Time</th> <th><div>Rental</div> <div style="margin-top: -5px; margin-bottom:0px; padding-bottom: 0px;">Amount</div><p style="font-size: 10px; font-weight: 100; line-height: 10px !important;margin-bottom:0px;">includes deposits, insurance and taxes</p></th> </tr> <tr> <td><?php echo htmlentities($result->VehiclesTitle);?>, <?php echo htmlentities($result->BrandName);?></td> <td><?php echo htmlentities($result->FromDate);?></td> <td> <?php echo htmlentities($result->ToDate);?></td> <td><?php echo htmlentities($tds=$result->rateName);?></td> <td> <?php echo "$".number_format(htmlentities($ppd=$result->amountCharged),2);?></td> </tr> <tr> <th colspan="4" style="text-align:center;"> Grand Total</th> <th><?php echo "$".number_format(htmlentities($ppd=$result->amountCharged),2);?></th> </tr> </table> <hr /> <?php }} else { ?> <h5 align="center" style="color:red">No booking yet</h5> <?php } ?> </ul> </div> </div> </div> </div> </div> </section> <!--/my-vehicles--> <?php include('includes/footer.php');?> <!-- Scripts --> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/bootstrap.min.js"></script> <script src="assets/js/interface.js"></script> <!--Switcher--> <script src="assets/switcher/js/switcher.js"></script> <!--bootstrap-slider-JS--> <script src="assets/js/bootstrap-slider.min.js"></script> <!--Slider-JS--> <script src="assets/js/slick.min.js"></script> <script src="assets/js/owl.carousel.min.js"></script> </body> </html> <?php } ?>