<?php 

$custom_fields_style = '';
$dm_profile_temp_aligment = 'center';
// account 
$show_profile_account_info_section = true;
$show_first_name_section = true;
$show_last_name_section = true;
$show_email_section = true;
// password
$show_profile_change_password_section = true;

//billing
$show_profile_billing_info_section = true;
$show_profile_billing_address1_section = true;
$show_profile_billing_address2_section = true;
$show_profile_billing_city_section = true;
$show_profile_billing_state_section = true;
$show_profile_billing_postal_code_section = true;
$show_profile_billing_country_section = true;
//$show_profile_billing_phone_section = true;
//$show_profile_billing_company_section = true;
//$show_profile_billing_paypal_email_section = true;
//$show_profile_billing_opted_out_section = true;

// additinal
$show_profile_additional_info_section = false;
$show_profile_additional_phone_section = false;
$show_profile_additional_fax_section = false;
$show_profile_additional_company_section = false;
$show_additional_title_section = false;
$show_profile_additional_paypal_email_section = false;
$show_profile_additional_opted_out_section = true;

// gdpr
$show_profile_gdpr_section = false; 

//custom fields
$show_custom_fields_section = true; 


$sprd_radius= 0;
$temp_frnt_wid= 790;
$temp_frnt_bdr_wid= 0;
$temp_frnt_br_radius= 0;
$temp_frnt_padd_top= 0;
$cancel_btn_frnt_wid= 124;
$cancel_btn_frnt_bdr_wid= 0;
$cancel_btn_frnt_br_radius= 5;
$update_btn_frnt_wid= 124;
$update_btn_frnt_bdr_wid= 0;
$update_btn_frnt_br_radius= 5;
$ver_lnth= 0;
$hor_lnth= 0;
$blur_radius= 9;
$temp_frnt_padd_bottom = 0;



$temp_frnt_bdr_style='none';
$cancel_btn_frnt_bdr_style='none';
$update_btn_frnt_bdr_style='none';



$account_background_color_div = "#f9f9f9";
$account_background_color = "#f9f9f9";
$change_pass_background_color = "#f9f9f9";
$billing_background_color = "#f9f9f9";
$additional_background_color = "#f9f9f9";
$gdpr_background_color = "#f9f9f9";
$temp_background_outer_color = "#f9f9f9";
$temp_frnt_bdr_color = "#ddd";
$cancel_btn_background_outer_color = "#dc3545";
$cancel_btn_frnt_bdr_color = "#dc3545";
$update_btn_background_outer_color = "#085ec4";
$update_btn_frnt_bdr_color = "#085ec4";
$shad_clr = "#bababa";

$default_checkedbox_values = array(	

'show_profile_account_info_section' => $show_profile_account_info_section,
'show_first_name_section' => $show_first_name_section,
'show_last_name_section' => $show_last_name_section,
'show_email_section' => $show_email_section,

'show_profile_change_password_section' => $show_profile_change_password_section,


'show_profile_billing_info_section' => $show_profile_billing_info_section,
'show_profile_billing_address1_section' => $show_profile_billing_address1_section,
'show_profile_billing_address2_section' => $show_profile_billing_address2_section,
'show_profile_billing_city_section' => $show_profile_billing_city_section,
'show_profile_billing_state_section' => $show_profile_billing_state_section,
'show_profile_billing_postal_code_section' => $show_profile_billing_postal_code_section,
'show_profile_billing_country_section' => $show_profile_billing_country_section,

'show_profile_additional_info_section' => $show_profile_additional_info_section,
'show_profile_additional_phone_section' => $show_profile_additional_phone_section,
'show_profile_additional_fax_section' => $show_profile_additional_fax_section,
'show_profile_additional_company_section' => $show_profile_additional_company_section,
'show_additional_title_section' => $show_additional_title_section,
'show_profile_additional_paypal_email_section' => $show_profile_additional_paypal_email_section,
'show_profile_additional_opted_out_section' => $show_profile_additional_opted_out_section,

'show_profile_gdpr_section' => $show_profile_gdpr_section,
'show_custom_fields_section' => $show_custom_fields_section,
);
$default_numaric_values = array(	

 'sprd_radius' => $sprd_radius,
 'temp_frnt_wid' => $temp_frnt_wid,
 'temp_frnt_bdr_wid' => $temp_frnt_bdr_wid,
 'temp_frnt_br_radius' => $temp_frnt_br_radius,
 'temp_frnt_padd_top' => $temp_frnt_padd_top,
 'cancel_btn_frnt_wid' => $cancel_btn_frnt_wid,
 'cancel_btn_frnt_bdr_wid' => $cancel_btn_frnt_bdr_wid,
 'cancel_btn_frnt_br_radius' => $cancel_btn_frnt_br_radius,
 'update_btn_frnt_wid' => $update_btn_frnt_wid,
 'update_btn_frnt_bdr_wid' => $update_btn_frnt_bdr_wid,
 'update_btn_frnt_br_radius' => $update_btn_frnt_br_radius,
  'ver_lnth' => $ver_lnth,
  'hor_lnth' => $hor_lnth,
  'blur_radius' => $blur_radius,
  'temp_frnt_padd_bottom' => $temp_frnt_padd_bottom,
);


