One Hat Cyber Team
Your IP :
216.73.216.186
Server IP :
84.32.84.66
Server :
Linux in-mum-web1837.main-hosting.eu 5.14.0-503.34.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Mar 27 06:00:50 EDT 2025 x86_64
Server Software :
LiteSpeed
PHP Version :
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
u322583024
/
domains
/
fahadauto.in
/
public_html
/
Edit File:
product.php
<!DOCTYPE html> <html lang="zxx"> <!-- Mirrored from html.awaikenthemes.com/novaride/light/cars.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 26 Mar 2025 04:43:35 GMT --> <head> <!-- Meta --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="author" content="Awaiken"> <!-- Page Title --> <title>Fahad Auto</title> <!-- Favicon Icon --> <link rel="shortcut icon" type="image/x-icon" href="images/main/Fahad-Auto-Palava-Logo-(1).png"> <!-- Google Fonts Css--> <link rel="preconnect" href="https://fonts.googleapis.com/"> <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin> <link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Epilogue:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet"> <!-- Bootstrap Css --> <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> <!-- SlickNav Css --> <link href="css/slicknav.min.css" rel="stylesheet"> <!-- Swiper Css --> <link rel="stylesheet" href="css/swiper-bundle.min.css"> <!-- Font Awesome Icon Css--> <link href="css/all.css" rel="stylesheet" media="screen"> <!-- Animated Css --> <link href="css/animate.css" rel="stylesheet"> <!-- Magnific Popup Core Css File --> <link rel="stylesheet" href="css/magnific-popup.css"> <!-- Mouse Cursor Css File --> <link rel="stylesheet" href="css/mousecursor.css"> <!-- Main Custom Css --> <link href="css/custom.css" rel="stylesheet" media="screen"> <style> </style> </head> <body> <!-- Preloader Start --> <!-- Preloader End --> <!-- Header Start --> <?php include 'header.php'; ?> <!-- Header End --> <!-- Page Header Start --> <div class="page-header bg-section parallaxie"> <div class="container"> <div class="row"> <div class="col-lg-12"> <!-- Page Header Box Start --> <div class="page-header-box"> <h1 class="text-anime-style-3" data-cursor="-opaque"></h1> <nav class="wow fadeInUp"> </nav> </div> <!-- Page Header Box End --> </div> </div> </div> </div> <!-- Page Header End --> <!-- Page Fleets Start --> <div class="page-fleets"> <div class="container"> <div class="row"> <div class="col-lg-3"> <!-- Fleets Sidebar Start --> <div class="fleets-sidebar wow fadeInUp"> <!-- Fleets Search Box Start --> <div class="fleets-search-box"> <form id="fleetsForm" action="#" method="POST"> <div class="form-group"> <input type="text" name="search" class="form-control" id="search" placeholder="Search..." required> <button type="submit" class="section-icon-btn"><i class="fa-solid fa-magnifying-glass"></i></button> </div> </form> </div> <!-- Fleets Search Box End --> <div class="fleets-sidebar-list-box"> <!-- Fleets Sidebar List Start --> <div class="fleets-sidebar-list"> <div class="fleets-list-title"> <h3>categories</h3> </div> <ul> <?php // Include the database connection file include('db.connect.php'); // Fetch categories from the 'categories' table $sql = "SELECT * FROM categories"; $result = $conn->query($sql); if ($result->num_rows > 0) { // Loop through each category and create a checkbox while ($row = $result->fetch_assoc()) { $category_id = htmlspecialchars($row['id']); // Sanitizing data $category_name = htmlspecialchars($row['name']); ?> <li class="form-check"> <input class="form-check-input" type="checkbox" value="<?php echo $category_id; ?>" id="checkbox<?php echo $category_id; ?>"> <label class="form-check-label" for="checkbox<?php echo $category_id; ?>"> <?php echo $category_name; ?> </label> </li> <?php } } else { echo "<p>No categories found.</p>"; } // Close the database connection $conn->close(); ?> </ul> </div> <!-- Fleets Sidebar List End --> <!-- Fleets Sidebar List Start --> <!-- Fleets Sidebar List End --> <!-- Fleets Sidebar List Start --> <!-- Fleets Sidebar List End --> </div> </div> <!-- Fleets Sidebar End --> </div> <div class="col-lg-9"> <!-- Fleets Collection Box Start --> <div class="fleets-collection-box"> <div class="row"> <?php // Include the database connection file include('db.connect.php'); // Fetch car data from the 'cars' table $sql = "SELECT * FROM cars"; $result = $conn->query($sql); if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { ?> <div class="col-lg-4 col-md-6"> <div class="perfect-fleet-item fleets-collection-item wow fadeInUp"> <a href="product-details.php?car_id=<?php echo htmlspecialchars($row['id']); ?>&category_id=<?php echo htmlspecialchars($row['category_id']); ?>"> <div class="image-box"> <img src="admin/uploads/<?php echo htmlspecialchars($row['car_image1']); ?>" alt="Car Image"> </div> <div class="perfect-fleet-content"> <div class="perfect-fleet-title"> <h3><?php echo ($row['category_id'] == 9) ? 'Luxury Car' : 'Standard Car'; ?></h3> <h2><?php echo htmlspecialchars($row['car_name']); ?> - <?php echo htmlspecialchars($row['year']); ?></h2> </div> <div class="perfect-fleet-body"> <ul class="fleet-details-list"> <li><i class="fas fa-car" style="color: #7b7173;"></i> <strong style="color: #7b7173; font-size: 10px;">Modal Number:</strong> <span style="color: #7b7173;"><?php echo htmlspecialchars($row['modal_number']); ?></span> </li> <li><i class="fas fa-chair" style="color: #7b7173;"></i> <strong style="color: #7b7173; font-size: 10px;">Seating Capacity:</strong> <span style="color:#7b7173;"><?php echo htmlspecialchars($row['seating_capacity']); ?></span> </li> <li><i class="fas fa-palette" style="color:#7b7173;"></i> <strong style="color: #7b7173; font-size: 10px;">Color:</strong> <span style="color: #7b7173;"><?php echo htmlspecialchars($row['car_color']); ?></span> </li> <li><i class="fas fa-gas-pump" style="color: #7b7173;"></i> <strong style="color: #7b7173; font-size: 10px;">Fuel Type:</strong> <span style="color: #7b7173;"><?php echo htmlspecialchars($row['fuel_type']); ?></span> </li> <li><i class="fas fa-tachometer-alt" style="color: #7b7173;"></i> <strong style="color:#7b7173; font-size: 10px;">Kilometers Run:</strong> <span style="color: #7b7173;"><?php echo htmlspecialchars($row['km_run']); ?> km</span> </li> </ul> </div> <div class="perfect-fleet-footer"> <div class="perfect-fleet-pricing"> <h2>₹<?php echo number_format($row['car_price']); ?><span>/day</span></h2> </div> <div class="perfect-fleet-btn"> <a href="product-details.php?car_id=<?php echo htmlspecialchars($row['id']); ?>&category_id=<?php echo htmlspecialchars($row['category_id']); ?>" class="section-icon-btn"> <img src="images/arrow-white.svg" alt="Book Now"> </a> </div> </div> </div> </a> </div> </div> <?php } } else { echo "<p>No cars available.</p>"; } // Close the database connection $conn->close(); ?> <div class="col-lg-12"> <!-- Fleets Pagination Start --> <div class="fleets-pagination wow fadeInUp" data-wow-delay="0.5s"> <ul class="pagination"> <li><a href="#"><i class="fas fa-arrow-left-long"></i></a></li> <li class="active"><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#"><i class="fas fa-arrow-right-long"></i></a></li> </ul> </div> <!-- Fleets Pagination End --> </div> </div> </div> </div> <!-- Fleets Collection Box End --> </div> </div> </div> </div> <!-- Page Fleets End --> <!-- Footer Start --> <?php include 'footer.php'; ?> <!-- Footer End --> <!-- Jquery Library File --> <script src="js/jquery-3.7.1.min.js"></script> <!-- Jquery Ui Js File --> <script src="js/jquery-ui.js"></script> <!-- Bootstrap js file --> <script src="js/bootstrap.min.js"></script> <!-- Validator js file --> <script src="js/validator.min.js"></script> <!-- SlickNav js file --> <script src="js/jquery.slicknav.js"></script> <!-- Swiper js file --> <script src="js/swiper-bundle.min.js"></script> <!-- Counter js file --> <script src="js/jquery.waypoints.min.js"></script> <script src="js/jquery.counterup.min.js"></script> <!-- Magnific js file --> <script src="js/jquery.magnific-popup.min.js"></script> <!-- SmoothScroll --> <script src="js/SmoothScroll.js"></script> <!-- Parallax js --> <script src="js/parallaxie.js"></script> <!-- MagicCursor js file --> <script src="js/gsap.min.js"></script> <script src="js/magiccursor.js"></script> <!-- Text Effect js file --> <script src="js/SplitText.js"></script> <script src="js/ScrollTrigger.min.js"></script> <!-- YTPlayer js File --> <script src="js/jquery.mb.YTPlayer.min.js"></script> <!-- Wow js file --> <script src="js/wow.js"></script> <!-- Main Custom js file --> <script src="js/function.js"></script> <script src="../../../demo.awaikenthemes.com/assets/js/theme-panel.js"></script> </body> <!-- Mirrored from html.awaikenthemes.com/novaride/light/cars.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 26 Mar 2025 04:43:36 GMT --> </html>
Simpan