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
:
/
home
/
apca
/
public_html
/
Upload File:
files >> /home/apca/public_html/search.php
<?php include('includes/head.php'); include('includes/header.php');?> <section class="page-header listing_page"> <div class="container" style="width:90vw !important;"> <div class="page-header_wrap"> <div class="page-heading"> <h1>Search Result of keyword "<?php echo $_POST['searchdata'];?>"</h1> </div> <ul class="coustom-breadcrumb"> <li><a href="#">Home</a></li> <li>Motorcycle Listing</li> </ul> </div> </div> <!-- Dark Overlay--> <div class="dark-overlay"></div> </section> <!-- /Page Header--> <!--Listing--> <section class="listing-page"> <div class="container" style="width:90vw !important;" > <div class="row"> <div class="col-md-9 col-md-push-3"> <div class="result-sorting-wrapper"> <div class="sorting-count"> <?php //Query for Listing count $searchdata=$_POST['searchdata']; $sql = " SELECT tblvehicles.*, tblbrands.BrandName, tblbrands.id as bid FROM tblvehicles JOIN tblbrands ON tblbrands.id = tblvehicles.VehiclesBrand WHERE MATCH( ABS, EngineCapacity, EngineType, GasTankCapacity, horsepower, LicenseType, model, ModelYear, Passenger, Range1, Torque, transmission, Usage1, VehiclesOverview, Weight ) AGAINST(:search IN BOOLEAN MODE) OR MATCH(tblbrands.BrandName) AGAINST(:search IN BOOLEAN MODE)"; // Prepare the statement $query = $dbh->prepare($sql); // Bind the search term $query->bindParam(':search', $searchdata, PDO::PARAM_STR); // Execute the query $query->execute(); // Fetch results $results = $query->fetchAll(PDO::FETCH_OBJ); $cnt = $query->rowCount(); // Display results if ($cnt > 0) { foreach ($results as $row) { // echo"<a href='vehical-details.php?vhid=" . $row->id . "' style='color:#999999;'>"; // echo "Model: " . $row->model . "<br>"; // echo "Brand Name: " . $row->BrandName . "<br>"; if($row->VehiclesOverview){ // echo "Overview:<br /> " . truncateText($row->VehiclesOverview,40) . "<br>"; //echo "------------------------<br></a>"; }else{ echo "<br />"; } } } else { echo "No results found."; } ?> <p><span><?php echo htmlentities($cnt);?> Listings </span></p> </div> </div> <?php /** * $sql = "SELECT tblvehicles.*,tblbrands.BrandName,tblbrands.id as bid from tblvehicles * join tblbrands on tblbrands.id=tblvehicles.VehiclesBrand * where tblvehicles.VehiclesTitle=:search || tblvehicles.FuelType=:search || tblbrands.BrandName=:search || tblvehicles.ModelYear=:search"; * $query = $dbh -> prepare($sql); * $query -> bindParam(':search',$searchdata, PDO::PARAM_STR); * $query->execute(); * $results=$query->fetchAll(PDO::FETCH_OBJ); */ $cnt=1; if($query->rowCount() > 0) { foreach($results as $result) { ?> <div class="product-listing-m gray-bg"> <div class="product-listing-img"><img src="admin/img/vehicleimages/<?php echo htmlentities($result->Vimage1);?>" class="img-responsive" alt="Image" /> </a> </div> <div class="product-listing-content"> <h5><a href="vehical-details.php?vhid=<?php echo htmlentities($result->id);?>"><?php echo htmlentities($result->BrandName);?> <?php echo htmlentities($result->VehiclesTitle);?></a></h5> <p class="list-price">From $<?php echo number_format((htmlentities($result->four_hours)/4),2);?> per hour or as low as $<?php echo htmlentities($result->ten_days_plus);?> per day </p> <ul> <li><i class="fa fa-gears" aria-hidden="true"></i><?php echo htmlentities($result->EngineCapacity);?></li> <li><i class="fa fa-calendar" aria-hidden="true"></i><?php echo htmlentities($result->ModelYear);?> model</li> </ul> <?php $iconName=($result->LicenseType=="Motorcycle")? "motorcycle" : "car"; ?> <p><i class="fa fa-<?php echo $iconName; ?>" aria-hidden="true"></i> <?php echo htmlentities($result->LicenseType);?> License Required</p><br /> <p class="list-price"><?php echo truncateText(strip_tags($result->VehiclesOverview), 40);?> </p> <a href="vehical-details.php?vhid=<?php echo htmlentities($result->id);?>" class="btn">View Details <span class="angle_arrow"><i class="fa fa-angle-right" aria-hidden="true"></i></span></a> </div> </div> <?php }} ?> </div> <!--Side-Bar--> <aside class="col-md-3 col-md-pull-9"> <div class="sidebar_widget"> <div class="widget_heading"> <h5><i class="fa fa-filter" aria-hidden="true"></i> Find Your Motorcycle </h5> </div> <div class="sidebar_filter"> <form action="#" method="get"> <div class="form-group select"> <select class="form-control"> <option>Select Brand</option> <?php $sql = "SELECT * from tblbrands "; $query = $dbh -> prepare($sql); $query->execute(); $results=$query->fetchAll(PDO::FETCH_OBJ); $cnt=1; if($query->rowCount() > 0) { foreach($results as $result) { ?> <option value="<?php echo htmlentities($result->id);?>"><?php echo htmlentities($result->BrandName);?></option> <?php }} ?> </select> </div> <div class="form-group select"> <select class="form-control"> <option>Select Fuel Type</option> <option value="Petrol">Petrol</option> <option value="Diesel">Diesel</option> <option value="CNG">CNG</option> </select> </div> <div class="form-group"> <button type="submit" class="btn btn-block"><i class="fa fa-search" aria-hidden="true"></i> Search Motorcycles</button> </div> </form> </div> </div> <div class="sidebar_widget"> <div class="widget_heading"> <h5><i class="fa fa-Motorcycle" aria-hidden="true"></i> Recently Listed Motorcycles</h5> </div> <div class="recent_addedcars"> <ul> <?php $sql = "SELECT tblvehicles.*,tblbrands.BrandName,tblbrands.id as bid from tblvehicles join tblbrands on tblbrands.id=tblvehicles.VehiclesBrand order by id desc limit 4"; $query = $dbh -> prepare($sql); $query->execute(); $results=$query->fetchAll(PDO::FETCH_OBJ); $cnt=1; if($query->rowCount() > 0) { foreach($results as $result) { ?> <li class="gray-bg"> <div class="recent_post_img"> <a href="vehical-details.php?vhid=<?php echo htmlentities($result->id);?>"><img src="admin/img/vehicleimages/<?php echo htmlentities($result->Vimage1);?>" alt="image"></a> </div> <div class="recent_post_title"> <a href="vehical-details.php?vhid=<?php echo htmlentities($result->id);?>"><?php echo htmlentities($result->BrandName);?> , <?php echo htmlentities($result->VehiclesTitle);?></a> <p class="list-price">From $<?php echo number_format((htmlentities($result->four_hours)/4),2);?> per hour or as low as $<?php echo htmlentities($result->ten_days_plus);?> per day </p> </div> </li> <?php }} ?> </ul> </div> </div> </aside> <!--/Side-Bar--> </div> </div> </section> <!-- /Listing--> <!--Footer --> <?php include('includes/footer.php');?> <!-- /Footer--> <!--Back to top--> <div id="back-top" class="back-top"> <a href="#top"><i class="fa fa-angle-up" aria-hidden="true"></i> </a> </div> <!--/Back to top--> <!--Login-Form --> <?php include('includes/login.php');?> <!--/Login-Form --> <!--Register-Form --> <?php include('includes/registration.php');?> <!--/Register-Form --> <!--Forgot-password-Form --> <?php include('includes/forgotpassword.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>