$default_style_values = array(	
	"temp_frnt_bdr_style" => $temp_frnt_bdr_style,
	"cancel_btn_frnt_bdr_style" => $cancel_btn_frnt_bdr_style,
	"update_btn_frnt_bdr_style" => $update_btn_frnt_bdr_style,
	"custom_fields_style" => $custom_fields_style,
	"dm_profile_temp_aligment" => $dm_profile_temp_aligment, 
);

$default_colorpicker_values = array(
	"account_background_color" => $account_background_color,
	"change_pass_background_color" => $change_pass_background_color,
	"billing_background_color" => $billing_background_color,
	"additional_background_color" => $additional_background_color,
	"gdpr_background_color" => $gdpr_background_color,
	"temp_background_outer_color" => $temp_background_outer_color,
	"temp_frnt_bdr_color" => $temp_frnt_bdr_color,
	"cancel_btn_background_outer_color" => $cancel_btn_background_outer_color,
	"cancel_btn_frnt_bdr_color" => $cancel_btn_frnt_bdr_color,
	"update_btn_background_outer_color" => $update_btn_background_outer_color,
	"update_btn_frnt_bdr_color" => $update_btn_frnt_bdr_color,
	"shad_clr" => $shad_clr,
);

 
$html  = '<div id="dap_member_profile_outer">
			<div class="dap_member_profile_inner">
			 <form action="" enctype="multipart/form-data" name="dap_update_profile_form" method="POST" id="dap_update_profile_form">
				 <div class="master_heading border-bottom-0 mb-4 dap_member_tiny_editor">
					<h4><i class="fa fa-pencil-square-o mr-2"></i> Update Account Details</h4>
				</div>  
				
				 <div class="enter_name_outer show_profile_account_info_section">
					<div class="section_heading dap_member_tiny_editor"><div>Account Information</div></div>
					<div class="form-group row mt-4 show_first_name_section">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor"> First Name</label>
						</div>
						<div class="col-sm-8">
							<input type="text" class="form-control" required="Y"  name="u_first_name" %%FIRSTNAME%% data-lpignore="true">
						</div>
					</div> 
					
					<div class="form-group row show_last_name_section">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor"> Last Name</label>
						</div>
						<div class="col-sm-8">
							<input type="text" class="form-control"   name="u_last_name"  %%LASTNAME%% data-lpignore="true">
						</div>
					</div>
					
					
					
					<div class="form-group row show_email_section">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor"> Email</label>
						</div>
						<div class="col-sm-8">
							<input type="text" class="form-control"   required="Y" name="u_email" %%EMAIL%% data-lpignore="true">
						</div>
					</div>
					
					
				</div>
				
				<div class="enter_name_outer show_profile_change_password_section">
					<h3 class="section_heading dap_member_tiny_editor">Change Password</h3>
					<div class="form-group row mt-4">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor"> New Password</label>
						</div>
						<div class="col-sm-8">
							<input type="password" class="form-control"    name="u_password"  %%PASSWORD%% data-lpignore="true" >
						</div>
					</div>
					
					<div class="form-group row">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor"> Confirm Password</label>
						</div>
						<div class="col-sm-8">
							<input type="password" class="form-control"   name="password_repeat"  data-lpignore="true">
						</div>
					</div>
				</div>
				
				<div class="enter_name_outer show_profile_billing_info_section">
					<div class="dap_member_tiny_editor"><h3 class="section_heading ">Billing Information</h3></div>
					<div class="form-group row mt-4 show_profile_billing_address1_section">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor">Address Line 1</label>
						</div>
						<div class="col-sm-8">
							<input type="text" class="form-control"   name="u_address1" %%ADDRESS1%% data-lpignore="true">
						</div>
					</div>
					
					<div class="form-group row mt-4 show_profile_billing_address2_section">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor">Address Line 2</label>
						</div>
						<div class="col-sm-8">
							<input type="text" class="form-control"   name="u_address2" %%ADDRESS2%% data-lpignore="true">
						</div>
					</div>
					
					<div class="form-group row show_profile_billing_city_section">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor"> City</label>
						</div>
						<div class="col-sm-8">
							<input type="text" class="form-control"   name="u_city" %%CITY%%  data-lpignore="true">
						</div>
					</div>
					
					<div class="form-group row show_profile_billing_state_section">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor"> State</label>
						</div>
						<div class="col-sm-8">
							<input type="text" class="form-control"   name="u_state" %%STATE%% data-lpignore="true">
						</div>
					</div>
					
					<div class="form-group row show_profile_billing_postal_code_section">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor"> Zip/Postal Code</label>
						</div>
						<div class="col-sm-8">
							<input type="text" class="form-control"   name="u_zip" %%ZIP%% data-lpignore="true">
						</div>
					</div>
					
					<div class="form-group row show_profile_billing_country_section">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor"> Country</label>
						</div>
						<div class="col-sm-8">
							<input type="text" class="form-control"   name="u_country" %%COUNTRY%%  data-lpignore="true">
						</div>
					</div>
					
					
					
					
					
					
				</div>
				<div class="enter_name_outer show_profile_aff_req_section" style="display:none" >
					<div class="dap_member_tiny_editor">
						<h3 class="section_heading">Want an exclusive coupon to promote our products and services?</h3>
					</div>
					<div class="form-group row show_profile_aff_enter_coupon_section mt-4" >
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor"> Enter promo code you want to use:</label>
						</div>
						<div class="col-sm-8">
							<input type="text" class="form-control"   name="u_promocode" %%PROMOCODE%% data-lpignore="true">
						</div>
					</div>
				</div>	
				<div class="enter_name_outer show_profile_additional_info_section" style="display:none">
					<div class="dap_member_tiny_editor"><h3 class="section_heading">Additional Information</h3></div>
									
					<div class="form-group row show_profile_additional_phone_section mt-4" style="display:none">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor"> Phone</label>
						</div>
						<div class="col-sm-8">
							<input type="text" class="form-control"   name="u_phone" %%PHONE%% data-lpignore="true">
						</div>
					</div>
					<div class="form-group row show_profile_additional_fax_section mt-4" style="display:none">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor"> Fax</label>
						</div>
						<div class="col-sm-8">
							<input type="text" class="form-control"   name="u_fax" %%FAX%% data-lpignore="true">
						</div>
					</div>
					
					<div class="form-group row show_profile_additional_company_section mt-4" style="display:none">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor"> Company</label>
						</div>
						<div class="col-sm-8">
							<input type="text" class="form-control"   name="u_company" %%COMPANY%%  data-lpignore="true">
						</div>
					</div>
					
					<div class="form-group row show_additional_title_section mt-4" style="display:none">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor"> Title</label>
						</div>
						<div class="col-sm-8">
							<input type="text" class="form-control"   name="u_title" %%TITLE%%  data-lpignore="true">
						</div>
					</div>
					
					<div class="form-group row show_profile_additional_paypal_email_section mt-4" style="display:none">
						<div class="col-sm-4 d-flex align-items-center">
							<label class="dap_member_tiny_editor"> Paypal Email</label>
						</div>
						<div class="col-sm-8">
							<input type="email" class="form-control"   name="u_paypal_email" %%PAYPALEMAIL%% data-lpignore="true"> 
						</div>
					</div>
					<div class="additional_custom_fields show_custom_fields_section %%CUSTOMFIELDSSHOW%%">%%CUSTOMFIELDS%%</div>
					
				</div>

			

				<div class="enter_name_outer show_profile_file_upload Out_section"  style="display:none">
					<div class="dap_member_tiny_editor"><h3 class="section_heading">File Upload</h3></div>
										
					<div class="file_upload_inner mt-4">
						<p class="editable">Enter number of files you want to upload </p>
						<div class="file_upload_main_inner">
							<div class="maxNumFilesSelectOuter">
								<select class="form-control">
									<option value="1">1</option>
								</select>
							</div>
							<div class="uploadFilesInputOuter">
								<div class="file-upload-wrapper">
									<div class="file-upload">
										<div class="file-upload-message">
											<i class="fa fa-cloud-upload" aria-hidden="true"></i>
											<p>Drag and drop a file here or click</p>
											<p class="file-upload-error">Ooops, something wrong happended.</p>
										</div>

										<input type="file" name="formBuilderFile1" data-id="1" id="input-file-max-fs" class="file_upload" data-max-file-size="2M">
										<button type="button" class="btn btn-danger">Remove<i class="fa fa-trash-o" aria-hidden="true"></i></button>

										<div class="file-upload-preview">
											<span class="file-upload-render">
												<img class="file-upload-preview-img" src="">
											</span>
											<div class="file-upload-infos">
												<div class="file-upload-infos-inner">
													<p class="file-upload-filename"><span class="file-upload-filename-inner">about.jpg</span></p>
													<p class="file-upload-infos-message">Drag and drop or click to replace</p>
												</div>
											</div>
										</div>
									</div>
									<label class="uploadedFileName1 uploadedFileNamePre" style="display:none"></label>
								</div>
							</div>
						</div>
					</div>
				</div>
				
				<div class="enter_name_outer show_already_uploaded_files_section Out_section" style="display:none">
					<div class="dap_member_tiny_editor"><h3 class="section_heading">Already Uploaded Files</h3></div>
										
					<div class="form-group row mt-4 show_first_name_section">
						<div class="col-sm-12">
							%%ALREADYUPLOADEDFILES%%
						</div>
					</div> 
					
				</div>
				
				
				<div class="enter_name_outer show_profile_gdpr_section %%GDPRSHOW%%" style="display:none">
					<div class="dap_member_tiny_editor"><h3 class="section_heading">GDPR Consent</h3></div>
					<div class="form-group row">
						<div class="col-sm-12">
							<div class="dap_member_tiny_editor"><div class="gdpr_consent_text"><div>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div></div></div>
							<input type="checkbox"  class="required gdpr_checkbox" value="" name="GDPRConsent"><span class="dap_member_tiny_editor"><span>Yes, I agree to the Terms.</span></span> 
						</div>
					</div>
				</div>
					<div class="enter_name_outer show_profile_Opted Out_section" >
					<div class="dap_member_tiny_editor"><h3 class="section_heading">Opted Out</h3></div>
										
					<div class="form-group row show_profile_additional_opted_out_section mt-4">
						<div class="col-sm-12 align-items-start d-flex">
							<input type="checkbox" name="dap_opted_out_checkbox" %%OPTEDOUT%%  >
							<label class="dap_member_tiny_editor"><div> Check to receive product and account related emails. Uncheck to unsubscribe (not recommended)</div></label>
						</div>
					</div>
					
				</div>	
				 <div class="row">
					  <div class="col-sm-12 text-right">
						  <div class="btn btn-success theme-btn dap_member_tiny_editor dap_member_profile_update_btn">Update</div>
					</div>
				</div>
				
				<div style="display:none">%%HIDDENFIELDS%%</div>
				</form>
			</div>
		</div>'; 
 

 

 
 
 
 
 
 

$css_file_path = dap_member_path."includes/templates/profile/template1/style.css?".rand(1,1000);

if(!isset($_SESSION['return_data'])){
	echo json_encode(array('html'=>$html,'css_file_path'=>$css_file_path,'default_numaric_values'=>$default_numaric_values,'default_style_values'=>$default_style_values,'default_colorpicker_values'=>$default_colorpicker_values,'html_reset_pass'=>$html_reset_pass,'html_forgot_pass'=>$html_forgot_pass,'default_checkedbox_values'=>$default_checkedbox_values));
	die;
}

