Commit b6616424 by Tobin

daily commit

parent 2557a8f3
...@@ -91,19 +91,16 @@ class Customer extends CI_Controller { ...@@ -91,19 +91,16 @@ class Customer extends CI_Controller {
$upload_data = $this->upload->data(); $upload_data = $this->upload->data();
$_POST['profile_image'] = $config['upload_path']."/".$upload_data['file_name']; $_POST['profile_image'] = $config['upload_path']."/".$upload_data['file_name'];
} }
// $_POST['age'] = $this->calculateAge($_POST['date_of_birth']);
// if($_POST['age'] < 0){
// $err = 1;
// $errMsg = 'Provide a valid date of birth';
// }
} }
if($err == 1){ if($err == 1){
$flashMsg['message'] = $errMsg; $flashMsg['message'] = $errMsg;
$this->session->set_flashdata('message',$flashMsg); $this->session->set_flashdata('message',$flashMsg);
redirect(base_url('Customer/addCustomerUser')); redirect(base_url('Customer/addCustomerUser'));
} }
$status = $this->Customer_model->createCustomer($_POST); $saved_vehicles = (!empty($_POST['saved_vehicles']))?implode(',',$_POST['saved_vehicles']):'';
unset($_POST['saved_vehicles']);
$status = $this->Customer_model->createCustomer($_POST,$saved_vehicles);
if($status == 1){ if($status == 1){
$flashMsg['class'] = 'success'; $flashMsg['class'] = 'success';
$flashMsg['message'] = 'User Created'; $flashMsg['message'] = 'User Created';
...@@ -132,7 +129,7 @@ class Customer extends CI_Controller { ...@@ -132,7 +129,7 @@ class Customer extends CI_Controller {
public function getCustomerData(){ public function getCustomerData(){
$return_arr = array('status'=>'0'); $return_arr = array('status'=>'0');
if(!isset($_POST) || empty($_POST) || !isset($_POST['customer_id']) || empty($_POST['customer_id'])){ if(!isset($_POST)||empty($_POST)||!isset($_POST['customer_id'])||empty($_POST['customer_id'])){
echo json_encode($return_arr);exit; echo json_encode($return_arr);exit;
} }
$customer_id = decode_param($_POST['customer_id']); $customer_id = decode_param($_POST['customer_id']);
...@@ -175,7 +172,7 @@ class Customer extends CI_Controller { ...@@ -175,7 +172,7 @@ class Customer extends CI_Controller {
$template['customer_id'] = $customer_id; $template['customer_id'] = $customer_id;
$customer_id = decode_param($customer_id); $customer_id = decode_param($customer_id);
$template['customer_data'] = $this->Customer_model->getCustomer(array('customer_id'=>$customer_id)); $template['customer_data']=$this->Customer_model->getCustomer(array('customer_id'=>$customer_id));
$this->load->view('template',$template); $this->load->view('template',$template);
} }
...@@ -232,8 +229,10 @@ class Customer extends CI_Controller { ...@@ -232,8 +229,10 @@ class Customer extends CI_Controller {
$upload_data = $this->upload->data(); $upload_data = $this->upload->data();
$_POST['profile_image'] = $config['upload_path']."/".$upload_data['file_name']; $_POST['profile_image'] = $config['upload_path']."/".$upload_data['file_name'];
} }
$saved_vehicles = (!empty($_POST['saved_vehicles']))?implode(',',$_POST['saved_vehicles']):'';
unset($_POST['saved_vehicles']);
$status = $this->Customer_model->updateCustomer($customerIdDec,$_POST); $status = $this->Customer_model->updateCustomer($customerIdDec,$_POST,$saved_vehicles);
if($status == 1){ if($status == 1){
$flashMsg['class'] = 'success'; $flashMsg['class'] = 'success';
$flashMsg['message'] = 'User Details Updated'; $flashMsg['message'] = 'User Details Updated';
......
...@@ -58,6 +58,10 @@ class Vehicle extends CI_Controller { ...@@ -58,6 +58,10 @@ class Vehicle extends CI_Controller {
$return_arr['status'] = 3; $return_arr['status'] = 3;
echo json_encode($return_arr);exit; echo json_encode($return_arr);exit;
} }
if($searchType == 2){
$vehData['vehicle'] = $vehData['attributes']['Year'].' '.$vehData['attributes']['Make'].' '.
$vehData['attributes']['Model'].' '.$vehData['attributes']['Trim'];
}
$vehicle_data['car_name'] = $vehData['vehicle']; $vehicle_data['car_name'] = $vehData['vehicle'];
$vehicle_data['car_loc_lat'] = $lat_lng['lat']; $vehicle_data['car_loc_lat'] = $lat_lng['lat'];
$vehicle_data['car_loc_lng'] = $lat_lng['lng']; $vehicle_data['car_loc_lng'] = $lat_lng['lng'];
......
...@@ -8,17 +8,27 @@ class Customer_model extends CI_Model { ...@@ -8,17 +8,27 @@ class Customer_model extends CI_Model {
function getCustomer($customer_data = array()){ function getCustomer($customer_data = array()){
$cond = (isset($customer_data['phone']) && !empty($customer_data['phone']))? $cond = (isset($customer_data['phone']) && !empty($customer_data['phone']))?
" AND phone LIKE '%".trim($customer_data['phone'])."'":""; " AND phone LIKE '%".trim($customer_data['phone'])."'":"";
$cond .= (!empty($customer_data['customer_id']))? $veh_data = array();
" AND customer_id = '".trim($customer_data['customer_id'])."'":""; if(!empty($customer_data['customer_id'])){
$cond .= " AND customer_id = '".trim($customer_data['customer_id'])."'";
$veh_data = $this->db->get_where(
'customer_vehicle',array('status'=>'1','customer_id'=>$customer_data['customer_id']));
$veh_data = (!empty($veh_data))?$veh_data->result():'';
}
$result = $this->db->query("SELECT * FROM customers WHERE status IN (0,1) $cond"); $result = $this->db->query("SELECT * FROM customers WHERE status IN (0,1) $cond");
if(empty($result)){ if(empty($result)){
return; return;
} }
return (empty($customer_data))?$result->result():$result->row(); $ret_data = $result->result();
if(!empty($customer_data)){
$ret_data = $result->row();
$ret_data->vehicle_data = $veh_data;
}
return $ret_data;
} }
function createCustomer($customer_data = array()){ function createCustomer($customer_data = array(), $saved_vehicles = array()){
if(empty($customer_data)) if(empty($customer_data))
return 0; return 0;
...@@ -34,12 +44,15 @@ class Customer_model extends CI_Model { ...@@ -34,12 +44,15 @@ class Customer_model extends CI_Model {
return 3; return 3;
} }
} }
$status = $this->db->insert('customers',$customer_data); $status = $this->db->insert('customers',$customer_data);
if($status && !empty($saved_vehicles) && !empty($cust_id = $this->db->insert_id())){
$this->db->query("UPDATE customer_vehicle SET status='1',customer_id='$cust_id'
WHERE customer_veh_id IN ($saved_vehicles)");
}
return ($status)?1:0;; return ($status)?1:0;;
} }
function updateCustomer($customer_id = '', $customer_data = array()){ function updateCustomer($customer_id = '', $customer_data = array(), $saved_vehicles = array()){
if(empty($customer_id) || empty($customer_data)) if(empty($customer_id) || empty($customer_data))
return 0; return 0;
...@@ -57,6 +70,12 @@ class Customer_model extends CI_Model { ...@@ -57,6 +70,12 @@ class Customer_model extends CI_Model {
} }
$status = $this->db->update('customers',$customer_data,array('customer_id'=>$customer_id)); $status = $this->db->update('customers',$customer_data,array('customer_id'=>$customer_id));
if($status && !empty($saved_vehicles)){
$this->db->query("UPDATE customer_vehicle SET status='1',customer_id='$customer_id'
WHERE customer_veh_id IN ($saved_vehicles)");
}
return ($status)?1:0;; return ($status)?1:0;;
} }
......
...@@ -95,12 +95,34 @@ ...@@ -95,12 +95,34 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col-md-12 padBottom20"> <div id="savedVehicleBox" class="<?= (!isset($customer_data->vehicle_data) || empty($customer_data->vehicle_data))?'hide':'' ?>">
<div class="col-md-12 padBottom20" id="savedVehiclesCntr"> <label style="padding-left:30px;">Vehicles Added</label>
<div class="col-md-12">
<div class="col-md-6" id="savedVehiclesCntr">
<?php
if(isset($customer_data->vehicle_data) && !empty($customer_data->vehicle_data)){
foreach ($customer_data->vehicle_data AS $vehicle) { ?>
<span id="saved_vehicle_<?= $vehicle->customer_veh_id ?>"
class="vechile-body disp-block marginBottom-5">
<i class="fa fa-fw fa-car padRight-8p"></i>
<?= $vehicle->car_name ?>
<div id="remove_saved_<?= $vehicle->customer_veh_id ?>"
car_id="<?= $vehicle->customer_veh_id ?>" class="float-right">
<i class="fa fa-fw fa-close cpoint"></i>
</div>
<input type="hidden" name="saved_vehicles[]"
value="<?= $vehicle->customer_veh_id ?>" >
</span>
<?php
}
}
?>
</div>
</div> </div>
</div> </div>
</form> </form>
</div>
<div class="box-body">
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title">Add New Vehicles</h3> <h3 class="box-title">Add New Vehicles</h3>
</div> </div>
...@@ -156,7 +178,7 @@ ...@@ -156,7 +178,7 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label>Vehicle Location</label> <label>Vehicle Location</label>
<input type="text" class="form-control required" name="vehLocation" <input type="text" class="form-control required" name="vehLocationDetails"
id="loc_search_1" input="search_params" placeholder="Enter Vehicle Location" required> id="loc_search_1" input="search_params" placeholder="Enter Vehicle Location" required>
</div> </div>
</div> </div>
...@@ -173,7 +195,7 @@ ...@@ -173,7 +195,7 @@
</div> </div>
<div class="col-md-12 padTop10"> <div class="col-md-12 padTop10">
<label>Vehicle Location</label> <label>Vehicle Location</label>
<input type="text" class="form-control" name="vehLocation" <input type="text" class="form-control" name="vehLocationVin"
id="loc_search_2" input="search_params" placeholder="Enter Vehicle Location"> id="loc_search_2" input="search_params" placeholder="Enter Vehicle Location">
</div> </div>
</div> </div>
...@@ -195,6 +217,7 @@ ...@@ -195,6 +217,7 @@
<div class="box-footer"> <div class="box-footer">
<div style="text-align: center;"> <div style="text-align: center;">
<button id="createCustomerSubmit" type="submit" class="btn btn-primary">Submit</button> <button id="createCustomerSubmit" type="submit" class="btn btn-primary">Submit</button>
<a href="<?=base_url('Customer/listCustomerUsers')?>" class="btn btn-primary">Cancel</a>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -35,13 +35,13 @@ ...@@ -35,13 +35,13 @@
<thead> <thead>
<tr> <tr>
<th class="hidden">ID</th> <th class="hidden">ID</th>
<th width="150px;">Name</th> <th width="13%;">Name</th>
<th width="80px;">Phone</th> <th width="10%;">Phone</th>
<th width="150px;">Email ID</th> <th width="13%;">Email ID</th>
<th width="150px;">Address</th> <th width="14%;">Address</th>
<th width="120px;">Date Of Birth</th> <th width="12%;">Date Of Birth</th>
<th width="30px;">Status</th> <th width="5%;">Status</th>
<th width="500px;">Action</th> <th width="33%;">Action</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
......
...@@ -328,6 +328,18 @@ ...@@ -328,6 +328,18 @@
padding-right:20px !important; padding-right:20px !important;
} }
.padRight10 {
padding-right:10px !important;
}
.padRight-5p {
padding-right:5% !important;
}
.padRight-8p {
padding-right:8% !important;
}
.padLeft20 { .padLeft20 {
padding-left:20px !important; padding-left:20px !important;
} }
......
...@@ -277,106 +277,72 @@ jQuery('[id="viewCustomer"]').on('click',function() { ...@@ -277,106 +277,72 @@ jQuery('[id="viewCustomer"]').on('click',function() {
jQuery('[id="modal_content"]').html('Something went wrong, please try again later...!'); jQuery('[id="modal_content"]').html('Something went wrong, please try again later...!');
return false; return false;
} }
var customer_data = resp_data['customer_data']; var customer_data = resp_data['customer_data'], html = '', veh_html = '',
vehicle_data = resp_data['customer_data']['vehicle_data'];
// Direct HTML
var html = '<div class="col-xs-12">'+ if(vehicle_data != '' && vehicle_data != undefined && vehicle_data != 'undefined' && vehicle_data != null && vehicle_data != 'null'){
'<div class="col-md-2"> '+
'<div class="form-group has-feedback"> '+ jQuery.each(vehicle_data, function (index, value) {
'<img id="customerProfileImg" src="'+base_url+customer_data['profile_image']+'"'+ veh_html += '<span class="vechile-body disp-block marginBottom-5">'+
'height="100" width="100" /> '+ '<i class="fa fa-fw fa-car padRight-8p"></i>'
'</div> '+ +value['car_name']+
'</div> '+ '</span>';
'<div class="col-md-5"> '+ });
'<div class="form-group has-feedback"> '+ if(veh_html != ''){
'<span style="padding-right: 38px;">First Name </span> : '+ veh_html = '<div class="col-xs-12"><div class="col-xs-2"></div><div class="col-xs-9">'+
'<label style="padding-left: 10px;">'+ '<label>Vehicles Added</label>'+veh_html+'</div></div>';
customer_data['first_name']+ }
'</label> '+ }
'</div> '+
'<div class="form-group has-feedback"> '+ html = '<div class="col-xs-12">'+
'<span style="padding-right: 68px;">Email </span> : '+ '<div class="col-md-2"> '+
'<label style="padding-left: 10px;">'+ '<div class="form-group has-feedback"> '+
customer_data['email']+ '<img id="customerProfileImg" src="'+base_url+customer_data['profile_image']+'"'+
'</label> '+ 'height="100" width="100" /> '+
'</div> '+ '</div> '+
'<div class="form-group has-feedback"> '+ '</div> '+
'<span style="padding-right: 55px;">Address </span> : '+ '<div class="col-md-5"> '+
'<label style="padding-left: 10px;">'+ '<div class="form-group has-feedback"> '+
customer_data['address']+ '<span style="padding-right: 38px;">First Name </span> : '+
'</label> '+ '<label style="padding-left: 10px;">'+
'</div> '+ customer_data['first_name']+
'<div class="form-group has-feedback"> '+ '</label> '+
'<span style="padding-right: 80px;">Age </span> : '+ '</div> '+
'<label style="padding-left: 10px;">'+ '<div class="form-group has-feedback"> '+
customer_data['age']+ '<span style="padding-right: 68px;">Email </span> : '+
'</label> '+ '<label style="padding-left: 10px;">'+
'</div> '+ customer_data['email']+
'<div class="form-group has-feedback"> '+ '</label> '+
'<span style="padding-right: 79px;">SSN </span> : '+ '</div> '+
'<label style="padding-left: 10px;">'+ '<div class="form-group has-feedback"> '+
customer_data['ssn']+ '<span style="padding-right: 55px;">Address </span> : '+
'</label> '+ '<label style="padding-left: 10px;">'+
'</div> '+ customer_data['address']+
'<div class="form-group has-feedback"> '+ '</label> '+
'<span style="padding-right: 68px;">Issuer </span> : '+ '</div> '+
'<label style="padding-left: 10px;">'+ '</div> '+
customer_data['issuer']+ '<div class="col-md-5"> '+
'</label> '+ '<div class="form-group has-feedback"> '+
'</div> '+ '<span style="padding-right: 56px;">Last Name </span> : '+
'<div class="form-group has-feedback"> '+ '<label style="padding-left: 10px;">'+
'<span style="padding-right: 39px;">Member ID </span> : '+ customer_data['last_name']+
'<label style="padding-left: 10px;">'+ '</label> '+
customer_data['member_id']+ '</div> '+
'</label> '+ '<div class="form-group has-feedback"> '+
'</div> '+ '<span style="padding-right: 80px;">Phone </span> : '+
'</div> '+ '<label style="padding-left: 10px;">'+
customer_data['phone']+
'<div class="col-md-5"> '+ '</label> '+
'<div class="form-group has-feedback"> '+ '</div> '+
'<span style="padding-right: 56px;">Last Name </span> : '+ '<div class="form-group has-feedback"> '+
'<label style="padding-left: 10px;">'+ '<span style="padding-right: 43px;">Date Of Dirth </span> : '+
customer_data['last_name']+ '<label style="padding-left: 10px;">'+
'</label> '+ customer_data['date_of_birth']+
'</div> '+ '</label> '+
'<div class="form-group has-feedback"> '+ '</div> '+
'<span style="padding-right: 80px;">Phone </span> : '+ '</div> '+
'<label style="padding-left: 10px;">'+ '</div>'+veh_html;
customer_data['phone']+
'</label> '+
'</div> '+
'<div class="form-group has-feedback"> '+
'<span style="padding-right: 43px;">Date Of Dirth </span> : '+
'<label style="padding-left: 10px;">'+
customer_data['date_of_birth']+
'</label> '+
'</div> '+
'<div class="form-group has-feedback"> '+
'<span style="padding-right: 25px;">Alternate Phone </span> : '+
'<label style="padding-left: 10px;">'+
customer_data['alt_phone']+
'</label> '+
'</div> '+
'<div class="form-group has-feedback"> '+
'<span style="padding-right: 96px;">GRP </span> : '+
'<label style="padding-left: 10px;">'+
customer_data['grp']+
'</label> '+
'</div> '+
'<div class="form-group has-feedback"> '+
'<span style="padding-right: 11px;">Insurance Provider </span> : '+
'<label style="padding-left: 10px;">'+
customer_data['insurance_provider']+
'</label> '+
'</div> '+
'<div class="form-group has-feedback"> '+
'<span style="padding-right: 34px;">Group Number </span> : '+
'<label style="padding-left: 10px;">'+
customer_data['group_number']+
'</label> '+
'</div> '+
'</div> '+
'</div>';
remModalLoader(); remModalLoader();
jQuery('[id="modal_content"]').html(html); jQuery('[id="modal_content"]').html(html);
...@@ -427,6 +393,7 @@ jQuery('[id="vehSearch"]').on('click',function(event) { ...@@ -427,6 +393,7 @@ jQuery('[id="vehSearch"]').on('click',function(event) {
} }
var searchTypId = jQuery('input[name=search_key_type]:checked').val(), var searchTypId = jQuery('input[name=search_key_type]:checked').val(),
passArr = {'searchType':'','vehModel':'','vehMaker':'','vehYear':'','vehVin':''}; passArr = {'searchType':'','vehModel':'','vehMaker':'','vehYear':'','vehVin':''};
if(searchTypId == '' || searchTypId == null || searchTypId == 'null' || searchTypId == undefined || searchTypId == 'undefined'){ if(searchTypId == '' || searchTypId == null || searchTypId == 'null' || searchTypId == undefined || searchTypId == 'undefined'){
modalTrigger('Vechile Search Failed','Vechile Search Failed, Provide proper data and try again..!'); modalTrigger('Vechile Search Failed','Vechile Search Failed, Provide proper data and try again..!');
return false; return false;
...@@ -435,16 +402,17 @@ jQuery('[id="vehSearch"]').on('click',function(event) { ...@@ -435,16 +402,17 @@ jQuery('[id="vehSearch"]').on('click',function(event) {
vehYear = jQuery('[name="vehYear"]').val(), vehYear = jQuery('[name="vehYear"]').val(),
vehModel = jQuery('[name="vehModel"]').val(), vehModel = jQuery('[name="vehModel"]').val(),
vehMaker = jQuery('[name="vehMaker"]').val(); vehMaker = jQuery('[name="vehMaker"]').val();
vehLocation = jQuery('[name="vehLocation"]').val(); vehLocVin = jQuery('[name="vehLocationVin"]').val();
if((vehLocation == '' || vehLocation == null || vehLocation == 'null' || vehLocation == undefined || vehLocation == 'undefined') || vehLocDetls = jQuery('[name="vehLocationDetails"]').val();
(searchTypId == 1 &&
if((searchTypId == 1 && (vehLocDetls == '' || vehLocDetls == null || vehLocDetls == 'null' || vehLocDetls == undefined || vehLocDetls == 'undefined') &&
(vehYear == '' || vehYear == null || vehYear == 'null' || vehYear == undefined || vehYear == 'undefined' || (vehYear == '' || vehYear == null || vehYear == 'null' || vehYear == undefined || vehYear == 'undefined' ||
vehModel == '' || vehModel == null || vehModel == 'null' || vehModel == undefined || vehModel == 'undefined' || vehModel == '' || vehModel == null || vehModel == 'null' || vehModel == undefined || vehModel == 'undefined' ||
vehMaker == '' || vehMaker == null || vehMaker == 'null' || vehMaker == undefined || vehMaker == 'undefined') vehMaker == '' || vehMaker == null || vehMaker == 'null' || vehMaker == undefined || vehMaker == 'undefined')
) || ) ||
(searchTypId == 2 && (searchTypId == 2 && (vehLocVin == '' || vehLocVin == null || vehLocVin == 'null' || vehLocVin == undefined || vehLocVin == 'undefined') &&
(vehVin == '' || vehVin == null || vehVin == 'null' || vehVin == undefined || vehVin == 'undefined') (vehVin == '' || vehVin == null || vehVin == 'null' || vehVin == undefined || vehVin == 'undefined')
)){ )){
return false; return false;
} }
showFullScreenLoader(); showFullScreenLoader();
...@@ -454,7 +422,7 @@ jQuery('[id="vehSearch"]').on('click',function(event) { ...@@ -454,7 +422,7 @@ jQuery('[id="vehSearch"]').on('click',function(event) {
passArr.vehModel = vehModel; passArr.vehModel = vehModel;
passArr.vehMaker = vehMaker; passArr.vehMaker = vehMaker;
passArr.searchType = searchTypId; passArr.searchType = searchTypId;
passArr.vehLocation = vehLocation; passArr.vehLocation = (searchTypId == 1)?vehLocDetls:vehLocVin;
jQuery.ajax({ jQuery.ajax({
url : base_url+"Vehicle/vehicleSearch", url : base_url+"Vehicle/vehicleSearch",
...@@ -463,19 +431,18 @@ jQuery('[id="vehSearch"]').on('click',function(event) { ...@@ -463,19 +431,18 @@ jQuery('[id="vehSearch"]').on('click',function(event) {
success: function(resp){ success: function(resp){
if(resp == '' || resp == undefined || resp == 'undefined' || resp == null || resp == 'null'){ if(resp == '' || resp == undefined || resp == 'undefined' || resp == null || resp == 'null'){
remFullScreenLoader(); remFullScreenLoader();
jQuery('[id="modal_content"]').html('Something went wrong, please try again later...!'); setModal('Vechile Search','Something went wrong, please try again later...!');
return false; return false;
} }
var resp_data = jQuery.parseJSON(resp); var resp_data = jQuery.parseJSON(resp);
if(resp_data['status'] != '1' || (resp_data['status'] == 1 && resp_data['veh_data'] == '' || resp_data['veh_data'] == null || resp_data['veh_data'] == undefined || resp_data['veh_data'] == 'null' || resp_data['veh_data'] == 'undefined' || resp_data['car_id'] == '' || resp_data['car_id'] == null || resp_data['car_id'] == undefined || resp_data['car_id'] == 'null' || resp_data['car_id'] == 'undefined')){ if(resp_data['status'] != '1' || (resp_data['status'] == 1 && resp_data['veh_data'] == '' || resp_data['veh_data'] == null || resp_data['veh_data'] == undefined || resp_data['veh_data'] == 'null' || resp_data['veh_data'] == 'undefined' || resp_data['car_id'] == '' || resp_data['car_id'] == null || resp_data['car_id'] == undefined || resp_data['car_id'] == 'null' || resp_data['car_id'] == 'undefined')){
remFullScreenLoader();
var msg = 'Something went wrong, please try again later...!'; var msg = 'Something went wrong, please try again later...!';
if(resp_data['status'] == '2') if(resp_data['status'] == '2')
msg = 'No Data Found, Try again with proper search parameters..!'; msg = 'No Data Found, Try again with proper search parameters..!';
if(resp_data['status'] == '3') if(resp_data['status'] == '3')
msg = 'Provide a valid Location..!'; msg = 'Provide a valid Location..!';
remFullScreenLoader();
jQuery('[id="modal_content"]').html(msg); setModal('Vechile Search',msg);
return false; return false;
} }
var vehHtmlBody = '', car_id = resp_data['car_id'], vehicleData = resp_data['veh_data']; var vehHtmlBody = '', car_id = resp_data['car_id'], vehicleData = resp_data['veh_data'];
...@@ -506,11 +473,11 @@ jQuery('[id="vehSearch"]').on('click',function(event) { ...@@ -506,11 +473,11 @@ jQuery('[id="vehSearch"]').on('click',function(event) {
}, },
fail: function(xhr, textStatus, errorThrown){ fail: function(xhr, textStatus, errorThrown){
remFullScreenLoader(); remFullScreenLoader();
jQuery('[id="modal_content"]').html('Something went wrong, please try again later...!'); setModal('Vechile Search','Something went wrong, please try again later...!');
}, },
error: function (ajaxContext) { error: function (ajaxContext) {
remFullScreenLoader(); remFullScreenLoader();
jQuery('[id="modal_content"]').html('Something went wrong, please try again later...!'); setModal('Vechile Search','Something went wrong, please try again later...!');
} }
}); });
}); });
...@@ -523,6 +490,9 @@ function searchAction(car_id, action, saved, name){ ...@@ -523,6 +490,9 @@ function searchAction(car_id, action, saved, name){
if(action == 0 || action == 1 || action == 3){ if(action == 0 || action == 1 || action == 3){
if(saved == 1){ if(saved == 1){
jQuery('[id="saved_vehicle_'+car_id+'"]').remove(); jQuery('[id="saved_vehicle_'+car_id+'"]').remove();
if(jQuery('[id="savedVehiclesCntr"]').children().length <= 0){
jQuery('[id="savedVehicleBox"]').addClass('hide');
}
} }
slideTo('CarSearchForm'); slideTo('CarSearchForm');
jQuery.ajax({ jQuery.ajax({
...@@ -532,15 +502,22 @@ function searchAction(car_id, action, saved, name){ ...@@ -532,15 +502,22 @@ function searchAction(car_id, action, saved, name){
}); });
} }
if(action == 2){ if(action == 2){
html = '<span id="saved_vehicle_'+car_id+'" class="vechile-body disp-block marginBottom-5">' html = '<span id="saved_vehicle_'+car_id+'" class="vechile-body disp-block marginBottom-5">'+
'<i class="fa fa-fw fa-car padRight-8p"></i>'
+name+ +name+
'<div onclick="searchAction('+car_id+',3,1,\'\');" class="float-right">'+ '<div id="remove_saved_'+car_id+'" car_id="'+car_id+'" class="float-right">'+
'<i class="fa fa-fw fa-close cpoint"></i>'+ '<i class="fa fa-fw fa-close cpoint"></i>'+
'</div>'+ '</div>'+
'<input type="hidden" name="saved_vehicles[]" >'+ '<input type="hidden" name="saved_vehicles[]" value="'+car_id+'" >'+
'</span>'; '</span>';
jQuery('[id="savedVehicleBox"]').removeClass('hide');
jQuery('[id="savedVehiclesCntr"]').append(html); jQuery('[id="savedVehiclesCntr"]').append(html);
slideTo('savedVehiclesCntr'); slideTo('createCustomerForm');
} }
jQuery('[id="search_result_'+car_id+'"]').remove(); jQuery('[id="search_result_'+car_id+'"]').remove();
} }
jQuery('div').on('click','[id^="remove_saved_"]',function(event) {
var thisObj = jQuery(this), car_id = thisObj.attr('car_id');
searchAction(car_id,'3','1','');
});
\ No newline at end of file
-- phpMyAdmin SQL Dump -- phpMyAdmin SQL Dump
-- version 4.7.9 -- version 4.8.3
-- https://www.phpmyadmin.net/ -- https://www.phpmyadmin.net/
-- --
-- Host: 127.0.0.1:3306 -- Host: db
-- Generation Time: Dec 16, 2018 at 04:01 PM -- Generation Time: Dec 17, 2018 at 12:46 PM
-- Server version: 5.7.21 -- Server version: 5.6.41
-- PHP Version: 5.6.35 -- PHP Version: 7.2.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0; SET AUTOCOMMIT = 0;
...@@ -28,17 +28,15 @@ SET time_zone = "+00:00"; ...@@ -28,17 +28,15 @@ SET time_zone = "+00:00";
-- Table structure for table `admin_users` -- Table structure for table `admin_users`
-- --
DROP TABLE IF EXISTS `admin_users`; CREATE TABLE `admin_users` (
CREATE TABLE IF NOT EXISTS `admin_users` ( `id` int(11) NOT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(100) NOT NULL, `username` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL, `password` varchar(100) NOT NULL,
`user_type` tinyint(3) NOT NULL COMMENT '1 => Super Admin, 2 => Mechanic', `user_type` tinyint(3) NOT NULL COMMENT '1 => Super Admin, 2 => Mechanic',
`display_name` varchar(200) NOT NULL, `display_name` varchar(200) NOT NULL,
`profile_image` varchar(500) NOT NULL, `profile_image` varchar(500) NOT NULL,
`status` tinyint(4) NOT NULL DEFAULT '1', `status` tinyint(4) NOT NULL DEFAULT '1'
PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
-- --
-- Dumping data for table `admin_users` -- Dumping data for table `admin_users`
...@@ -56,9 +54,8 @@ INSERT INTO `admin_users` (`id`, `username`, `password`, `user_type`, `display_n ...@@ -56,9 +54,8 @@ INSERT INTO `admin_users` (`id`, `username`, `password`, `user_type`, `display_n
-- Table structure for table `customers` -- Table structure for table `customers`
-- --
DROP TABLE IF EXISTS `customers`; CREATE TABLE `customers` (
CREATE TABLE IF NOT EXISTS `customers` ( `customer_id` int(20) NOT NULL,
`customer_id` int(20) NOT NULL AUTO_INCREMENT,
`first_name` varchar(50) NOT NULL, `first_name` varchar(50) NOT NULL,
`last_name` varchar(50) NOT NULL, `last_name` varchar(50) NOT NULL,
`phone` varchar(20) DEFAULT NULL, `phone` varchar(20) DEFAULT NULL,
...@@ -67,16 +64,17 @@ CREATE TABLE IF NOT EXISTS `customers` ( ...@@ -67,16 +64,17 @@ CREATE TABLE IF NOT EXISTS `customers` (
`profile_image` varchar(500) DEFAULT NULL, `profile_image` varchar(500) DEFAULT NULL,
`password` varchar(50) DEFAULT NULL, `password` varchar(50) DEFAULT NULL,
`date_of_birth` varchar(200) DEFAULT NULL, `date_of_birth` varchar(200) DEFAULT NULL,
`status` tinyint(3) NOT NULL DEFAULT '1', `status` tinyint(3) NOT NULL DEFAULT '1'
PRIMARY KEY (`customer_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-- --
-- Dumping data for table `customers` -- Dumping data for table `customers`
-- --
INSERT INTO `customers` (`customer_id`, `first_name`, `last_name`, `phone`, `email`, `address`, `profile_image`, `password`, `date_of_birth`, `status`) VALUES INSERT INTO `customers` (`customer_id`, `first_name`, `last_name`, `phone`, `email`, `address`, `profile_image`, `password`, `date_of_birth`, `status`) VALUES
(1, 'Tobin', 'Thomas', '9995559194', '[email protected]', 'Techware', 'assets/uploads/services/1544417044_sniper.jpg', NULL, '05/05/1994', 1); (1, 'Tobin', 'Thomas', '9995559194', '[email protected]', 'Techware', 'assets/uploads/services/1544417044_sniper.jpg', NULL, '05/05/1994', 1),
(2, 'Tobin', 'Thomas', '99955752194', '[email protected]', 'Techware', 'assets/uploads/services/1545036793_car1.jpg', NULL, '12/20/2018', 1),
(3, 'Tobin', 'Thomas', '9993242394', '[email protected]', 'Techware', 'assets/uploads/services/1545037023_images.jpg', NULL, '12/11/2018', 1);
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -84,9 +82,8 @@ INSERT INTO `customers` (`customer_id`, `first_name`, `last_name`, `phone`, `ema ...@@ -84,9 +82,8 @@ INSERT INTO `customers` (`customer_id`, `first_name`, `last_name`, `phone`, `ema
-- Table structure for table `customer_vehicle` -- Table structure for table `customer_vehicle`
-- --
DROP TABLE IF EXISTS `customer_vehicle`; CREATE TABLE `customer_vehicle` (
CREATE TABLE IF NOT EXISTS `customer_vehicle` ( `customer_veh_id` int(11) NOT NULL,
`customer_veh_id` int(11) NOT NULL AUTO_INCREMENT,
`customer_id` int(11) DEFAULT NULL, `customer_id` int(11) DEFAULT NULL,
`car_name` varchar(250) DEFAULT NULL, `car_name` varchar(250) DEFAULT NULL,
`car_model` varchar(150) DEFAULT NULL, `car_model` varchar(150) DEFAULT NULL,
...@@ -98,26 +95,25 @@ CREATE TABLE IF NOT EXISTS `customer_vehicle` ( ...@@ -98,26 +95,25 @@ CREATE TABLE IF NOT EXISTS `customer_vehicle` (
`car_loc_lat` varchar(150) DEFAULT NULL, `car_loc_lat` varchar(150) DEFAULT NULL,
`car_loc_lng` varchar(150) DEFAULT NULL, `car_loc_lng` varchar(150) DEFAULT NULL,
`created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`status` tinyint(3) NOT NULL DEFAULT '3', `status` tinyint(3) NOT NULL DEFAULT '3'
PRIMARY KEY (`customer_veh_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=25 DEFAULT CHARSET=latin1;
-- --
-- Dumping data for table `customer_vehicle` -- Dumping data for table `customer_vehicle`
-- --
INSERT INTO `customer_vehicle` (`customer_veh_id`, `customer_id`, `car_name`, `car_model`, `car_maker`, `car_model_year`, `car_vin`, `vehicle_data`, `car_location`, `car_loc_lat`, `car_loc_lng`, `created_date`, `status`) VALUES INSERT INTO `customer_vehicle` (`customer_veh_id`, `customer_id`, `car_name`, `car_model`, `car_maker`, `car_model_year`, `car_vin`, `vehicle_data`, `car_location`, `car_loc_lat`, `car_loc_lng`, `created_date`, `status`) VALUES
(11, NULL, '2008 Hyundai Sonata GLS', 'sonata', 'hyundai', '2008', NULL, '{\"vehicle\":\"2008 Hyundai Sonata GLS\",\"attributes\":{\"Year\":\"2008\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"GLS\",\"Short Trim\":\"GLS\",\"Trim Variations\":\"GLS\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Midsize\",\"Vehicle Category\":\"Large Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"17.7 gallon\",\"City Mileage\":\"21 miles\\/gallon\",\"Highway Mileage\":\"30 - 31 miles\\/gallon\",\"Engine\":\"2.4L L4 DOHC 16V\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"4\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"3266\",\"Gross Weight\":\"\",\"Overall Height\":\"58.00 inches\",\"Overall Length\":\"188.90 inches\",\"Overall Width\":\"72.10 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$18,083\",\"Delivery Charges\":\"$675\",\"MSRP\":\"$18,870\"},\"success\":true,\"error\":\"\"}', 'DFW International Airport (DFW), Aviation Drive, DFW Airport, TX, USA', '32.8555236', '-97.03887', '2018-12-16 13:56:12', 3), (9, NULL, '2015 Hyundai Sonata SE', 'sonata', 'hyundai', '2015', NULL, '{\"vehicle\":\"2015 Hyundai Sonata SE\",\"attributes\":{\"Year\":\"2015\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"SE\",\"Short Trim\":\"SE\",\"Trim Variations\":\"SE \\/ SE PZEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Midsize\",\"Vehicle Category\":\"Large Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"18.5 gallon\",\"City Mileage\":\"25 miles\\/gallon\",\"Highway Mileage\":\"37 miles\\/gallon\",\"Engine\":\"2.4L L4 DOHC 16V\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"6\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"3252\",\"Gross Weight\":\"\",\"Overall Height\":\"58.10 inches\",\"Overall Length\":\"191.10 inches\",\"Overall Width\":\"73.40 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$20,295\",\"Delivery Charges\":\"$825\",\"MSRP\":\"$21,150\"},\"success\":true,\"error\":\"\"}', 'FL, USA', '27.6648274', '-81.5157535', '2018-12-17 10:11:03', 3),
(14, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', 'Dilworth-glyndon-felton, MN, USA', '46.9858777', '-96.5887048', '2018-12-16 15:23:51', 3), (10, NULL, '2015 Hyundai Sonata SE', 'sonata', 'hyundai', '2015', NULL, '{\"vehicle\":\"2015 Hyundai Sonata SE\",\"attributes\":{\"Year\":\"2015\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"SE\",\"Short Trim\":\"SE\",\"Trim Variations\":\"SE \\/ SE PZEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Midsize\",\"Vehicle Category\":\"Large Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"18.5 gallon\",\"City Mileage\":\"25 miles\\/gallon\",\"Highway Mileage\":\"37 miles\\/gallon\",\"Engine\":\"2.4L L4 DOHC 16V\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"6\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"3252\",\"Gross Weight\":\"\",\"Overall Height\":\"58.10 inches\",\"Overall Length\":\"191.10 inches\",\"Overall Width\":\"73.40 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$20,295\",\"Delivery Charges\":\"$825\",\"MSRP\":\"$21,150\"},\"success\":true,\"error\":\"\"}', 'FL, USA', '27.6648274', '-81.5157535', '2018-12-17 10:11:08', 3),
(15, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', 'Ghirardelli Square, North Point Street, San Francisco, CA, USA', '37.8058763', '-122.4229502', '2018-12-16 15:27:09', 3), (11, 2, '2016 Hyundai Sonata SE', 'sonata', 'hyundai', '2016', NULL, '{\"vehicle\":\"2016 Hyundai Sonata SE\",\"attributes\":{\"Year\":\"2016\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"SE\",\"Short Trim\":\"SE\",\"Trim Variations\":\"SE\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Midsize\",\"Vehicle Category\":\"Large Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"18.5 gallon\",\"City Mileage\":\"25 miles\\/gallon\",\"Highway Mileage\":\"38 miles\\/gallon\",\"Engine\":\"2.4L L4 DOHC 16V\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"6\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"3252\",\"Gross Weight\":\"\",\"Overall Height\":\"58.10 inches\",\"Overall Length\":\"191.10 inches\",\"Overall Width\":\"73.40 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$20,859\",\"Delivery Charges\":\"$835\",\"MSRP\":\"$21,750\"},\"success\":true,\"error\":\"\"}', 'San Francisco, CA, USA', '37.7749295', '-122.4194155', '2018-12-17 10:17:53', 1),
(16, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', 'FDR Drive, Brooklyn, NY, USA', '40.7100593', '-73.9894836', '2018-12-16 15:29:43', 3), (3, NULL, '2011 Hyundai Sonata GLS', 'sonata', 'hyundai', '2011', NULL, '{\"vehicle\":\"2011 Hyundai Sonata GLS\",\"attributes\":{\"Year\":\"2011\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"GLS\",\"Short Trim\":\"GLS\",\"Trim Variations\":\"GLS PZEV \\/ GLS\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Midsize\",\"Vehicle Category\":\"Large Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"18.5 gallon\",\"City Mileage\":\"22 miles\\/gallon\",\"Highway Mileage\":\"35 miles\\/gallon\",\"Engine\":\"2.4L L4 DOHC 16V\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"6\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"57.90 inches\",\"Overall Length\":\"189.80 inches\",\"Overall Width\":\"72.20 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$19,538\",\"Delivery Charges\":\"$750\",\"MSRP\":\"$20,395\"},\"success\":true,\"error\":\"\"}', '439 Boylston Street, Boston, MA, USA', '42.351495', '-71.072925', '2018-12-17 08:55:52', 3),
(17, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', 'FGCU Boulevard South, Fort Myers, FL, USA', '26.4604871', '-81.7715028', '2018-12-16 15:37:55', 3), (4, 3, '2015 Hyundai Sonata SE', 'sonata', 'hyundai', '2015', NULL, '{\"vehicle\":\"2015 Hyundai Sonata SE\",\"attributes\":{\"Year\":\"2015\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"SE\",\"Short Trim\":\"SE\",\"Trim Variations\":\"SE \\/ SE PZEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Midsize\",\"Vehicle Category\":\"Large Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"18.5 gallon\",\"City Mileage\":\"25 miles\\/gallon\",\"Highway Mileage\":\"37 miles\\/gallon\",\"Engine\":\"2.4L L4 DOHC 16V\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"6\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"3252\",\"Gross Weight\":\"\",\"Overall Height\":\"58.10 inches\",\"Overall Length\":\"191.10 inches\",\"Overall Width\":\"73.40 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$20,295\",\"Delivery Charges\":\"$825\",\"MSRP\":\"$21,150\"},\"success\":true,\"error\":\"\"}', 'RI, USA', '41.5800945', '-71.4774291', '2018-12-17 08:56:55', 1),
(18, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', '6679A Broadway, Bronx, NY, USA', '40.9107395', '-73.8968306', '2018-12-16 15:40:57', 3), (13, NULL, '2017 Hyundai Sonata SE', 'sonata', 'hyundai', '2017', NULL, '{\"vehicle\":\"2017 Hyundai Sonata SE\",\"attributes\":{\"Year\":\"2017\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"SE\",\"Short Trim\":\"SE\",\"Trim Variations\":\"Base PZEV \\/ Base \\/ SE PZEV \\/ SE \\/ Eco \\/ Sport \\/ Limited \\/ Sport 2.0T \\/ Limited 2.0T\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Midsize\",\"Vehicle Category\":\"Large Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"18.5 gallon\",\"City Mileage\":\"25 miles\\/gallon\",\"Highway Mileage\":\"36 miles\\/gallon\",\"Engine\":\"2.4L L4 DOHC 16V\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"6\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"3252\",\"Gross Weight\":\"\",\"Overall Height\":\"58.10 inches\",\"Overall Length\":\"191.10 inches\",\"Overall Width\":\"73.40 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$21,047\",\"Delivery Charges\":\"$835\",\"MSRP\":\"$21,950\"},\"success\":true,\"error\":\"\"}', 'H F Shepherd Drive, Decatur, GA, USA', '33.7119197', '-84.2785545', '2018-12-17 10:26:37', 3),
(19, NULL, '2017 Hyundai Sonata SE', 'sonata', 'hyundai', '2017', NULL, '{\"vehicle\":\"2017 Hyundai Sonata SE\",\"attributes\":{\"Year\":\"2017\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"SE\",\"Short Trim\":\"SE\",\"Trim Variations\":\"Base PZEV \\/ Base \\/ SE PZEV \\/ SE \\/ Eco \\/ Sport \\/ Limited \\/ Sport 2.0T \\/ Limited 2.0T\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Midsize\",\"Vehicle Category\":\"Large Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"18.5 gallon\",\"City Mileage\":\"25 miles\\/gallon\",\"Highway Mileage\":\"36 miles\\/gallon\",\"Engine\":\"2.4L L4 DOHC 16V\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"6\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"3252\",\"Gross Weight\":\"\",\"Overall Height\":\"58.10 inches\",\"Overall Length\":\"191.10 inches\",\"Overall Width\":\"73.40 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$21,047\",\"Delivery Charges\":\"$835\",\"MSRP\":\"$21,950\"},\"success\":true,\"error\":\"\"}', 'SDF airport (SDF), Terminal Drive, Louisville, KY, USA', '38.175662', '-85.7369231', '2018-12-16 15:42:04', 3), (14, NULL, '2012 Hyundai Sonata SE', 'sonata', 'hyundai', '2012', NULL, '{\"vehicle\":\"2012 Hyundai Sonata SE\",\"attributes\":{\"Year\":\"2012\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"SE\",\"Short Trim\":\"SE\",\"Trim Variations\":\"SE\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Midsize\",\"Vehicle Category\":\"Large Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"18.5 gallon\",\"City Mileage\":\"24 miles\\/gallon\",\"Highway Mileage\":\"35 miles\\/gallon\",\"Engine\":\"2.4L L4 DOHC 16V\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"6\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"57.90 inches\",\"Overall Length\":\"189.80 inches\",\"Overall Width\":\"72.20 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$24,725\",\"Delivery Charges\":\"$775\",\"MSRP\":\"$26,445\"},\"success\":true,\"error\":\"\"}', 'FDR Drive, Brooklyn, NY, USA', '40.7100593', '-73.9894836', '2018-12-17 10:30:06', 3),
(20, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', '2615 Massachusetts Avenue, Cambridge, MA, USA', '42.4010983', '-71.1352662', '2018-12-16 15:47:53', 3), (15, NULL, '2017 Hyundai Sonata SE', 'sonata', 'hyundai', '2017', NULL, '{\"vehicle\":\"2017 Hyundai Sonata SE\",\"attributes\":{\"Year\":\"2017\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"SE\",\"Short Trim\":\"SE\",\"Trim Variations\":\"Base PZEV \\/ Base \\/ SE PZEV \\/ SE \\/ Eco \\/ Sport \\/ Limited \\/ Sport 2.0T \\/ Limited 2.0T\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Midsize\",\"Vehicle Category\":\"Large Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"18.5 gallon\",\"City Mileage\":\"25 miles\\/gallon\",\"Highway Mileage\":\"36 miles\\/gallon\",\"Engine\":\"2.4L L4 DOHC 16V\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"6\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"3252\",\"Gross Weight\":\"\",\"Overall Height\":\"58.10 inches\",\"Overall Length\":\"191.10 inches\",\"Overall Width\":\"73.40 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$21,047\",\"Delivery Charges\":\"$835\",\"MSRP\":\"$21,950\"},\"success\":true,\"error\":\"\"}', 'DfR Solutions, Virginia Manor Road, Beltsville, MD, USA', '39.063356', '-76.893169', '2018-12-17 10:33:05', 3),
(21, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', '2547 Massachusetts Avenue, Cambridge, MA, USA', '42.4002336', '-71.1338137', '2018-12-16 15:49:20', 3), (16, NULL, '2017 Hyundai Sonata SE', 'sonata', 'hyundai', '2017', NULL, '{\"vehicle\":\"2017 Hyundai Sonata SE\",\"attributes\":{\"Year\":\"2017\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"SE\",\"Short Trim\":\"SE\",\"Trim Variations\":\"Base PZEV \\/ Base \\/ SE PZEV \\/ SE \\/ Eco \\/ Sport \\/ Limited \\/ Sport 2.0T \\/ Limited 2.0T\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Midsize\",\"Vehicle Category\":\"Large Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"18.5 gallon\",\"City Mileage\":\"25 miles\\/gallon\",\"Highway Mileage\":\"36 miles\\/gallon\",\"Engine\":\"2.4L L4 DOHC 16V\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"6\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"3252\",\"Gross Weight\":\"\",\"Overall Height\":\"58.10 inches\",\"Overall Length\":\"191.10 inches\",\"Overall Width\":\"73.40 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$21,047\",\"Delivery Charges\":\"$835\",\"MSRP\":\"$21,950\"},\"success\":true,\"error\":\"\"}', 'DfR Solutions, Virginia Manor Road, Beltsville, MD, USA', '39.063356', '-76.893169', '2018-12-17 10:33:11', 3),
(23, NULL, '2013 Hyundai Sonata GLS', 'sonata', 'hyundai', '2013', NULL, '{\"vehicle\":\"2013 Hyundai Sonata GLS\",\"attributes\":{\"Year\":\"2013\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"GLS\",\"Short Trim\":\"GLS\",\"Trim Variations\":\"GLS \\/ GLS PZEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Car\",\"Vehicle Category\":\"Large Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"18.5 gallon\",\"City Mileage\":\"24 miles\\/gallon\",\"Highway Mileage\":\"35 miles\\/gallon\",\"Engine\":\"2.4L L4 DOHC 16V\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"6\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"3199\",\"Gross Weight\":\"\",\"Overall Height\":\"57.90 inches\",\"Overall Length\":\"189.80 inches\",\"Overall Width\":\"72.20 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$20,293\",\"Delivery Charges\":\"$795\",\"MSRP\":\"$21,195\"},\"success\":true,\"error\":\"\"}', 'Dallas, TX, USA', '32.7766642', '-96.7969879', '2018-12-16 15:54:49', 3), (17, NULL, NULL, NULL, NULL, NULL, '1NXBR32E85Z505904', '{\"vin\":\"1NXBR32E85Z505904\",\"attributes\":{\"VIN\":\"1NXBR32E85Z505904\",\"Year\":\"2005\",\"Make\":\"Toyota\",\"Model\":\"Corolla\",\"Trim\":\"CE\",\"Short Trim\":\"CE\",\"Trim Variations\":\"CE \\/ LE \\/ S\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Compact\",\"Vehicle Category\":\"Compact Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"13.2 gallon\",\"City Mileage\":\"30 - 32 miles\\/gallon\",\"Highway Mileage\":\"38 - 41 miles\\/gallon\",\"Engine\":\"1.8L L4 DOHC 16V\",\"Engine Size\":\"1.8\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"4\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"Non-Abs | 4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"2615\",\"Gross Weight\":\"\",\"Overall Height\":\"58.50 inches\",\"Overall Length\":\"178.30 inches\",\"Overall Width\":\"66.90 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$14,287\",\"Delivery Charges\":\"$540\",\"MSRP\":\"$15,790\"},\"success\":true,\"error\":\"\"}', 'DRTY SMMR, Myrtle Avenue, Brooklyn, NY, USA', '40.6973088', '-73.9308637', '2018-12-17 11:42:55', 3),
(24, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', 'R G Skinner Parkway, Jacksonville, FL, USA', '30.2099654', '-81.5130142', '2018-12-16 15:57:38', 3); (20, NULL, '2005 Toyota Corolla CE', NULL, NULL, NULL, '1NXBR32E85Z505904', '{\"vin\":\"1NXBR32E85Z505904\",\"attributes\":{\"VIN\":\"1NXBR32E85Z505904\",\"Year\":\"2005\",\"Make\":\"Toyota\",\"Model\":\"Corolla\",\"Trim\":\"CE\",\"Short Trim\":\"CE\",\"Trim Variations\":\"CE \\/ LE \\/ S\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Compact\",\"Vehicle Category\":\"Compact Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"13.2 gallon\",\"City Mileage\":\"30 - 32 miles\\/gallon\",\"Highway Mileage\":\"38 - 41 miles\\/gallon\",\"Engine\":\"1.8L L4 DOHC 16V\",\"Engine Size\":\"1.8\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"4\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"Non-Abs | 4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"2615\",\"Gross Weight\":\"\",\"Overall Height\":\"58.50 inches\",\"Overall Length\":\"178.30 inches\",\"Overall Width\":\"66.90 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$14,287\",\"Delivery Charges\":\"$540\",\"MSRP\":\"$15,790\"},\"success\":true,\"error\":\"\",\"vehicle\":\"2005 Toyota Corolla CE\"}', 'CA, USA', '36.778261', '-119.4179324', '2018-12-17 12:35:05', 3);
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -125,26 +121,41 @@ INSERT INTO `customer_vehicle` (`customer_veh_id`, `customer_id`, `car_name`, `c ...@@ -125,26 +121,41 @@ INSERT INTO `customer_vehicle` (`customer_veh_id`, `customer_id`, `car_name`, `c
-- Table structure for table `issues` -- Table structure for table `issues`
-- --
DROP TABLE IF EXISTS `issues`; CREATE TABLE `issues` (
CREATE TABLE IF NOT EXISTS `issues` ( `issue_id` int(11) NOT NULL,
`issue_id` int(11) NOT NULL AUTO_INCREMENT,
`issue` varchar(500) NOT NULL, `issue` varchar(500) NOT NULL,
`status` tinyint(3) NOT NULL DEFAULT '1', `issue_image` varchar(500) DEFAULT NULL,
PRIMARY KEY (`issue_id`) `status` tinyint(3) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --
-- Dumping data for table `issues` -- Dumping data for table `issues`
-- --
INSERT INTO `issues` (`issue_id`, `issue`, `status`) VALUES INSERT INTO `issues` (`issue_id`, `issue`, `issue_image`, `status`) VALUES
(1, 'Oil Change and General Service (Free Water Service).', 2), (1, 'Oil Change and General Service (Free Water Service).', NULL, 2),
(2, 'Wheel Alignment and General Service (Free Water Service)', 1), (2, 'Wheel Alignment and General Service (Free Water Service)', NULL, 1),
(3, 'General Water Service and Periodic General Check up', 1), (3, 'General Water Service and Periodic General Check up', NULL, 1),
(4, 'Water Service (With polishing)', 1), (4, 'Water Service (With polishing)', NULL, 1),
(5, 'Water Service (Without polishing)', 1), (5, 'Water Service (Without polishing)', NULL, 1),
(6, 'Oil Change and General Service (Free Water Service and Polishing).', 1), (6, 'Oil Change and General Service (Free Water Service and Polishing).', NULL, 1),
(7, 'Oil Change and General Service (Free Water Service and Polishing).', 1); (7, 'Oil Change and General Service (Free Water Service and Polishing).', NULL, 1);
-- --------------------------------------------------------
--
-- Table structure for table `issues_category`
--
CREATE TABLE `issues_category` (
`issue_cat_id` int(11) NOT NULL,
`issue_id` int(11) DEFAULT NULL,
`issue_category` varchar(500) DEFAULT NULL,
`issue_cat_image` varchar(500) DEFAULT NULL,
`default_service_fee` double DEFAULT NULL,
`default_description` longtext,
`status` tinyint(3) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -152,9 +163,8 @@ INSERT INTO `issues` (`issue_id`, `issue`, `status`) VALUES ...@@ -152,9 +163,8 @@ INSERT INTO `issues` (`issue_id`, `issue`, `status`) VALUES
-- Table structure for table `mechanic` -- Table structure for table `mechanic`
-- --
DROP TABLE IF EXISTS `mechanic`; CREATE TABLE `mechanic` (
CREATE TABLE IF NOT EXISTS `mechanic` ( `id` int(11) NOT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
`mechanic_id` int(11) NOT NULL, `mechanic_id` int(11) NOT NULL,
`shop_id` int(11) NOT NULL DEFAULT '0', `shop_id` int(11) NOT NULL DEFAULT '0',
`first_name` varchar(50) NOT NULL, `first_name` varchar(50) NOT NULL,
...@@ -168,9 +178,8 @@ CREATE TABLE IF NOT EXISTS `mechanic` ( ...@@ -168,9 +178,8 @@ CREATE TABLE IF NOT EXISTS `mechanic` (
`licence_number` varchar(250) DEFAULT NULL, `licence_number` varchar(250) DEFAULT NULL,
`licence_exp_date` varchar(250) DEFAULT NULL, `licence_exp_date` varchar(250) DEFAULT NULL,
`location_lat` varchar(30) DEFAULT NULL, `location_lat` varchar(30) DEFAULT NULL,
`location_lng` varchar(30) DEFAULT NULL, `location_lng` varchar(30) DEFAULT NULL
PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
-- --
-- Dumping data for table `mechanic` -- Dumping data for table `mechanic`
...@@ -187,26 +196,26 @@ INSERT INTO `mechanic` (`id`, `mechanic_id`, `shop_id`, `first_name`, `last_name ...@@ -187,26 +196,26 @@ INSERT INTO `mechanic` (`id`, `mechanic_id`, `shop_id`, `first_name`, `last_name
-- Table structure for table `mechanic_issues` -- Table structure for table `mechanic_issues`
-- --
DROP TABLE IF EXISTS `mechanic_issues`; CREATE TABLE `mechanic_issues` (
CREATE TABLE IF NOT EXISTS `mechanic_issues` ( `id` int(11) NOT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
`issue_id` int(11) DEFAULT NULL, `issue_id` int(11) DEFAULT NULL,
`issue_cat_id` int(11) DEFAULT NULL,
`mechanic_id` int(11) DEFAULT NULL, `mechanic_id` int(11) DEFAULT NULL,
`issue_description` longtext, `custom_image` varchar(500) DEFAULT NULL,
`service_fee` double NOT NULL DEFAULT '0', `custom_description` longtext,
`status` tinyint(3) NOT NULL DEFAULT '1', `custom_service_fee` double NOT NULL DEFAULT '0',
PRIMARY KEY (`id`) `status` tinyint(3) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --
-- Dumping data for table `mechanic_issues` -- Dumping data for table `mechanic_issues`
-- --
INSERT INTO `mechanic_issues` (`id`, `issue_id`, `mechanic_id`, `issue_description`, `service_fee`, `status`) VALUES INSERT INTO `mechanic_issues` (`id`, `issue_id`, `issue_cat_id`, `mechanic_id`, `custom_image`, `custom_description`, `custom_service_fee`, `status`) VALUES
(1, 1, 12, 'sert', 435345, 0), (1, 1, NULL, 12, NULL, 'sert', 435345, 0),
(2, 2, 2, 'fghdrftyhudsrxfytuh we e4rtwe4t we5tywer5 we5twer tew4rte etewt aw4raew w3rw3e w3r4wer fghdrftyhudsrxfytuh we e4rtwe4t we5tywer5 we5twer tew4rte etewt aw4raew w3rw3e w3r4wer fghdrftyhudsrxfytuh we e4rtwe4t we5tywer5 we5twer tew4rte etewt aw4raew w3rw3e w3r4wer fghdrftyhudsrxfytuh we e4rtwe4t we5tywer5 we5twer tew4rte etewt aw4raew w3rw3e w3r4wer fghdrftyhudsrxfytuh we e4rtwe4t we5tywer5 we5twer tew4rte etewt aw4raew w3rw3e w3r4wer', 435345, 1), (2, 2, NULL, 2, NULL, 'fghdrftyhudsrxfytuh we e4rtwe4t we5tywer5 we5twer tew4rte etewt aw4raew w3rw3e w3r4wer fghdrftyhudsrxfytuh we e4rtwe4t we5tywer5 we5twer tew4rte etewt aw4raew w3rw3e w3r4wer fghdrftyhudsrxfytuh we e4rtwe4t we5tywer5 we5twer tew4rte etewt aw4raew w3rw3e w3r4wer fghdrftyhudsrxfytuh we e4rtwe4t we5tywer5 we5twer tew4rte etewt aw4raew w3rw3e w3r4wer fghdrftyhudsrxfytuh we e4rtwe4t we5tywer5 we5twer tew4rte etewt aw4raew w3rw3e w3r4wer', 435345, 1),
(3, 1, 2, 'edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 ', 435345, 0), (3, 1, NULL, 2, NULL, 'edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 ', 435345, 0),
(4, 1, 2, 'edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 ', 435345, 0); (4, 1, NULL, 2, NULL, 'edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 ', 435345, 0);
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -214,16 +223,14 @@ INSERT INTO `mechanic_issues` (`id`, `issue_id`, `mechanic_id`, `issue_descripti ...@@ -214,16 +223,14 @@ INSERT INTO `mechanic_issues` (`id`, `issue_id`, `mechanic_id`, `issue_descripti
-- Table structure for table `mechanic_shop` -- Table structure for table `mechanic_shop`
-- --
DROP TABLE IF EXISTS `mechanic_shop`; CREATE TABLE `mechanic_shop` (
CREATE TABLE IF NOT EXISTS `mechanic_shop` ( `shop_id` int(11) NOT NULL,
`shop_id` int(11) NOT NULL AUTO_INCREMENT,
`shop_name` varchar(250) NOT NULL, `shop_name` varchar(250) NOT NULL,
`address` varchar(500) NOT NULL, `address` varchar(500) NOT NULL,
`phone` varchar(15) NOT NULL, `phone` varchar(15) NOT NULL,
`email_id` varchar(150) NOT NULL, `email_id` varchar(150) NOT NULL,
`status` tinyint(3) NOT NULL DEFAULT '1', `status` tinyint(3) NOT NULL DEFAULT '1'
PRIMARY KEY (`shop_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- --
-- Dumping data for table `mechanic_shop` -- Dumping data for table `mechanic_shop`
...@@ -239,9 +246,8 @@ INSERT INTO `mechanic_shop` (`shop_id`, `shop_name`, `address`, `phone`, `email_ ...@@ -239,9 +246,8 @@ INSERT INTO `mechanic_shop` (`shop_id`, `shop_name`, `address`, `phone`, `email_
-- Table structure for table `setting` -- Table structure for table `setting`
-- --
DROP TABLE IF EXISTS `setting`; CREATE TABLE `setting` (
CREATE TABLE IF NOT EXISTS `setting` ( `id` int(11) NOT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(250) NOT NULL, `title` varchar(250) NOT NULL,
`title_short` varchar(250) NOT NULL, `title_short` varchar(250) NOT NULL,
`site_logo` varchar(150) NOT NULL, `site_logo` varchar(150) NOT NULL,
...@@ -253,9 +259,8 @@ CREATE TABLE IF NOT EXISTS `setting` ( ...@@ -253,9 +259,8 @@ CREATE TABLE IF NOT EXISTS `setting` (
`smtp_password` varchar(150) NOT NULL, `smtp_password` varchar(150) NOT NULL,
`google_api_key` varchar(500) DEFAULT NULL, `google_api_key` varchar(500) DEFAULT NULL,
`vin_audit_url` varchar(500) DEFAULT NULL, `vin_audit_url` varchar(500) DEFAULT NULL,
`vin_audit_api` varchar(500) DEFAULT NULL, `vin_audit_api` varchar(500) DEFAULT NULL
PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-- --
-- Dumping data for table `setting` -- Dumping data for table `setting`
...@@ -263,6 +268,122 @@ CREATE TABLE IF NOT EXISTS `setting` ( ...@@ -263,6 +268,122 @@ CREATE TABLE IF NOT EXISTS `setting` (
INSERT INTO `setting` (`id`, `title`, `title_short`, `site_logo`, `fav_icon`, `country_flag`, `currency`, `smtp_host`, `smtp_username`, `smtp_password`, `google_api_key`, `vin_audit_url`, `vin_audit_api`) VALUES INSERT INTO `setting` (`id`, `title`, `title_short`, `site_logo`, `fav_icon`, `country_flag`, `currency`, `smtp_host`, `smtp_username`, `smtp_password`, `google_api_key`, `vin_audit_url`, `vin_audit_api`) VALUES
(1, 'd-Car Fixers', 'd-CarFixers', 'assets/uploads/services/1539680946_1523012036_hj.jpg', 'assets/uploads/services/1539680946_1523540473_guenstig_reifen.png', 'US', 'USD', '[email protected]', 'AIzaSyC9JX3BZZfx2S6GQieC_PqjuJdUbZ7_wyM1', 'Golden_1234', 'AIzaSyCcc-YDSJyDpehNE6qfntfWpEQ4uS4aq6A', 'https://specifications.vinaudit.com/getspecifications.php', 'VA_DEMO_KEY'); (1, 'd-Car Fixers', 'd-CarFixers', 'assets/uploads/services/1539680946_1523012036_hj.jpg', 'assets/uploads/services/1539680946_1523540473_guenstig_reifen.png', 'US', 'USD', '[email protected]', 'AIzaSyC9JX3BZZfx2S6GQieC_PqjuJdUbZ7_wyM1', 'Golden_1234', 'AIzaSyCcc-YDSJyDpehNE6qfntfWpEQ4uS4aq6A', 'https://specifications.vinaudit.com/getspecifications.php', 'VA_DEMO_KEY');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin_users`
--
ALTER TABLE `admin_users`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `customers`
--
ALTER TABLE `customers`
ADD PRIMARY KEY (`customer_id`);
--
-- Indexes for table `customer_vehicle`
--
ALTER TABLE `customer_vehicle`
ADD PRIMARY KEY (`customer_veh_id`);
--
-- Indexes for table `issues`
--
ALTER TABLE `issues`
ADD PRIMARY KEY (`issue_id`);
--
-- Indexes for table `issues_category`
--
ALTER TABLE `issues_category`
ADD PRIMARY KEY (`issue_cat_id`);
--
-- Indexes for table `mechanic`
--
ALTER TABLE `mechanic`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mechanic_issues`
--
ALTER TABLE `mechanic_issues`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mechanic_shop`
--
ALTER TABLE `mechanic_shop`
ADD PRIMARY KEY (`shop_id`);
--
-- Indexes for table `setting`
--
ALTER TABLE `setting`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin_users`
--
ALTER TABLE `admin_users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `customers`
--
ALTER TABLE `customers`
MODIFY `customer_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `customer_vehicle`
--
ALTER TABLE `customer_vehicle`
MODIFY `customer_veh_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `issues`
--
ALTER TABLE `issues`
MODIFY `issue_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `issues_category`
--
ALTER TABLE `issues_category`
MODIFY `issue_cat_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mechanic`
--
ALTER TABLE `mechanic`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `mechanic_issues`
--
ALTER TABLE `mechanic_issues`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `mechanic_shop`
--
ALTER TABLE `mechanic_shop`
MODIFY `shop_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `setting`
--
ALTER TABLE `setting`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
COMMIT; COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment