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
/
admin
/
Upload File:
files >> //home2/apca/www/admin/edit-vehicle.php
<?php session_start(); //error_reporting(0); include('includes/config.php'); if(strlen($_SESSION['alogin'])==0) { header('location:index.php'); } else{ if(isset($_POST['submit'])) { $insFull = $_POST['insFull']; $ins4 = $_POST['ins4']; $ins1_2 = $_POST['ins1_2']; $security_deposit = $_POST['security_deposit']; $vehicletitle=$_POST['vehicletitle']; $brand=$_POST['brandname']; $VehiclesOverview=$_POST['VehiclesOverview']; $hourly=$_POST['hourly']; $two_hours= $_POST['two_hours']; $four_hours= $_POST['four_hours']; $all_day= $_POST['all_day']; $twentyfour_hours= $_POST['twentyfour_hours']; $two_to_nine_days= $_POST['two_to_nine_days']; $ten_days_plus= $_POST['ten_days_plus']; $seasonal_discount= $_POST['seasonal_discount']; $EngineType=$_POST['EngineType']; $ModelYear=$_POST['ModelYear']; $EngineCapacity=$_POST['EngineCapacity']; $GasTankCapacity=$_POST['GasTankCapacity']; $Range1=$_POST['Range1']; $Torque=$_POST['Torque']; $horsepower=$_POST['horsepower']; $transmission=$_POST['transmission']; $Usage1=$_POST['Usage1']; $Passenger=$_POST['Passenger']; $LicenseType=$_POST['LicenseType']; $Weight=$_POST['Weight']; $RiderExperience=$_POST['RiderExperience']; $ABS=$_POST['ABS']; $model=$_POST['model']; $status=$_POST['status']; $metaTitle= $_POST['metaTitle']; $metaDescription = $_POST['metaDescription']; $id=intval($_GET['id']); } if($_POST['process']<>'add'){ $sql = "UPDATE tblvehicles SET VehiclesTitle = :vehicletitle, VehiclesBrand = :brand, VehiclesOverview = :VehiclesOverview, hourly = :hourly, two_hours = :two_hours, four_hours = :four_hours, all_day = :all_day, twentyfour_hours = :twentyfour_hours, two_to_nine_days = :two_to_nine_days, ten_days_plus = :ten_days_plus, seasonal_discount = :seasonal_discount, EngineType = :EngineType, ModelYear = :ModelYear, EngineCapacity = :EngineCapacity, GasTankCapacity = :GasTankCapacity, Range1 = :Range1, Torque = :Torque, horsepower = :horsepower, transmission = :transmission, Usage1 = :Usage1, Passenger = :Passenger, LicenseType = :LicenseType, Weight = :Weight, RiderExperience = :RiderExperience, ABS = :ABS, model = :model, security_deposit = :security_deposit, ins1_2 = :ins1_2, ins4 = :ins4, insFull = :insFull, status = :status, metaTitle = :metaTitle, metaDescription = :metaDescription WHERE id = :id"; $query = $dbh->prepare($sql); $query->bindParam(':vehicletitle',$vehicletitle,PDO::PARAM_STR); $query->bindParam(':brand',$brand,PDO::PARAM_STR); $query->bindParam(':VehiclesOverview',$VehiclesOverview,PDO::PARAM_STR); $query->bindParam(':hourly',$hourly,PDO::PARAM_STR); $query->bindParam(':two_hours',$two_hours,PDO::PARAM_STR); $query->bindParam(':four_hours',$four_hours,PDO::PARAM_STR); $query->bindParam(':all_day',$all_day,PDO::PARAM_STR); $query->bindParam(':twentyfour_hours',$twentyfour_hours,PDO::PARAM_STR); $query->bindParam(':two_to_nine_days',$two_to_nine_days,PDO::PARAM_STR); $query->bindParam(':ten_days_plus',$ten_days_plus,PDO::PARAM_STR); $query->bindParam(':seasonal_discount',$seasonal_discount,PDO::PARAM_STR); $query->bindParam(':EngineType',$EngineType,PDO::PARAM_STR); $query->bindParam(':ModelYear',$ModelYear,PDO::PARAM_STR); $query->bindParam(':EngineCapacity',$EngineCapacity,PDO::PARAM_STR); $query->bindParam(':GasTankCapacity',$GasTankCapacity,PDO::PARAM_STR); $query->bindParam(':Range1',$Range1,PDO::PARAM_STR); $query->bindParam(':Torque',$Torque,PDO::PARAM_STR); $query->bindParam(':horsepower',$horsepower,PDO::PARAM_STR); $query->bindParam(':transmission',$transmission,PDO::PARAM_STR); $query->bindParam(':Usage1',$Usage1,PDO::PARAM_STR); $query->bindParam(':Passenger',$Passenger,PDO::PARAM_STR); $query->bindParam(':LicenseType',$LicenseType,PDO::PARAM_STR); $query->bindParam(':Weight',$Weight,PDO::PARAM_STR); $query->bindParam(':RiderExperience',$RiderExperience,PDO::PARAM_STR); $query->bindParam(':ABS',$ABS,PDO::PARAM_STR); $query->bindParam(':model',$model,PDO::PARAM_STR); $query->bindParam(':security_deposit',$security_deposit,PDO::PARAM_STR); $query->bindParam(':ins1_2',$ins1_2,PDO::PARAM_STR); $query->bindParam(':ins4',$ins4,PDO::PARAM_STR); $query->bindParam(':insFull',$insFull,PDO::PARAM_STR); $query->bindParam(':status',$status,PDO::PARAM_STR); $query->bindParam(':metaTitle', $metaTitle, PDO::PARAM_STR); $query->bindParam(':metaDescription', $metaDescription, PDO::PARAM_STR); $query->bindParam(':id',$id,PDO::PARAM_STR); $query->execute(); if ($query->rowCount() > 0) { $msg .= "<strong>SUCCESS:</strong> Data updated successfully"; } elseif($_POST){ $msg.= "<strong>No rows were updated.</strong> Check if the `id` exists or if the data is already the same."; } //$sqlDebug = $query->queryString; //echo "Executed Query: " . $sqlDebug; $sqlDebug = "UPDATE tblvehicles SET VehiclesTitle='$vehicletitle', VehiclesBrand='$brand', VehiclesOverview='$VehiclesOverview', hourly='$hourly', two_hours='$two_hours', four_hours='$four_hours', all_day='$all_day', twentyfour_hours='$twentyfour_hours', two_to_nine_days='$two_to_nine_days', ten_days_plus='$ten_days_plus', seasonal_discount='$seasonal_discount', EngineType='$EngineType', ModelYear='$ModelYear', EngineCapacity='$EngineCapacity', GasTankCapacity='$GasTankCapacity', Range1='$Range1', Torque='$Torque', horsepower='$horsepower', transmission='$transmission', Usage1='$Usage1', Passenger='$Passenger', LicenseType='$LicenseType', Weight='$Weight', RiderExperience='$RiderExperience', ABS='$ABS', model='$model', status='$status', insFull = '$insFull', ins4 = '$ins4', ins1_2 = '$ins1_2', security_deposit = '$security_deposit', metaTitle = '$metaTitle', metaDescription = '$metaDescription' WHERE id='$id'"; //echo $sqlDebug." at ".__LINE__; }else{ $sql = "INSERT INTO tblvehicles( VehiclesTitle, VehiclesBrand, VehiclesOverview, hourly, two_hours, four_hours, all_day, twentyfour_hours, two_to_nine_days, ten_days_plus, seasonal_discount, EngineType, ModelYear, EngineCapacity, GasTankCapacity, Range1, Torque, horsepower, transmission, Usage1, Passenger, LicenseType, Weight, RiderExperience, ABS, model, insFull, ins4, ins1_2, security_deposit, status, metaTitle, metaDescription ) VALUES( :VehiclesTitle, :VehiclesBrand, :VehiclesOverview, :hourly, :two_hours, :four_hours, :all_day, :twentyfour_hours, :two_to_nine_days, :ten_days_plus, :seasonal_discount, :EngineType, :ModelYear, :EngineCapacity, :GasTankCapacity, :Range1, :Torque, :horsepower, :transmission, :Usage1, :Passenger, :LicenseType, :Weight, :RiderExperience, :ABS, :model, :insFull, :ins4, :ins1_2, :security_deposit, :status, :metaTitle, :metaDescription )"; $query = $dbh->prepare($sql); $query->bindParam(':VehiclesTitle', $vehicletitle, PDO::PARAM_STR); $query->bindParam(':VehiclesBrand', $brand, PDO::PARAM_STR); $query->bindParam(':VehiclesOverview', $VehiclesOverview, PDO::PARAM_STR); $query->bindParam(':hourly', $hourly, PDO::PARAM_STR); $query->bindParam(':two_hours', $two_hours, PDO::PARAM_STR); $query->bindParam(':four_hours', $four_hours, PDO::PARAM_STR); $query->bindParam(':all_day', $all_day, PDO::PARAM_STR); $query->bindParam(':twentyfour_hours', $twentyfour_hours, PDO::PARAM_STR); $query->bindParam(':two_to_nine_days', $two_to_nine_days, PDO::PARAM_STR); $query->bindParam(':ten_days_plus', $ten_days_plus, PDO::PARAM_STR); $query->bindParam(':seasonal_discount', $seasonal_discount, PDO::PARAM_STR); $query->bindParam(':EngineType', $EngineType, PDO::PARAM_STR); $query->bindParam(':ModelYear', $ModelYear, PDO::PARAM_STR); $query->bindParam(':EngineCapacity', $EngineCapacity, PDO::PARAM_STR); $query->bindParam(':GasTankCapacity', $GasTankCapacity, PDO::PARAM_STR); $query->bindParam(':Range1', $Range1, PDO::PARAM_STR); $query->bindParam(':Torque', $Torque, PDO::PARAM_STR); $query->bindParam(':horsepower', $horsepower, PDO::PARAM_STR); $query->bindParam(':transmission', $transmission, PDO::PARAM_STR); $query->bindParam(':Usage1', $Usage1, PDO::PARAM_STR); $query->bindParam(':Passenger', $Passenger, PDO::PARAM_STR); $query->bindParam(':LicenseType', $LicenseType, PDO::PARAM_STR); $query->bindParam(':Weight', $Weight, PDO::PARAM_STR); $query->bindParam(':RiderExperience', $RiderExperience, PDO::PARAM_STR); $query->bindParam(':ABS', $ABS, PDO::PARAM_STR); $query->bindParam(':model', $model, PDO::PARAM_STR); $query->bindParam(':security_deposit', $security_deposit, PDO::PARAM_STR); $query->bindParam(':ins1_2', $ins1_2, PDO::PARAM_STR); $query->bindParam(':ins4', $ins4, PDO::PARAM_STR); $query->bindParam(':insFull', $insFull, PDO::PARAM_STR); $query->bindParam(':status', $status, PDO::PARAM_STR); $query->bindParam(':metaTitle', $metaTitle, PDO::PARAM_STR); $query->bindParam(':metaDescription', $metaDescription, PDO::PARAM_STR); $query->execute(); $lastInsertId = $dbh->lastInsertId(); if ($lastInsertId) { $msg .= "<strong>SUCCESS:</strong> Vehicle posted successfully"; } else { $msg .= "<strong>Something went wrong.</strong> Please try again"; } } ?> <!doctype html> <html lang="en" class="no-js"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <meta name="theme-color" content="#3e454c"> <title>Alpenpass Motorcycle Rental Portal | Admin Vehicle Info</title> <!-- Font awesome --> <link rel="stylesheet" href="css/font-awesome.min.css"> <!-- Sandstone Bootstrap CSS --> <link rel="stylesheet" href="css/bootstrap.min.css"> <!-- Bootstrap Datatables --> <link rel="stylesheet" href="css/dataTables.bootstrap.min.css"> <!-- Bootstrap social button library --> <link rel="stylesheet" href="css/bootstrap-social.css"> <!-- Bootstrap select --> <link rel="stylesheet" href="css/bootstrap-select.css"> <!-- Bootstrap file input --> <link rel="stylesheet" href="css/fileinput.min.css"> <!-- Awesome Bootstrap checkbox --> <link rel="stylesheet" href="css/awesome-bootstrap-checkbox.css"> <!-- Admin Stye --> <link rel="stylesheet" href="css/style.css"> <script type="text/javascript" src="nicEdit.js"></script> <script type="text/javascript"> bkLib.onDomLoaded(function() { nicEditors.allTextAreas() }); </script> <style> .errorWrap { padding: 10px; margin: 0 0 20px 0; background: #fff; border-left: 4px solid #dd3d36; -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); } .succWrap{ padding: 10px; margin: 0 0 20px 0; background: #CCFFCC; border-left: 4px solid #5cb85c; -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); } input{ margin-top: 10px; } label{ margin-top: 10px; } .imgBlock{ display: block; margin-top: 5px; margin-bottom: 5px; } .sel{ margin-top: 20px; padding:8px 30px; text-align:center; border-color: #dfd7ca; background-color:#fff; } </style> </head> <body> <?php include('includes/header.php');?> <div class="ts-main-content"> <?php include('includes/leftbar.php');?> <div class="content-wrapper"> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <?php if($_GET['process']=='add'){ echo"<h2 class=\"page-title\">Add Vehicle</h2>"; }else{ echo" <div class='col-sm-8'><h2 class=\"page-title\" style='display:inline;'>Edit Vehicle</h2> <form method=\"POST\" action=\"duplicate_vehicle.php\" style=\"display:inline !important;\"> <input type=\"hidden\" name=\"vehicle_id\" value='".$_GET['id']."'> <button type=\"submit\" class=\"btn btn-primary\" style=\"display:inline !important; margin-bottom: 20px; margin-left: 100px;\">Duplicate Vehicle</button> </form></div>"; } ?> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading">Basic Info</div> <div class="panel-body"> <?php $msg.=($_GET['message'])? $_GET['message'] : ""; if($msg){?><div class="succWrap"><?php echo $msg; ?> </div><?php } ?> <?php /** $id=intval($_GET['id']); $sql ="SELECT tblvehicles.*,tblbrands.BrandName,tblbrands.id as bid from tblvehicles join tblbrands on tblbrands.id=tblvehicles.VehiclesBrand where tblvehicles.id=:id"; $query = $dbh -> prepare($sql); $query-> bindParam(':id', $id, PDO::PARAM_STR); $query->execute(); $results=$query->fetchAll(PDO::FETCH_OBJ); $cnt=1; if($query->rowCount() > 0) { foreach($results as $result) { */ $id = isset($_GET['id']) ? intval($_GET['id']) : 0; $results = null; // Initialize $results to null if ($id > 0) { // Run the SQL query only if $id is greater than 0 $sql = "SELECT tblvehicles.*, tblbrands.BrandName, tblbrands.id as bid FROM tblvehicles JOIN tblbrands ON tblbrands.id = tblvehicles.VehiclesBrand WHERE tblvehicles.id = :id"; $query = $dbh->prepare($sql); $query->bindParam(':id', $id, PDO::PARAM_INT); $query->execute(); if ($query->rowCount() > 0) { $result = $query->fetch(PDO::FETCH_OBJ); // Fetch only the first result } } ?> <form method="post" class="form-horizontal" enctype="multipart/form-data"> <div class="form-group"> <label class="col-sm-2 control-label">Vehicle Name<span style="color:red">*</span></label> <div class="col-sm-4"> <input type="hidden" name="process" value="<?php echo $_GET['process']; ?>"> <input type="text" name="vehicletitle" class="form-control" value="<?php echo htmlentities($result->VehiclesTitle)?>" required> </div> <label class="col-sm-1 control-label">Vehicle Model<span style="color:red">*</span></label> <div class="col-sm-2"> <input type="text" name="model" class="form-control" value="<?php echo htmlentities($result->model)?>" required> </div> <label class="col-sm-1 control-label">Select Brand<span style="color:red">*</span></label> <div class="col-sm-2"> <select class="selectpickerXX btnXX sel " name="brandname" required> <option value="">Choose Brand </option> <?php $ret="select id,BrandName from tblbrands"; $query= $dbh -> prepare($ret); //$query->bindParam(':id',$id, PDO::PARAM_STR); $query-> execute(); $resultss = $query -> fetchAll(PDO::FETCH_OBJ); if($query -> rowCount() > 0) { foreach($resultss as $results) { $selected=($results->id==$result->VehiclesBrand)? ' selected ' : ''; ?> <option value="<?php echo $results->id;?>" <?php echo $selected;?> ><?php echo htmlentities($results->BrandName);?></option> <?php } }?> </select> <?php /** <option value="<?php echo htmlentities($result->bid);?>"><?php echo htmlentities($bdname=$result->BrandName); ?> </option> <?php $ret="select id,BrandName from tblbrands"; $query= $dbh -> prepare($ret); //$query->bindParam(':id',$id, PDO::PARAM_STR); $query-> execute(); $resultss = $query -> fetchAll(PDO::FETCH_OBJ); if($query -> rowCount() > 0) { foreach($resultss as $results) { if($results->BrandName==$bdname) { continue; } else{ ?> <option value="<?php echo htmlentities($results->id);?>"><?php echo htmlentities($results->BrandName);?></option> <?php }}} ?> </select> */ ?> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Model Year<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="ModelYear" class="form-control" value="<?php echo htmlentities($result->ModelYear);?>" required> </div> <label class="col-sm-1 control-label">Status<span style="color:red">*</span></label> <div class="col-sm-3"> <select class="selectpickerXX btnXX sel " name="status" required> <option value="">Status </option> <?php $statusArray=array("Active","Inactive"); foreach($statusArray as $status) { echo "Got to line ".__LINE__." in ".__FILE__." status is $status and result->status is ".$result->status." <br /><br />"; $selected=($result->status==$status)? ' selected ' : ''; ?> <option value="<?php echo $status;?>" <?php echo $selected;?> ><?php echo $status;?></option> <?php } ?> </select> </div> <div class="hr-dashed"></div> <div class="form-group" style="margin-left: 40px;"> <label class="col-sm-2 control-label">Vehical Overview<span style="color:red">*</span></label> <div class="col-sm-10"> <?php // <textarea class="form-control" name="VehiclesOverview" rows="8" required> ?> <textarea class="form-control" name="VehiclesOverview" id="pgedetails" style="resize: vertical; height: 400px;" required> <?php echo htmlentities($result->VehiclesOverview);?></textarea> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Hourly<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="hourly" class="form-control" value="<?php echo htmlentities($result->hourly);?>" required> </div> <label class="col-sm-1 control-label">2 Hours<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="two_hours" class="form-control" value="<?php echo htmlentities($result->two_hours);?>" required> </div> <label class="col-sm-1 control-label">4 Hours<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="four_hours" class="form-control" value="<?php echo htmlentities($result->four_hours);?>" required> </div> <label class="col-sm-1 control-label">All Day<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="all_day" class="form-control" value="<?php echo htmlentities($result->all_day);?>" required> </div> <label class="col-sm-1 control-label">24 Hours<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="twentyfour_hours" class="form-control" value="<?php echo htmlentities($result->twentyfour_hours);?>" required> </div> <label class="col-sm-2 control-label">2 to 9 Days<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="two_to_nine_days" class="form-control" value="<?php echo htmlentities($result->two_to_nine_days);?>" required> </div> <label class="col-sm-1 control-label">10 Days +<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="ten_days_plus" class="form-control" value="<?php echo htmlentities($result->ten_days_plus);?>" required> </div> <label class="col-sm-1 control-label">Seasonal Discount %<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="seasonal_discount" class="form-control" value="<?php echo htmlentities($result->seasonal_discount);?>" required> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Select Engine Type<span style="color:red">*</span></label> <div class="col-sm-2"> <input class="form-control" value="<?php echo htmlentities($result->EngineType);?>" name="EngineType" required> </div> <label class="col-sm-1 control-label">Engine Capacity<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="EngineCapacity" class="form-control" value="<?php echo htmlentities($result->EngineCapacity);?>" required> </div> <label class="col-sm-1 control-label">Gas Tank Capacity<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="GasTankCapacity" class="form-control" value="<?php echo htmlentities($result->GasTankCapacity);?>" required> </div> <label class="col-sm-1 control-label">Range<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="Range1" class="form-control" value="<?php echo htmlentities($result->Range1);?>" required> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Torque<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="Torque" class="form-control" value="<?php echo htmlentities($result->Torque);?>" required> </div> <label class="col-sm-1 control-label">Horsepower<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="horsepower" class="form-control" value="<?php echo htmlentities($result->horsepower);?>" required> </div> <label class="col-sm-1 control-label">Transmission<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="transmission" class="form-control" value="<?php echo htmlentities($result->transmission);?>" required> </div> <label class="col-sm-1 control-label">Use<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="Usage1" class="form-control" value="<?php echo htmlentities($result->Usage1);?>" required> </div> <label class="col-sm-1 control-label">Passenger<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="Passenger" class="form-control" value="<?php echo htmlentities($result->Passenger);?>" required> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">License Type<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="LicenseType" class="form-control" value="<?php echo htmlentities($result->LicenseType);?>" required> </div> <label class="col-sm-1 control-label">Weight<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="Weight" class="form-control" value="<?php echo htmlentities($result->Weight);?>" required> </div> <label class="col-sm-1 control-label">Rider Experience<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="RiderExperience" class="form-control" value="<?php echo htmlentities($result->RiderExperience);?>" required> </div> <label class="col-sm-1 control-label">ABS<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="ABS" class="form-control" value="<?php echo htmlentities($result->ABS);?>" required> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Security Deposit<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="security_deposit" class="form-control" value="<?php echo htmlentities($result->security_deposit);?>" required> </div> <label class="col-sm-1 control-label">Insurance<br />1 to 2 Hours<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="ins1_2" class="form-control" value="<?php echo htmlentities($result->ins1_2);?>" required> </div> <label class="col-sm-1 control-label">Insurance<br />4 hours<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="ins4" class="form-control" value="<?php echo htmlentities($result->ins4);?>" required> </div> <label class="col-sm-1 control-label">Insurance<br />Per Day<span style="color:red">*</span></label> <div class="col-sm-1"> <input type="text" name="insFull" class="form-control" value="<?php echo htmlentities($result->insFull);?>" required> </div> </div> <div class="row"> <label class="col-sm-2 control-label">Meta Title Tag</label> <div class="col-sm-9"> <input type="text" name="metaTitle" class="form-control" value="<?php echo htmlentities($result->metaTitle);?>" > </div> <label class="col-sm-2 control-label">Meta Description</label> <div class="col-sm-9"> <input type="text" name="metaDescription" class="form-control" value="<?php echo htmlentities($result->metaDescription);?>" > </div> </div> <?php if($_GET['process']<>"add"){ ?> <div class="hr-dashed"></div> <div class="form-group" > <div class="col-sm-12" style="margin-left: 20px;"> <h4><b>Vehicle Images</b></h4> </div> </div> <div class="form-group" style="margin-left: 20px;"> <div class="col-sm-4"> Image 1 <div class="imgBlock"><img src="img/vehicleimages/<?php echo htmlentities($result->Vimage1);?>" width="300" style="border:solid 1px #000"></div> <a href="changeimage.php?imgid=<?php echo htmlentities($result->id)?>&imgName=img1">Add / Change Image 1</a> </div> <div class="col-sm-4"> Image 2<div class="imgBlock"><img src="img/vehicleimages/<?php echo htmlentities($result->Vimage2);?>" width="300" style="border:solid 1px #000"></div> <a href="changeimage.php?imgid=<?php echo htmlentities($result->id)?>&imgName=img2">Add / Change Image 2</a> </div> <div class="col-sm-4"> Image 3<div class="imgBlock"><img src="img/vehicleimages/<?php echo htmlentities($result->Vimage3);?>?imgName=img3" width="300" style="border:solid 1px #000"></div> <div style="clear: both;"></div> <a href="changeimage.php?imgid=<?php echo htmlentities($result->id)?>&imgName=img3">Add / Change Image 3</a> </div> </div> <div class="form-group" style="margin-left: 20px;"> <div class="col-sm-4"> Image 4<div class="imgBlock"><img src="img/vehicleimages/<?php echo htmlentities($result->Vimage4);?>" width="300" style="border:solid 1px #000"></div> <a href="changeimage.php?imgid=<?php echo htmlentities($result->id)?>&imgName=img4">Add / Change Image 4</a> </div> <div class="col-sm-4"> Image 5 <div class="imgBlock"><img src="img/vehicleimages/<?php echo htmlentities($result->Vimage5);?>" width="300" style="border:solid 1px #000"></div> <div class="imgBlock"><a href="changeimage.php?imgid=<?php echo htmlentities($result->id)?>&imgName=img5"></div>Add / Change Image 5</a> </div> </div> <div class="hr-dashed"></div> <?php }else{?> <div class="col-sm-12"> <h4><b>Add Vehicle Images from Edit</b></h4> </div> <?php } ?> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading">Accessories</div> <div class="panel-body"> <div class="form-group"> <?php // }} ?> <div class="form-group"> <div class="col-sm-8 col-sm-offset-2" > <button class="btn btn-primary submit" name="submit" type="submit" value="submit" style="margin-top:4%">Save changes</button> </div> </div> </form> </div> </div> </div> </div> </div> </div> </div> </div> </div> <!-- Loading Scripts --> <script src="js/jquery.min.js"></script> <script src="js/bootstrap-select.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/jquery.dataTables.min.js"></script> <script src="js/dataTables.bootstrap.min.js"></script> <script src="js/Chart.min.js"></script> <script src="js/fileinput.js"></script> <script src="js/chartData.js"></script> <script src="js/main.js"></script> </body> </html> <?php } ?>