<?php
if($CustomerId!=''){

	$apiUrl=$apiBaseUrl."/api/customers/view.php?apikey=".$apiKey."&time=".$time;
	$postdata=$postdata.'&customers_id='.$CustomerId.'';
	$resp=GetApiData($apiUrl,$postdata);
	$rowCCL=json_decode($resp);
	$customers_id_UL=$rowCCL->customers_id;
	$customers_name_UL=$rowCCL->customers_name;
	$customers_name_l_UL=$rowCCL->customers_name_l;
	$customers_email_UL=$rowCCL->customers_email;
	$customers_mobile_UL=$rowCCL->customers_mobile;
	$customers_zip_UL=$rowCCL->customers_zip;
	$is_discount_UL=$rowCCL->is_discount;
	$Billing_Address_UL=$rowCCL->Billing_Address;
	$Billing_State_UL=$rowCCL->Billing_State;
	$postal_code_UL=$rowCCL->postal_code;
	$Billing_Phone_UL=$rowCCL->Billing_Phone;
	$Billing_Name_UL=$rowCCL->Billing_Name;
	$accounttype_UL=$rowCCL->accounttype;
	$businessname_UL=$rowCCL->businessname;
	$businessyear_UL=$rowCCL->businessyear;
	$refid_UL=$rowCCL->refid;
	$vcode_UL=$rowCCL->v_code;
	$profileimage_UL=$rowCCL->profileImage;
	if($accounttype_UL=='PersonalAccount'){
		$accounttype_ULD=1;
	}else if($accounttype_UL=='MeetingEvents'){
		$accounttype_ULD=4;
	}else if($accounttype_UL=='CorporateAccount'){
		$accounttype_ULD=2;
	}
	if($profileimage_UL!=''){
		$profileimageURL_UL=get_site_url().'/uploads/customers/'.$profileimage_UL;	
	}else{
		$profileimageURL_UL=get_template_directory_uri().'/assets/images/no-image.png';
	}
	$phonecountry_UL=$rowCCL->phonecountry;
	$serviceid_UL=$rowCCL->serviceid;
	$noofpass_UL=$rowCCL->noofpass;
	$noofvehicles_UL=$rowCCL->noofvehicles;
	
	$businessname_UL=$rowCCL->businessname;
	$typeofbusiness_UL=$rowCCL->typeofbusiness;
	$department_UL=$rowCCL->department;
	$noofpeopleauth_UL=$rowCCL->noofpeopleauth;
	$hearaboutus_UL=$rowCCL->hearaboutus;
	$Billing_Address_UL=$rowCCL->Billing_Address;
	$Billing_City_UL=$rowCCL->Billing_City;
	$Billing_State_UL=$rowCCL->Billing_State;
	$postal_code_UL=$rowCCL->postal_code;
	$jobtitle_UL=$rowCCL->jobtitle;
	$notesforus_UL=$rowCCL->notesforus;
	$notesfordrivers_UL=$rowCCL->notesfordrivers;
	$notesforcustomer_UL=$rowCCL->notesforcustomer;
	$custaccounttype_UL=$rowCCL->custaccounttype;
	$cstpriority_UL=$rowCCL->cstpriority;
	$status_UL=$rowCCL->status;
	$webaccess_UL=$rowCCL->webaccess;
	$mainactwebaccess_UL=$rowCCL->mainactwebaccess;
	$rentalagreement_UL=$rowCCL->rentalagreement;
	$paymentmethod_UL=$rowCCL->paymentmethod;
	$paymentterms_UL=$rowCCL->paymentterms;
}
?>