<section id="profile" class="content_wrapper innerPage">
            <div class="container clearfix">
              <?php if($this->session->userdata('other_error')){ ?>
              <div class="error-alert"> <?php echo getLang('To_visiting_other_profiles__please_complete_the_required_fields'); ?>.</div>
              <?php $this->session->unset_userdata('other_error'); } ?>  
              <?php if($this->session->userdata('other_error_height')){ ?>
              <div class="error-alert"> <?php echo getLang('To_visiting_other_profiles__please_complete_the_required_fields_height'); ?>.</div>
              <?php $this->session->unset_userdata('other_error_height'); } ?>
               
              <div class="edit-profile">
                <h1><?php echo getLang('PROFILE_SETTINGS'); ?></h1>
                <span id="edit_profile_error" style="color:red;"></span>
                <?php $checkMobileVerified = checkMobileVerified($this->session->userdata('user_id'));?>
                <?php if($checkMobileVerified==0){ ?>
                <div class="edit-block full" style="border-color: red;">
                  <h4><?php echo getLang('PLEASE_VALIDATE_YOUR_MOBILE_NUMBER'); ?>!</h4>
                  <p><?php echo getLang('Before_attending_the_party'); ?>.</p>
                  <p><?php echo getLang('Option'); ?> 1. <?php echo getLang('Please_add_a_valid_mobile_number'); ?>.</p>
                  <p><?php echo getLang('Option'); ?> 2. <?php echo getLang('Add_the_received_Code'); ?></p>
                  <p><i class="fa fa-info-circle" style="color:#b3975b; font-size: 18px;"></i> <?php echo getLang('After_full_filled_validation_you'); ?></p>
                </div>
                <?php } ?>
                <?php $percent = profile_percent($this->session->userdata('user_id'));?>
                <?php if($percent==90 && $userDetials['accounttype']!='gentleman'){ ?>
                <div class="edit-block full">
                  <h4><?php echo getLang('Congratulations'); ?>!</h4>
                  <p><?php echo getLang('Your_profile_is_alreday_90%_completed'); ?>.</p>
                  <p><?php echo getLang('Option'); ?> 1. <?php echo getLang('Attend_to_one_of_our_parties'); ?>.</p>
                  <p><?php echo getLang('Option'); ?> 2. <?php echo getLang('Send_us_a_picture_with_a_handwritten'); ?></p>
                </div>
                <?php } ?>
                <?php if($percent==80){ ?>
                <div class="edit-block full">
                  <h4><?php echo getLang('WELCOME'); ?>!</h4>
                  <p><?php echo getLang('Below__we_would_like_to_introduce'); ?>.</p>
                  <p><?php echo getLang('Option'); ?> 1. <?php echo getLang('Expand_your_profile_with_additional'); ?>.</p>
                  <p><?php echo getLang('Option'); ?> 2. <?php echo getLang('to_our_email_for_verification_reason'); ?></p>
                  <p><?php echo getLang('Option'); ?> 3. <?php echo getLang('Book_one_of_the_parties'); ?></p>
                </div>
                <?php } ?>
                <?php if($userDetials['verified']==0 && $loginDetails[0]['blacklist']==1){ ?>
                  <?php if(!empty($userMembershipDetails) && $userMembershipDetails['id']==5){?>
                    <!-- <div class="edit-block full" style="border-color: red;">
                      <p style="color: red;"><?php echo getLang('You_have_to_upgrade_to_100_for_further'); ?>!</p>
                    </div> -->
                  <?php } ?>
                <?php } ?>
                <form action="" id="edit-from" method="post"> 
                <div class="edit-block-left">
                  <div class="edit-block">
                    <h3><?php echo getLang('ACCOUNT'); ?></h3>
                    <p>
                      <label><?php echo getLang('Member_ID'); ?></label> <?php if(!empty($userDetials)){ echo $userDetials['user_id']; }?>
                    </p>
                    <p>
                      <label><?php echo getLang('Username'); ?></label> <?php if(!empty($userDetials)){ echo $userDetials['username']; }?>
                        <?php if(!empty($userMembershipDetails)) {
                                if($userMembershipDetails['id']==4 || $userMembershipDetails['id']==5) {
                        ?>
                        <a href="javascript:void(0)" class="changeUsername"><?php echo getLang('Change_username'); ?></a>
                        <div class="field_about change-username" style="display:none;">
                          <label><?php echo getLang('Change_username'); ?> </label>
                          <span class="new-username-err"></span>       
                          <div class="mobileWrapperDiv"> 
                            <input type="text" name="new_username" id="new_username" placeholder="">
                            <a class="validated" id="username-save"><?php echo getLang('Save'); ?></a>
                          </div>
                        </div>
                        <?php
                          } }
                        ?>
                    </p>
                    <p>
                      <label> <?php echo getLang('Membership'); ?></label>  <span class="upgrade_span"><?php if(!empty($userMembershipDetails) && $userMembershipDetails['id']==4){ echo getLang('Premium'); } elseif(!empty($userMembershipDetails) && $userMembershipDetails['id']==5) { echo getLang('Basic').' <a href="javascript:void(0)" class="modal_popup upgradePremium" data-id="upgrade">'.getLang('Upgrade_your_membership').'</a>'; } else { echo getLang('Free').' <a href="javascript:void(0)" class="modal_popup upgradePremium" data-id="upgrade">'.getLang('Upgrade_your_membership').'</a>'; } ?> </span>
                    </p>
                    <p>
                      <label><?php echo getLang('Registered'); ?></label>  <?php if(!empty($loginDetails)){ echo date('d.m.Y',$loginDetails[0]['created']); }?>
                    </p>
                    
                    <p>
                      <label><?php echo getLang('Your_E_Mail'); ?></label> <?php if(!empty($loginDetails)){ echo $loginDetails[0]['email']; }?>  <a href="javascript:void(0)" class="changeEmail"><?php echo getLang('Change_Email'); ?></a>
                      
                      <div class="field_about change-email" style="display:none;">
                        <label><?php echo getLang('New_email'); ?> </label>
                        <span class="new-email-err"></span>       
                        <div class="mobileWrapperDiv"> 
                          <input type="text" name="new_email" id="new_email" placeholder="">
                          <a class="validated" id="email-validate"><?php echo getLang('VALIDATE'); ?></a>
                        </div>
                      </div>

                      
                        <?php //if($userDetials['mobile_number']==0){ ?>
                    </p>
                    <p>
                      <label><?php echo getLang('mobile_no'); ?></label> <?php if($userDetials['mobile_number']>0){ echo $userDetials['mobile_number']; }?>

                      
                      <?php //} ?>
                    </p>
                    <p>
                      <label><?php echo getLang('Account'); ?></label> <?php if(!empty($userDetials)){ echo ucfirst($userDetials['accounttype']); }?>
                    </p>
                    <p>
                      <label><?php echo getLang('Password'); ?></label> <a href="javascript:void(0)" class="changePassword"> <?php echo getLang('Change_Password'); ?></a>
                    </p>
                    <div class="change-password" style="display:none;">
                      <p>
                        <label><?php echo getLang('New_password'); ?></label> <input type="password" name="new_password">
                      </p>
                      <p>
                        <label><?php echo getLang('Repeat_new_password'); ?></label> <input type="password" name="confirm_password">
                      </p>
                    </div>
                    <p>
                      <label><?php echo getLang('All_card_details'); ?></label> <a href="<?php echo base_url('new-card-add');?>"> <?php echo getLang('Add_new_card'); ?></a>
                    </p>
                    <?php if(!empty($userMembershipDetails)) {
                          if($userMembershipDetails['id']==4 || $userMembershipDetails['id']==5) {
                        $getOpenBookingInvoices = getOpenBookingInvoices();
                        if($getOpenBookingInvoices == 0){
                    ?>
                    <?php //if($this->session->userdata('user_id') == 25267){?>
                    <p>
                      <label><?php echo getLang('Delete_account'); ?></label> <a href="javascript:void(0)" class="del_acc"> <?php echo getLang('Delete_account'); ?></a>                      
                    </p> 
                    <?php 
                     } 
                    ?>
                    <?php 
                        //} 
                        } }
                    ?>
                    <p>
                      <h3><?php echo getLang('Add_alternate_email'); ?> <span class="addAlterEmail plusClass" style="float: right;"></span></h3>
                        <?php if(!$userAlterEmails){ ?>
                        <!-- <a href="javascript:void(0)" class="addAlterEmail" style="color: #b3975b"><?php //echo getLang('Add_alternate_email'); ?></a> -->
                        <div class="field_about emailDiv" style="display: none;">
                          <label><?php echo getLang('E_Mail_Adresse'); ?> </label>
                          
                            <span class="alter-email-err"></span>       
                            <div class="mobileWrapperDiv"> 
                              <input type="text" name="alter_email" id="alter_email" placeholder="">
                              <a class="validated" id="alter_validated"><?php echo getLang('VALIDATE'); ?></a>
                            </div>
                            
                        </div> 
                        <?php } ?>
                        <ul class="addressList altemail">
                            <?php if(!empty($userAlterEmails))
                            {
                              foreach($userAlterEmails as $userAlterEmail){
                            ?>
                                <li><?php echo $userAlterEmail['alter_email']; ?> </li>
                            <?php } } ?>  
                        </ul>
                    </p>
                    <p>
                      <h3><?php echo getLang('Add_alternate_phone'); ?> <span class="addAlterPhone plusClass" style="float: right;"></span></h3>
                      <!-- <a href="javascript:void(0)" class="addAlterPhone" style="color: #b3975b"><?php //echo getLang('Add_alternate_phone'); ?></a> -->
                      <span class="msg_otp"></span>
                      <div class="field_about numberDiv" style="display: none;">
                        <label><?php echo getLang('Enter_your_mobile_number'); ?> </label>
                        <div class="mobileWrapperDiv">
                          
                          <input type="tel" name="mobile_number" id="mobile_number" placeholder="+41xxxxxxxxxx">
                          <button class="validated" id="validate"><?php echo getLang('VALIDATE'); ?></button>
                        </div>
                      </div>
                      <div class="field_about otpDiv" style="display:none;">
                        <label><?php echo getLang('Enter_Validation_Code'); ?> </label>
                        <div class="mobileWrapperDiv">
                          <input type="text" name="otp" id="otp" placeholder="">
                          <button class="validated" id="otp_send"><?php echo getLang('VALIDATE'); ?></button>
                        </div> 
                      </div>
                      <ul class="addressList">
                          <?php if($userDetials['mobile_number']>0){ ?>
                              <li>
                                <?php echo $userDetials['mobile_number']; ?>
                              </li>  
                          <?php } ?>
                          <?php if(!empty($userPhones))
                          {
                            foreach($userPhones as $phones){
                          ?>
                              <li>
                                <?php echo $phones['mobile_number']; ?> 
                                <a href="<?php echo base_url();?>profile/deleteMobile/<?php echo base64_encode($phones['id']); ?>" onclick="return confirm('<?php echo getLang('Are_you_sure'); ?>');" title="Delete"><i class="fa fa-close"></i></a>
                                <a href="<?php echo base_url();?>profile/setDefaultMobile/<?php echo base64_encode($phones['id']); ?>" onclick="return confirm('<?php echo getLang('Are_you_sure'); ?>');" title="Set as default"><i class="fa fa-check"></i></a>
                              </li>
                          <?php } } ?>  
                      </ul>
                    </p>
                  </div>
                  <div class="edit-block">
                    <h3><?php echo getLang('RESIDENCE'); ?></h3>
                    <div class="field_about">
                      <label><?php echo getLang('Country'); ?> <span style="color:red">*</span></label>
                      <select name="country" id="country">
                          <option value="">--</option>
                      <?php if(!empty($countries)){

                            foreach ($countries as $country) {
                              echo '<option value="'.$country['country_code'].'" '.(($userDetials['country']==$country['country_code'])?'selected':'').'>'.$country['country_name'].'</option>';
                            }
                          }  
                        ?>
                        
                      </select>
                    </div>
					           <h3><?php echo getLang('LIVING_AREA'); ?></h3>
                    <div class="field_about">
                      <div class="address">
                          <input type="text" name="location" class="input-job" placeholder="<?php echo getLang('Location'); ?>" id="autocomplete">
                      </div>
                      <ul class="addressList">
            					  <?php if(!empty($userAddress))
            					  {
            						  foreach($userAddress as $address){
            					  ?>
                                    <li><?php echo $address['address']; ?> <a href="<?php echo base_url();?>profile/deleteAddress/<?php echo $address['id']; ?>" onclick="return confirm('<?php echo getLang('Are_you_sure'); ?>');"><i class="fa fa-close"></i></a></li>
            					  <?php } } ?>	
                      </ul>
                    </div> 
                    <h3><?php echo getLang('VISITOR_MAIL'); ?></h3>
                    <div class="field_about">
                      <div class="address">
                          <select name="visitor_mail">
                            <option value=""><?php echo getLang('Please_select'); ?></option>
                            <option value="1" <?php if($userDetials['visitor_mail']==1){ echo 'selected'; }?>><?php echo getLang('Daily'); ?></option>
                            <!--<option value="2" <?php if($userDetials['visitor_mail']==2){ echo 'selected'; }?>><?php echo getLang('Weekly'); ?></option>-->
                            <option value="3" <?php if($userDetials['visitor_mail']==3){ echo 'selected'; }?>><?php echo getLang('No_E_Mails'); ?></option>
                          </select>
                      </div>
                    </div>
                    <?php //if($userDetials['subscribe']==0){?>
                      <h3><?php echo getLang('Newslettter'); ?></h3>
                      <div class="field_about">
                        <div class="address">
                            <!--<select name="subscribe">
                              <option value="1" <?php if($userDetials['subscribe']==1){ echo 'selected'; }?>><?php echo getLang('Subscribe'); ?></option>
                              <option value="0" <?php if($userDetials['subscribe']==0){ echo 'selected'; }?>><?php echo getLang('Unsubscribe'); ?></option>
                            </select>-->
                            <div class="edit-steps">
                              
                                <ul class="newsletterBox">
                                  <li>
                                    <?php if($userDetials['subscribe']==1){ ?>
                                    <p><input id="unsub" name="unsub" value="1" type="checkbox"><label for="unsub"> Unsubscribe</label></p>
                                    <?php } ?>
                                    <?php if($userDetials['subscribe']==0){ ?>
                                    <p><input id="unsub" name="subs" value="1" type="checkbox"><label for="unsub"> Subscribe</label></p>
                                    <?php } ?>
                                  </li>
                                </ul>
                             
                            </div>
                        </div>
                      </div>
                    <?php //} ?>

                  </div>
                </div>

                <div class="edit-block-right">
                  <div class="edit-block register">
                    <h3><?php echo getLang('FINALIZE'); ?></h3>
                    <div class="field_about">
                      <label><?php echo getLang('About_me/us'); ?> <span style="color:red">*</span></label>
                      <textarea name="about" id="about"><?php if(!empty($userDetials)){ echo strip_tags(html_entity_decode($userDetials['about'])); }?></textarea>
                    </div>
                    <h3><?php echo getLang('PERSONAL_INFOS'); ?>: <span class="settingsAccount"><?php echo $userDetials['accounttype']; ?></span></h3>
                    <?php if($userDetials['accounttype']!='couple') { ?>
                      <div class="edit-block dbDetails">
                      <div class="edit-steps">
                        <div class="steps-r age">
                          <label><?php echo getLang('AGE'); ?> <span style="color:red">*</span></label>
                          <?php $he_date = date('d',$userDetials['dob_gentleman']); 
                                  $he_mon = date('m',$userDetials['dob_gentleman']); 
                                  $he_year = date('Y',$userDetials['dob_gentleman']); 
                            ?>
                                <select name="he_year" id="he_year">
                                    <option value="0"><?php echo getLang('Year'); ?></option>
                                    <?php for($i=date('Y')-18;$i>date('Y')-78;$i--){ ?>
                                      <option value="<?php echo $i; ?>" <?php if($he_year==$i){ echo 'selected'; }?>><?php echo $i; ?></option>
                                    <?php } ?>  
                                </select>
                                <select name="he_month" id="he_month" class="month">
                                    <option value="0"><?php echo getLang('Month'); ?></option>
                                    <option value="1" <?php if($he_mon==1 || $he_mon=='01'){ echo 'selected'; }?>>Jan</option>
                                    <option value="2" <?php if($he_mon==2 || $he_mon=='02'){ echo 'selected'; }?>>Feb</option>
                                    <option value="3" <?php if($he_mon==3 || $he_mon=='03'){ echo 'selected'; }?>>Mar</option>
                                    <option value="4" <?php if($he_mon==4 || $he_mon=='04'){ echo 'selected'; }?>>Apr</option>
                                    <option value="5" <?php if($he_mon==5 || $he_mon=='05'){ echo 'selected'; }?>>May</option>
                                    <option value="6" <?php if($he_mon==6 || $he_mon=='06'){ echo 'selected'; }?>>Jun</option>
                                    <option value="7" <?php if($he_mon==7 || $he_mon=='07'){ echo 'selected'; }?>>Jul</option>
                                    <option value="8" <?php if($he_mon==8 || $he_mon=='08'){ echo 'selected'; }?>>Aug</option>
                                    <option value="9" <?php if($he_mon==9 || $he_mon=='09'){ echo 'selected'; }?>>Sep</option>
                                    <option value="10" <?php if($he_mon==10){ echo 'selected'; }?>>Oct</option>
                                    <option value="11" <?php if($he_mon==11){ echo 'selected'; }?>>Nov</option>
                                    <option value="12" <?php if($he_mon==12){ echo 'selected'; }?>>Dec</option>
                                </select>
                                <select name="he_date" id="he_date" class="day">
                                    <option value="0"><?php echo getLang('Day'); ?></option>
                                    <?php for($j=1;$j<32;$j++){ ?>
                                      <option value="<?php echo $j; ?>" <?php if($he_date==$j){ echo 'selected'; }?>><?php echo $j; ?></option>
                                    <?php } ?>  
                                </select>
                        </div>
                        <div class="steps-r age">
                          <label><?php echo getLang('TYPE'); ?> <span style="color:red">*</span></label>
                                <select name="he_physis" id="he_physis" >
                                    <option value="">--</option>
                                    <option value="Adventurous" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Adventurous'){ echo 'selected'; }?>><?php echo getLang('Adventurous'); ?></option>
                                    <option value="Affectionate" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Affectionate'){ echo 'selected'; }?>><?php echo getLang('Affectionate'); ?></option>
                                    <option value="Appealing" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Appealing'){ echo 'selected'; }?>><?php echo getLang('Appealing'); ?></option>
                                    <option value="Athletic" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Athletic'){ echo 'selected'; }?>><?php echo getLang('Athletic'); ?></option>
                                    <option value="Attractive" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Attractive'){ echo 'selected'; }?>><?php echo getLang('Attractive'); ?></option>
                                    <option value="Beautiful" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Beautiful'){ echo 'selected'; }?>><?php echo getLang('Beautiful'); ?></option>
                                    <option value="Caring" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Caring'){ echo 'selected'; }?>><?php echo getLang('Caring'); ?></option>
                                    <option value="Charming" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Charming'){ echo 'selected'; }?>><?php echo getLang('Charming'); ?></option>
                                    <option value="Classy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Classy'){ echo 'selected'; }?>><?php echo getLang('Classy'); ?></option>
                                    <option value="Curvy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Curvy'){ echo 'selected'; }?>><?php echo getLang('Curvy'); ?></option>
                                    <option value="Dreamy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Dreamy'){ echo 'selected'; }?>><?php echo getLang('Dreamy'); ?></option>
                                    <option value="Educated" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Educated'){ echo 'selected'; }?>><?php echo getLang('Educated'); ?></option>
                                    <option value="Elegant" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Elegant'){ echo 'selected'; }?>><?php echo getLang('Elegant'); ?></option>
                                    <option value="Experienced" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Experienced'){ echo 'selected'; }?>><?php echo getLang('Experienced'); ?></option>
                                    <option value="Feminine" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Feminine'){ echo 'selected'; }?>><?php echo getLang('Feminine'); ?></option>
                                    <option value="Fit" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Fit'){ echo 'selected'; }?>><?php echo getLang('Fit'); ?></option>
                                    <option value="Gorgeous" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Gorgeous'){ echo 'selected'; }?>><?php echo getLang('Gorgeous'); ?></option>
                                    <option value="Handsome" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Handsome'){ echo 'selected'; }?>><?php echo getLang('Handsome'); ?></option>
                                    <option value="Hot" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Hot'){ echo 'selected'; }?>><?php echo getLang('Hot'); ?></option>
                                    <option value="Intelectual" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Intelectual'){ echo 'selected'; }?>><?php echo getLang('Intelectual'); ?></option>
                                    <option value="Lovely" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Lovely'){ echo 'selected'; }?>><?php echo getLang('Lovely'); ?></option>
                                    <option value="Luscious" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Luscious'){ echo 'selected'; }?>><?php echo getLang('Luscious'); ?></option>
                                    <option value="Masculine" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Masculine'){ echo 'selected'; }?>><?php echo getLang('Masculine'); ?></option>
                                    <option value="Muscular" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Muscular'){ echo 'selected'; }?>><?php echo getLang('Muscular'); ?></option>
                                    <option value="Natural" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Natural'){ echo 'selected'; }?>><?php echo getLang('Natural'); ?></option>
                                    <option value="Passionate" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Passionate'){ echo 'selected'; }?>><?php echo getLang('Passionate'); ?></option>
                                    <option value="Pretty" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Pretty'){ echo 'selected'; }?>><?php echo getLang('Pretty'); ?></option>
                                    <option value="Respectful" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Respectful'){ echo 'selected'; }?>><?php echo getLang('Respectful'); ?></option>
                                    <option value="Romantic" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Romantic'){ echo 'selected'; }?>><?php echo getLang('Romantic'); ?></option>
                                    <option value="Seductive" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Seductive'){ echo 'selected'; }?>><?php echo getLang('Seductive'); ?></option>
                                    <option value="Sexy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Sexy'){ echo 'selected'; }?>><?php echo getLang('Sexy'); ?></option>
                                    <option value="Shapely" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Shapely'){ echo 'selected'; }?>><?php echo getLang('Shapely'); ?></option>
                                    <option value="Shy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Shy'){ echo 'selected'; }?>><?php echo getLang('Shy'); ?></option>
                                    <option value="Skinny" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Skinny'){ echo 'selected'; }?>><?php echo getLang('Skinny'); ?></option>
                                    <option value="Strong" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Strong'){ echo 'selected'; }?>><?php echo getLang('Strong'); ?></option>
                                    <option value="Stylish" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Stylish'){ echo 'selected'; }?>><?php echo getLang('Stylish'); ?></option>
                                    <option value="Tall" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Tall'){ echo 'selected'; }?>><?php echo getLang('Tall'); ?></option>
                                    <option value="Tattooed" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Tattooed'){ echo 'selected'; }?>><?php echo getLang('Tattooed'); ?></option>
                                    <option value="Warm" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Warm'){ echo 'selected'; }?>><?php echo getLang('Warm'); ?></option>
                                    <option value="Wealthy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Wealthy'){ echo 'selected'; }?>><?php echo getLang('Wealthy'); ?></option>
                                    <option value="Youthful" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Youthful'){ echo 'selected'; }?>><?php echo getLang('Youthful'); ?></option>
                                </select>
                                <select name="he_height" id="he_height" class="day">
                                    <option value="">--Select--</option>
                                    <?php for($j=1.50;$j<2.11;$j+=0.02){ ?>
                                      <option value="<?php echo $j; ?>" <?php if(number_format($userDetials['he_height'], 2, '.', ' ')==number_format($j, 2, '.', ' ')){ echo 'selected'; }?>><?php echo number_format($j, 2, '.', ' ').' m'; ?></option>
                                    <?php } ?>  
                                </select>
                                <select name="he_weight" id="he_weight" class="day">
                                    <option value="">--Select--</option>
                                    <?php for($j=40;$j<125;$j+=5){ ?>
                                      <option value="<?php echo $j; ?>" <?php if($userDetials['he_weight']==$j){ echo 'selected'; }?>><?php echo $j.' kg'; ?></option>
                                    <?php } ?>  
                                </select>
                        </div>
                      </div>
                    </div>
                    <?php } else { ?>
                    <div class="edit-block dbDetails">
                      <div class="edit-steps">
                        <label><?php echo getLang('SHE'); ?></label>
                        <div class="steps-r age">
                          <label><?php echo getLang('AGE'); ?> <span style="color:red">*</span></label>
                            <?php 
                                  $she_date = date('d',$userDetials['dob_lady']); 
                                  $she_mon = date('m',$userDetials['dob_lady']); 
                                  $she_year = date('Y',$userDetials['dob_lady']); 
                            ?>
                                <select name="she_year" id="she_year">
                                    <option value="0"><?php echo getLang('Year'); ?></option>
                                    <?php for($i=date('Y')-18;$i>date('Y')-78;$i--){ ?>
                                      <option value="<?php echo $i; ?>" <?php if($she_year==$i){ echo 'selected'; }?>><?php echo $i; ?></option>
                                    <?php } ?>  
                                </select>
                                <select name="she_month" id="she_month" class="month">
                                    <option value="0"><?php echo getLang('Month'); ?></option>
                                    <option value="1" <?php if($she_mon==1 || $she_mon=='01'){ echo 'selected'; }?>>Jan</option>
                                    <option value="2" <?php if($she_mon==2 || $she_mon=='02'){ echo 'selected'; }?>>Feb</option>
                                    <option value="3" <?php if($she_mon==3 || $she_mon=='03'){ echo 'selected'; }?>>Mar</option>
                                    <option value="4" <?php if($she_mon==4 || $she_mon=='04'){ echo 'selected'; }?>>Apr</option>
                                    <option value="5" <?php if($she_mon==5 || $she_mon=='05'){ echo 'selected'; }?>>May</option>
                                    <option value="6" <?php if($she_mon==6 || $she_mon=='06'){ echo 'selected'; }?>>Jun</option>
                                    <option value="7" <?php if($she_mon==7 || $she_mon=='07'){ echo 'selected'; }?>>Jul</option>
                                    <option value="8" <?php if($she_mon==8 || $she_mon=='08'){ echo 'selected'; }?>>Aug</option>
                                    <option value="9" <?php if($she_mon==9 || $she_mon=='09'){ echo 'selected'; }?>>Sep</option>
                                    <option value="10" <?php if($she_mon==10){ echo 'selected'; }?>>Oct</option>
                                    <option value="11" <?php if($she_mon==11){ echo 'selected'; }?>>Nov</option>
                                    <option value="12" <?php if($she_mon==12){ echo 'selected'; }?>>Dec</option>
                                </select>
                                <select name="she_date" id="she_date" class="day">
                                    <option value="0"><?php echo getLang('Day'); ?></option>
                                    <?php for($j=1;$j<32;$j++){ ?>
                                      <option value="<?php echo $j; ?>" <?php if($she_date==$j){ echo 'selected'; }?>><?php echo $j; ?></option>
                                    <?php } ?>  
                                </select>
                        </div>
                        <div class="steps-r age">
                          <label><?php echo getLang('TYPE'); ?> <span style="color:red">*</span></label>
                                <select name="she_physis" id="she_physis" >
                                    <option value="">--</option>
                                    <option value="Adventurous" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Adventurous'){ echo 'selected'; }?>><?php echo getLang('Adventurous'); ?></option>
                                    <option value="Affectionate" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Affectionate'){ echo 'selected'; }?>><?php echo getLang('Affectionate'); ?></option>
                                    <option value="Appealing" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Appealing'){ echo 'selected'; }?>><?php echo getLang('Appealing'); ?></option>
                                    <option value="Athletic" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Athletic'){ echo 'selected'; }?>><?php echo getLang('Athletic'); ?></option>
                                    <option value="Attractive" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Attractive'){ echo 'selected'; }?>><?php echo getLang('Attractive'); ?></option>
                                    <option value="Beautiful" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Beautiful'){ echo 'selected'; }?>><?php echo getLang('Beautiful'); ?></option>
                                    <option value="Caring" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Caring'){ echo 'selected'; }?>><?php echo getLang('Caring'); ?></option>
                                    <option value="Charming" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Charming'){ echo 'selected'; }?>><?php echo getLang('Charming'); ?></option>
                                    <option value="Classy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Classy'){ echo 'selected'; }?>><?php echo getLang('Classy'); ?></option>
                                    <option value="Curvy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Curvy'){ echo 'selected'; }?>><?php echo getLang('Curvy'); ?></option>
                                    <option value="Dreamy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Dreamy'){ echo 'selected'; }?>><?php echo getLang('Dreamy'); ?></option>
                                    <option value="Educated" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Educated'){ echo 'selected'; }?>><?php echo getLang('Educated'); ?></option>
                                    <option value="Elegant" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Elegant'){ echo 'selected'; }?>><?php echo getLang('Elegant'); ?></option>
                                    <option value="Experienced" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Experienced'){ echo 'selected'; }?>><?php echo getLang('Experienced'); ?></option>
                                    <option value="Feminine" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Feminine'){ echo 'selected'; }?>><?php echo getLang('Feminine'); ?></option>
                                    <option value="Fit" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Fit'){ echo 'selected'; }?>><?php echo getLang('Fit'); ?></option>
                                    <option value="Gorgeous" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Gorgeous'){ echo 'selected'; }?>><?php echo getLang('Gorgeous'); ?></option>
                                    <option value="Handsome" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Handsome'){ echo 'selected'; }?>><?php echo getLang('Handsome'); ?></option>
                                    <option value="Hot" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Hot'){ echo 'selected'; }?>><?php echo getLang('Hot'); ?></option>
                                    <option value="Intelectual" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Intelectual'){ echo 'selected'; }?>><?php echo getLang('Intelectual'); ?></option>
                                    <option value="Lovely" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Lovely'){ echo 'selected'; }?>><?php echo getLang('Lovely'); ?></option>
                                    <option value="Luscious" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Luscious'){ echo 'selected'; }?>><?php echo getLang('Luscious'); ?></option>
                                    <option value="Masculine" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Masculine'){ echo 'selected'; }?>><?php echo getLang('Masculine'); ?></option>
                                    <option value="Muscular" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Muscular'){ echo 'selected'; }?>><?php echo getLang('Muscular'); ?></option>
                                    <option value="Natural" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Natural'){ echo 'selected'; }?>><?php echo getLang('Natural'); ?></option>
                                    <option value="Passionate" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Passionate'){ echo 'selected'; }?>><?php echo getLang('Passionate'); ?></option>
                                    <option value="Pretty" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Pretty'){ echo 'selected'; }?>><?php echo getLang('Pretty'); ?></option>
                                    <option value="Respectful" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Respectful'){ echo 'selected'; }?>><?php echo getLang('Respectful'); ?></option>
                                    <option value="Romantic" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Romantic'){ echo 'selected'; }?>><?php echo getLang('Romantic'); ?></option>
                                    <option value="Seductive" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Seductive'){ echo 'selected'; }?>><?php echo getLang('Seductive'); ?></option>
                                    <option value="Sexy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Sexy'){ echo 'selected'; }?>><?php echo getLang('Sexy'); ?></option>
                                    <option value="Shapely" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Shapely'){ echo 'selected'; }?>><?php echo getLang('Shapely'); ?></option>
                                    <option value="Shy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Shy'){ echo 'selected'; }?>><?php echo getLang('Shy'); ?></option>
                                    <option value="Skinny" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Skinny'){ echo 'selected'; }?>><?php echo getLang('Skinny'); ?></option>
                                    <option value="Strong" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Strong'){ echo 'selected'; }?>><?php echo getLang('Strong'); ?></option>
                                    <option value="Stylish" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Stylish'){ echo 'selected'; }?>><?php echo getLang('Stylish'); ?></option>
                                    <option value="Tall" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Tall'){ echo 'selected'; }?>><?php echo getLang('Tall'); ?></option>
                                    <option value="Tattooed" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Tattooed'){ echo 'selected'; }?>><?php echo getLang('Tattooed'); ?></option>
                                    <option value="Warm" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Warm'){ echo 'selected'; }?>><?php echo getLang('Warm'); ?></option>
                                    <option value="Wealthy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Wealthy'){ echo 'selected'; }?>><?php echo getLang('Wealthy'); ?></option>
                                    <option value="Youthful" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_lady'])=='Youthful'){ echo 'selected'; }?>><?php echo getLang('Youthful'); ?></option>
                                </select>
                                <select name="she_height" id="she_height" class="day">
                                    <option value="">--Select--</option>
                                    <?php for($j=1.50;$j<2.11;$j+=0.02){ ?>
                                      <option value="<?php echo $j; ?>" <?php if(number_format($userDetials['she_height'], 2, '.', ' ')==number_format($j, 2, '.', ' ')){ echo 'selected'; }?>><?php echo number_format($j, 2, '.', ' ').' m'; ?></option>
                                    <?php } ?>  
                                </select>
                                <select name="she_weight" id="she_weight" class="day">
                                    <option value="">--Select--</option>
                                    <?php for($j=40;$j<125;$j+=5){ ?>
                                      <option value="<?php echo $j; ?>" <?php if($userDetials['she_weight']==$j){ echo 'selected'; }?>><?php echo $j.' kg'; ?></option>
                                    <?php } ?>  
                                </select>
                        </div>
                      </div>

                      <div class="edit-steps">
                        <label><?php echo getLang('HIM'); ?></label>
                        <div class="steps-r age">
                          <label><?php echo getLang('AGE'); ?> <span style="color:red">*</span></label>
                          <?php $he_date = date('d',$userDetials['dob_gentleman']); 
                                  $he_mon = date('m',$userDetials['dob_gentleman']); 
                                  $he_year = date('Y',$userDetials['dob_gentleman']); 
                            ?>
                                <select name="he_year" id="he_year">
                                    <option value="0"><?php echo getLang('Year'); ?></option>
                                    <?php for($i=date('Y')-18;$i>date('Y')-78;$i--){ ?>
                                      <option value="<?php echo $i; ?>" <?php if($he_year==$i){ echo 'selected'; }?>><?php echo $i; ?></option>
                                    <?php } ?>  
                                </select>
                                <select name="he_month" id="he_month" class="month">
                                    <option value="0"><?php echo getLang('Month'); ?></option>
                                    <option value="1" <?php if($he_mon==1 || $he_mon=='01'){ echo 'selected'; }?>>Jan</option>
                                    <option value="2" <?php if($he_mon==2 || $he_mon=='02'){ echo 'selected'; }?>>Feb</option>
                                    <option value="3" <?php if($he_mon==3 || $he_mon=='03'){ echo 'selected'; }?>>Mar</option>
                                    <option value="4" <?php if($he_mon==4 || $he_mon=='04'){ echo 'selected'; }?>>Apr</option>
                                    <option value="5" <?php if($he_mon==5 || $he_mon=='05'){ echo 'selected'; }?>>May</option>
                                    <option value="6" <?php if($he_mon==6 || $he_mon=='06'){ echo 'selected'; }?>>Jun</option>
                                    <option value="7" <?php if($he_mon==7 || $he_mon=='07'){ echo 'selected'; }?>>Jul</option>
                                    <option value="8" <?php if($he_mon==8 || $he_mon=='08'){ echo 'selected'; }?>>Aug</option>
                                    <option value="9" <?php if($he_mon==9 || $he_mon=='09'){ echo 'selected'; }?>>Sep</option>
                                    <option value="10" <?php if($he_mon==10){ echo 'selected'; }?>>Oct</option>
                                    <option value="11" <?php if($he_mon==11){ echo 'selected'; }?>>Nov</option>
                                    <option value="12" <?php if($he_mon==12){ echo 'selected'; }?>>Dec</option>
                                </select>
                                <select name="he_date" id="he_date" class="day">
                                    <option value="0"><?php echo getLang('Day'); ?></option>
                                    <?php for($j=1;$j<32;$j++){ ?>
                                      <option value="<?php echo $j; ?>" <?php if($he_date==$j){ echo 'selected'; }?>><?php echo $j; ?></option>
                                    <?php } ?>  
                                </select>
                        </div>
                        <div class="steps-r age">
                          <label><?php echo getLang('TYPE'); ?> <span style="color:red">*</span></label>
                                <select name="he_physis" id="he_physis" >
                                    <option value="">--</option>
                                    <option value="Adventurous" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Adventurous'){ echo 'selected'; }?>><?php echo getLang('Adventurous'); ?></option>
                                    <option value="Affectionate" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Affectionate'){ echo 'selected'; }?>><?php echo getLang('Affectionate'); ?></option>
                                    <option value="Appealing" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Appealing'){ echo 'selected'; }?>><?php echo getLang('Appealing'); ?></option>
                                    <option value="Athletic" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Athletic'){ echo 'selected'; }?>><?php echo getLang('Athletic'); ?></option>
                                    <option value="Attractive" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Attractive'){ echo 'selected'; }?>><?php echo getLang('Attractive'); ?></option>
                                    <option value="Beautiful" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Beautiful'){ echo 'selected'; }?>><?php echo getLang('Beautiful'); ?></option>
                                    <option value="Caring" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Caring'){ echo 'selected'; }?>><?php echo getLang('Caring'); ?></option>
                                    <option value="Charming" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Charming'){ echo 'selected'; }?>><?php echo getLang('Charming'); ?></option>
                                    <option value="Classy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Classy'){ echo 'selected'; }?>><?php echo getLang('Classy'); ?></option>
                                    <option value="Curvy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Curvy'){ echo 'selected'; }?>><?php echo getLang('Curvy'); ?></option>
                                    <option value="Dreamy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Dreamy'){ echo 'selected'; }?>><?php echo getLang('Dreamy'); ?></option>
                                    <option value="Educated" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Educated'){ echo 'selected'; }?>><?php echo getLang('Educated'); ?></option>
                                    <option value="Elegant" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Elegant'){ echo 'selected'; }?>><?php echo getLang('Elegant'); ?></option>
                                    <option value="Experienced" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Experienced'){ echo 'selected'; }?>><?php echo getLang('Experienced'); ?></option>
                                    <option value="Feminine" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Feminine'){ echo 'selected'; }?>><?php echo getLang('Feminine'); ?></option>
                                    <option value="Fit" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Fit'){ echo 'selected'; }?>><?php echo getLang('Fit'); ?></option>
                                    <option value="Gorgeous" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Gorgeous'){ echo 'selected'; }?>><?php echo getLang('Gorgeous'); ?></option>
                                    <option value="Handsome" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Handsome'){ echo 'selected'; }?>><?php echo getLang('Handsome'); ?></option>
                                    <option value="Hot" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Hot'){ echo 'selected'; }?>><?php echo getLang('Hot'); ?></option>
                                    <option value="Intelectual" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Intelectual'){ echo 'selected'; }?>><?php echo getLang('Intelectual'); ?></option>
                                    <option value="Lovely" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Lovely'){ echo 'selected'; }?>><?php echo getLang('Lovely'); ?></option>
                                    <option value="Luscious" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Luscious'){ echo 'selected'; }?>><?php echo getLang('Luscious'); ?></option>
                                    <option value="Masculine" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Masculine'){ echo 'selected'; }?>><?php echo getLang('Masculine'); ?></option>
                                    <option value="Muscular" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Muscular'){ echo 'selected'; }?>><?php echo getLang('Muscular'); ?></option>
                                    <option value="Natural" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Natural'){ echo 'selected'; }?>><?php echo getLang('Natural'); ?></option>
                                    <option value="Passionate" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Passionate'){ echo 'selected'; }?>><?php echo getLang('Passionate'); ?></option>
                                    <option value="Pretty" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Pretty'){ echo 'selected'; }?>><?php echo getLang('Pretty'); ?></option>
                                    <option value="Respectful" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Respectful'){ echo 'selected'; }?>><?php echo getLang('Respectful'); ?></option>
                                    <option value="Romantic" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Romantic'){ echo 'selected'; }?>><?php echo getLang('Romantic'); ?></option>
                                    <option value="Seductive" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Seductive'){ echo 'selected'; }?>><?php echo getLang('Seductive'); ?></option>
                                    <option value="Sexy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Sexy'){ echo 'selected'; }?>><?php echo getLang('Sexy'); ?></option>
                                    <option value="Shapely" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Shapely'){ echo 'selected'; }?>><?php echo getLang('Shapely'); ?></option>
                                    <option value="Shy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Shy'){ echo 'selected'; }?>><?php echo getLang('Shy'); ?></option>
                                    <option value="Skinny" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Skinny'){ echo 'selected'; }?>><?php echo getLang('Skinny'); ?></option>
                                    <option value="Strong" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Strong'){ echo 'selected'; }?>><?php echo getLang('Strong'); ?></option>
                                    <option value="Stylish" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Stylish'){ echo 'selected'; }?>><?php echo getLang('Stylish'); ?></option>
                                    <option value="Tall" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Tall'){ echo 'selected'; }?>><?php echo getLang('Tall'); ?></option>
                                    <option value="Tattooed" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Tattooed'){ echo 'selected'; }?>><?php echo getLang('Tattooed'); ?></option>
                                    <option value="Warm" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Warm'){ echo 'selected'; }?>><?php echo getLang('Warm'); ?></option>
                                    <option value="Wealthy" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Wealthy'){ echo 'selected'; }?>><?php echo getLang('Wealthy'); ?></option>
                                    <option value="Youthful" <?php if(!empty($userDetials) && ucfirst($userDetials['physis_gentleman'])=='Youthful'){ echo 'selected'; }?>><?php echo getLang('Youthful'); ?></option>
                                </select>
                                <select name="he_height" id="he_height" class="day">
                                    <option value="">--Select--</option>
                                    <?php for($j=1.50;$j<2.11;$j+=0.02){ ?>
                                      <option value="<?php echo $j; ?>" <?php if(number_format($userDetials['he_height'], 2, '.', ' ')==number_format($j, 2, '.', ' ')){ echo 'selected'; }?>><?php echo number_format($j, 2, '.', ' ').' m'; ?></option>
                                    <?php } ?>  
                                </select>
                                <select name="he_weight" id="he_weight" class="day">
                                    <option value="">--Select--</option>
                                    <?php for($j=40;$j<125;$j+=5){ ?>
                                      <option value="<?php echo $j; ?>" <?php if($userDetials['he_weight']==$j){ echo 'selected'; }?>><?php echo $j.' kg'; ?></option>
                                    <?php } ?>  
                                </select>
                        </div>
                      </div>
                    </div>
                    <?php } ?>
                    <div class="edit-block personalInfo" id="Step_10">
                      <p><?php echo getLang('The_following_information_has_an_impact_on_your_contact_information'); ?>.</p>
                      <div class="edit-steps">
                        <label><?php echo getLang('INTERESTED'); ?> <span style="color:red">*</span></label>
                        <div class="steps-r">
                          <ul class="preferencesList infos">
                            <li>
                              <p><input id="ladies" name="interest_lady" value="1" type="checkbox" <?php if(!empty($userDetials) && $userDetials['interested_in_ladies']==1){ echo 'checked'; }?>><label for="ladies"><?php echo getLang('Ladies'); ?></label></p>
                            </li>
                            <li>
                              <p><input id="gentleman " name="interest_gentleman" value="1" type="checkbox" <?php if(!empty($userDetials) && $userDetials['interested_in_gentlemen']==1){ echo 'checked'; }?>><label for="gentleman "><?php echo getLang('Gentleman'); ?> </label></p>
                            </li>
                            <li>
                              <p><input id="couples" name="interest_couples" value="1" type="checkbox" <?php if(!empty($userDetials) && $userDetials['interested_in_couples']==1){ echo 'checked'; }?>><label for="couples"><?php echo getLang('Couples'); ?></label></p>
                            </li>
                          </ul>
                        </div>
                      </div>
                      <div class="edit-steps">
                        <label><?php echo getLang('EXPERIENCE'); ?></label>
                        <div class="steps-r">
                          <ul class="preferencesList infos">
                            <li>
                              <p><input id="experience" name="experience" value="1" type="checkbox" <?php if(!empty($userDetials) && $userDetials['experience']==1){ echo 'checked'; }?>><label for="experience"> <?php echo getLang('New_to_this_lifestyle'); ?></label></p>
                            </li>
                          </ul>
                        </div>
                      </div>
                      <div class="edit-steps">
                        <label><?php echo getLang('GET_TOGETHER'); ?></label>
                        <div class="steps-r">
                          <ul class="preferencesList infos">
                            <li>
                              <p><input id="party" name="escort_interest" value="1" type="checkbox" <?php if(!empty($userDetials) && $userDetials['escort_interest']==1){ echo 'checked'; }?>><label for="party"> <?php echo getLang('Meet_a_party_companion'); ?></label></p>
                            </li>
                          </ul>
                        </div>
                      </div>
                      <div class="edit-steps">
                        <label><?php echo getLang('CEREMONIAL'); ?></label>
                        <div class="steps-r">
                          <ul class="preferencesList infos">
                            <li>
                              <p><input id="meetings" name="interest_private" value="1" type="checkbox" <?php if(!empty($userDetials) && $userDetials['interested_in_private_meeting']==1){ echo 'checked'; }?>><label for="meetings"> <?php echo getLang('Wish_to_participate_as_a_ceremonial_lady'); ?></label></p>
                            </li>
                          </ul>
                        </div>
                      </div>
                      <?php if($userDetials['accounttype']=='lady'){ ?>
                      <div class="edit-steps">
                        <label><?php echo getLang('FINANCIAL_INTEREST'); ?></label>
                        <div class="steps-r">
                          <ul class="preferencesList infos">
                            <li>
                              <p><input id="interested_financial_interests" name="interested_financial_interests" value="1" type="checkbox" <?php if(!empty($userDetials) && $userDetials['interested_financial_interests']==1){ echo 'checked'; }?>><label for="interested_financial_interests"> </label></p>
                            </li>
                          </ul>
                        </div>
                      </div>
                      <?php } /*else{ ?>
                      <div class="edit-steps">
                        <label>FINANCIAL INTEREST</label>
                        <div class="steps-r">
                          <ul class="preferencesList infos">
                            <li>
                              <p><input id="interested_financial_interests" name="interested_financial_interests" value="1" type="checkbox" <?php if(!empty($userDetials) && $userDetials['interested_financial_interests']==1){ echo 'checked'; }?>><label for="interested_financial_interests"> Show profiles with financial interests</label></p>
                            </li>
                          </ul>
                        </div>
                      </div>
                      <?php }*/ ?>
                      <div class="edit-steps">
                        <label><?php echo getLang('INTERACTION'); ?> <span style="color:red">*</span></label>
                        <div class="steps-r">
                          <select name="preferences" id="preferences">
                              <option value="no_swap" <?php if(!empty($userDetials) && $userDetials['preferences']=='no_swap'){ echo 'selected'; }?>><?php echo getLang('NO_SWAP'); ?></option>
                              <option value="soft_swap" <?php if(!empty($userDetials) && $userDetials['preferences']=='soft_swap'){ echo 'selected'; }?>><?php echo getLang('SOFT_SWAP'); ?></option>
                              <option value="full_swap" <?php if(!empty($userDetials) && $userDetials['preferences']=='full_swap'){ echo 'selected'; }?>><?php echo getLang('FULL_SWAP'); ?></option>
                          </select>

                          <ul class="preferencesList infos same_separate" style="<?php if($userDetials['preferences']=='full_swap'){ echo 'display:inline-block'; }else { echo 'display:none'; }?>" >
                            <li>
                              <p><input id="same_room" name="same_room" value="1" type="checkbox" <?php if(!empty($userDetials) && $userDetials['same_room']==1){ echo 'checked'; }?>><label for="same_room"><?php echo getLang('Same_Room'); ?></label></p>
                            </li>
                            <li>
                              <p><input id="separate_room " name="separate_room" value="1" type="checkbox" <?php if(!empty($userDetials) && $userDetials['separate_room']==1){ echo 'checked'; }?>><label for="separate_room "><?php echo getLang('Separate_Room'); ?> </label></p>
                            </li>
                          </ul>

                        </div>
                      </div>
                      <p class="swapinfo">* <strong><?php echo getLang('SOFT_SWAP'); ?></strong> <?php echo getLang('means_when_couples_exchange_partners'); ?>. 
                          <br/><strong><?php echo getLang('FULL_SWAP'); ?></strong> <?php echo getLang('means_when_couples_exchange_partner_including_intercourse'); ?>. </p>
                    </div>
                    
                    <h3><?php echo getLang('LIFESTYLE'); ?> &amp; <?php echo getLang('FANTASIES'); ?> <span style="color:red">*</span></h3>
                    <div class="edit-block register sexualPreferences">
                      <div class="edit-steps" id="Step_10">
                        <label><?php echo getLang('Minimum_2_preferences_are_required'); ?>.</label>
                        <div class="steps-r">
                          <?php $sexarr=array();
                            if(!empty($userPreferences))
                            {
                              foreach ($userPreferences as $sex) {
                                array_push($sexarr, $sex['sex_preference']);
                              }
                            }
                          ?>
                          <ul class="preferencesList">
                             <!--<li>
                                <p><input type="checkbox" id="anal" name="sexual_preference[]" value="anal" <?php if(in_array('anal', $sexarr)){ echo 'checked'; }?>><label for="anal">anal</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="bdsm" name="sexual_preference[]" value="bdsm" <?php if(in_array('bdsm', $sexarr)){ echo 'checked'; }?>><label for="bdsm">bdsm</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="beingfilmed" name="sexual_preference[]" value="beingfilmed" <?php if(in_array('beingfilmed', $sexarr)){ echo 'checked'; }?>><label for="beingfilmed">being filmed</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="bisexual" name="sexual_preference[]" value="bisexual" <?php if(in_array('bisexual', $sexarr)){ echo 'checked'; }?>><label for="bisexual">bisexual</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="blindfolds" name="sexual_preference[]" value="blindfolds" <?php if(in_array('blindfolds', $sexarr)){ echo 'checked'; }?>><label for="blindfolds">blindfolds</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="bondage" name="sexual_preference[]" value="bondage" <?php if(in_array('bondage', $sexarr)){ echo 'checked'; }?>><label for="bondage">bondage</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="casualsex" name="sexual_preference[]" value="casualsex" <?php if(in_array('casualsex', $sexarr)){ echo 'checked'; }?>><label for="casualsex">casual sex</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="choking" name="sexual_preference[]" value="choking" <?php if(in_array('choking', $sexarr)){ echo 'checked'; }?>><label for="choking">choking</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="costumes" name="sexual_preference[]" value="costumes" <?php if(in_array('costumes', $sexarr)){ echo 'checked'; }?>><label for="costumes">costumes</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="cuckold" name="sexual_preference[]" value="cuckold" <?php if(in_array('cuckold', $sexarr)){ echo 'checked'; }?>><label for="cuckold">cuckold</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="darkroom" name="sexual_preference[]" value="darkroom" <?php if(in_array('darkroom', $sexarr)){ echo 'checked'; }?>><label for="darkroom">darkroom</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="deepthroat" name="sexual_preference[]" value="deepthroat" <?php if(in_array('deepthroat', $sexarr)){ echo 'checked'; }?>><label for="deepthroat">deep throat</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="domination" name="sexual_preference[]" value="domination" <?php if(in_array('domination', $sexarr)){ echo 'checked'; }?>><label for="domination">domination</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="doublepenetration" name="sexual_preference[]" value="doublepenetration" <?php if(in_array('doublepenetration', $sexarr)){ echo 'checked'; }?>><label for="doublepenetration">double penetration</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="facesitting" name="sexual_preference[]" value="facesitting" <?php if(in_array('facesitting', $sexarr)){ echo 'checked'; }?>><label for="facesitting">face sitting</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="facials" name="sexual_preference[]" value="facials" <?php if(in_array('facials', $sexarr)){ echo 'checked'; }?>><label for="facials">facials</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="feet" name="sexual_preference[]" value="feet" <?php if(in_array('feet', $sexarr)){ echo 'checked'; }?>><label for="feet">feet</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="gangbang" name="sexual_preference[]" value="gangbang" <?php if(in_array('gangbang', $sexarr)){ echo 'checked'; }?>><label for="gangbang">gangbang</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="goldenshower" name="sexual_preference[]" value="goldenshower" <?php if(in_array('goldenshower', $sexarr)){ echo 'checked'; }?>><label for="goldenshower">golden shower</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="groupsex" name="sexual_preference[]" value="groupsex" <?php if(in_array('groupsex', $sexarr)){ echo 'checked'; }?>><label for="groupsex">groupsex</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="heels" name="sexual_preference[]" value="heels" <?php if(in_array('heels', $sexarr)){ echo 'checked'; }?>><label for="heels">heels</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="kissing" name="sexual_preference[]" value="kissing" <?php if(in_array('kissing', $sexarr)){ echo 'checked'; }?>><label for="kissing">kissing</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="latexleather" name="sexual_preference[]" value="latexleather" <?php if(in_array('latexleather', $sexarr)){ echo 'checked'; }?>><label for="latexleather">latex/leather</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="licking" name="sexual_preference[]" value="licking" <?php if(in_array('licking', $sexarr)){ echo 'checked'; }?>><label for="licking">licking</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="masturbating" name="sexual_preference[]" value="masturbating" <?php if(in_array('masturbating', $sexarr)){ echo 'checked'; }?>><label for="masturbating">masturbating</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="naturismnudism" name="sexual_preference[]" value="naturismnudism" <?php if(in_array('naturismnudism', $sexarr)){ echo 'checked'; }?>><label for="naturismnudism">naturism/nudism</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="oiled" name="sexual_preference[]" value="oiled" <?php if(in_array('oiled', $sexarr)){ echo 'checked'; }?>><label for="oiled">oiled</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="oral" name="sexual_preference[]" value="oral" <?php if(in_array('oral', $sexarr)){ echo 'checked'; }?>><label for="oral">oral</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="rimming" name="sexual_preference[]" value="rimming" <?php if(in_array('rimming', $sexarr)){ echo 'checked'; }?>><label for="rimming">rimming</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="roleplay" name="sexual_preference[]" value="roleplay" <?php if(in_array('roleplay', $sexarr)){ echo 'checked'; }?>><label for="roleplay">role-play</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="spanking" name="sexual_preference[]" value="spanking" <?php if(in_array('spanking', $sexarr)){ echo 'checked'; }?>><label for="spanking">spanking</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="squirt" name="sexual_preference[]" value="squirt" <?php if(in_array('squirt', $sexarr)){ echo 'checked'; }?>><label for="squirt">squirt</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="stockings" name="sexual_preference[]" value="stockings" <?php if(in_array('stockings', $sexarr)){ echo 'checked'; }?>><label for="stockings">stockings</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="strapon" name="sexual_preference[]" value="strapon" <?php if(in_array('strapon', $sexarr)){ echo 'checked'; }?>><label for="strapon">strapon</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="striptease" name="sexual_preference[]" value="striptease" <?php if(in_array('striptease', $sexarr)){ echo 'checked'; }?>><label for="striptease">striptease</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="submission" name="sexual_preference[]" value="submission" <?php if(in_array('submission', $sexarr)){ echo 'checked'; }?>><label for="submission">submission</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="sugardaddy" name="sexual_preference[]" value="sugardaddy" <?php if(in_array('sugardaddy', $sexarr)){ echo 'checked'; }?>><label for="sugardaddy">sugar daddy</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="swallow" name="sexual_preference[]" value="swallow" <?php if(in_array('swallow', $sexarr)){ echo 'checked'; }?>><label for="swallow">swallow</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="swinging" name="sexual_preference[]" value="swinging" <?php if(in_array('swinging', $sexarr)){ echo 'checked'; }?>><label for="swinging">swinging</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="threesomeffm" name="sexual_preference[]" value="threesomeffm" <?php if(in_array('threesomeffm', $sexarr)){ echo 'checked'; }?>><label for="threesomeffm">threesome ffm</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="threesomemmf" name="sexual_preference[]" value="threesomemmf" <?php if(in_array('threesomemmf', $sexarr)){ echo 'checked'; }?>><label for="threesomemmf">threesome mmf</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="tietease" name="sexual_preference[]" value="tietease" <?php if(in_array('tietease', $sexarr)){ echo 'checked'; }?>><label for="tietease">tie &amp; tease</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="toys" name="sexual_preference[]" value="toys" <?php if(in_array('toys', $sexarr)){ echo 'checked'; }?>><label for="toys">toys</label></p>
                             </li>
                             <li>
                                <p><input type="checkbox" id="unusual_places" name="sexual_preference[]" value="unusual_places" <?php if(in_array('unusual_places', $sexarr)){ echo 'checked'; }?>><label for="unusual_places">unusual places</label></p>
                              </li>
                             <li>
                                <p><input type="checkbox" id="wifesharing" name="sexual_preference[]" value="wifesharing" <?php if(in_array('wifesharing', $sexarr)){ echo 'checked'; }?>><label for="wifesharing">wifesharing</label></p>
                             </li>-->
                             <?php 
                                  if(!empty($lifestyles))
                                  {
                                    foreach ($lifestyles as $styles) { 
                                      $value = $styles['styles'];
                                      //$value = strtolower(str_replace(' ', '', str_replace('/', '', str_replace('&', '', $styles['styles']))));
                             ?>
                                <li>
                                  <p><input type="checkbox" id="<?php echo $value; ?>" name="sexual_preference[]" value="<?php echo $value; ?>" <?php if(in_array($value, $sexarr)){ echo 'checked'; }?>><label for="<?php echo $value; ?>"><?php echo getLang(str_replace('-', '_', str_replace(' ', '_', $styles['styles']))); ?></label></p>
                                </li>
                             <?php  
                                     }
                                  }
                             ?>
                          </ul>
                        </div>
                      </div>
                    </div>
                      <button type="submit" class="btn_gold save-change" id="continueStep_07"><?php echo getLang('Save_Changes'); ?></button>
                  </div>
                </div>
                </form>
              </div>
            </div>
</section>
<section class="all_popups">
         <div class="modal_container register" id="upgrade_modal" >
            <span class="modal_close"><i class="fa  fa-times-circle-o"></i></span>
               <div id="upgrade_01" class="">
                    <form action="" id="">   
                     <div id="" class="" >
                        <h2><?php echo getLang('Upgrade_your_membership'); ?></h2>
                        <div class="center">
                           <p class="text_white allcaps"><?php echo getLang('Membership_Payment'); ?></p>
                        </div>
                        <hr>
                        <?php if($userDetials['free_member']==1){ ?>
                          <?php if(!empty($memberships)){ 
                              foreach($memberships as $membership){ ?>
                              <div class="paymentBox selectMembership" data-id="<?php echo $membership['alias']; ?>" data-price="<?php echo $membership['base_price']/100; ?>" data-type="<?php echo $membership['id']; ?>">
                                 <span class="crown"><img src="images/grey_crown.png" alt=""></span>
                                 <div class="payment_content">
                                    <h4 class="text_white"><?php echo $membership['alias']; ?> <?php echo getLang('Membership'); ?></h4>
                                    <?php if($membership['id']==5){ ?>
                                    <p><?php echo getLang('This_membership_gives'); ?>.</p>
                                    <?php } else { ?>
                                    <p><?php echo getLang('This_exclusive_membership_allow_you_to_stay'); ?>.</p>
                                    <?php } ?>
                                    <p class="text_white noMargin twoValueText">EUR <?php echo number_format($membership['base_price']/100,2,',','.'); ?>/ <?php echo getLang('annual_fee'); ?> <?php if($membership['id']==5){ echo 'or EUR '.number_format($memberships_half[0]['base_price']/100,2,',','.').'/ '.getLang('Half_year'); } ?><?php if($membership['id']==4){ echo 'or EUR '.number_format($memberships_half[1]['base_price']/100,2,',','.').'/ '.getLang('Half_year'); } ?></p>
                                 </div>
                              </div>
                        <?php } } ?>
                          <div class="basicOpen" style="display: none;">        
                              <div class="paymentBox memberchooseupgrade" data-id="<?php echo $memberships[0]['alias']; ?>" data-price="<?php echo ($memberships_half[0]['base_price']/100); ?>" data-type="<?php echo $memberships[0]['id']; ?>">
                                 <div class="payment_content " >
                                    <p class="text_white noMargin" >EUR <?php echo number_format($memberships_half[0]['base_price']/100,2,',','.'); ?> / <?php echo getLang('Half_year'); ?></p>
                                 </div>
                            </div>
                            <div class="paymentBox memberchooseupgrade" data-id="<?php echo $memberships[0]['alias']; ?>" data-price="<?php echo $memberships[0]['base_price']/100; ?>" data-type="<?php echo $memberships[0]['id']; ?>">
                                 <div class="payment_content " >
                                    <p class="text_white noMargin" >EUR <?php echo number_format($memberships[0]['base_price']/100,2,',','.'); ?> / <?php echo getLang('annual_fee'); ?></p>
                                 </div>
                            </div>
                          </div>
                          <div class="premiumOpen" style="display: none;">        
                              <div class="paymentBox memberchooseupgrade" data-id="<?php echo $memberships[1]['alias']; ?>" data-price="<?php echo ($memberships_half[1]['base_price']/100); ?>" data-type="<?php echo $memberships[1]['id']; ?>">
                                 <div class="payment_content " >
                                    <p class="text_white noMargin" >EUR <?php echo number_format($memberships_half[1]['base_price']/100,2,',','.'); ?> / <?php echo getLang('Half_year'); ?></p>
                                 </div>
                            </div>
                            <div class="paymentBox memberchooseupgrade" data-id="<?php echo $memberships[1]['alias']; ?>" data-price="<?php echo $memberships[1]['base_price']/100; ?>" data-type="<?php echo $memberships[1]['id']; ?>">
                                 <div class="payment_content " >
                                    <p class="text_white noMargin" >EUR <?php echo number_format($memberships[1]['base_price']/100,2,',','.'); ?> / <?php echo getLang('annual_fee'); ?></p>
                                 </div>
                            </div>
                          </div>
                        <?php } else { ?>
                          <?php if(!empty($memberships)){ 
                            foreach($memberships as $membership){ ?>
                            <div class="paymentBox selectMembership" >
                               <span class="crown"><img src="images/grey_crown.png" alt=""></span>
                               <div class="payment_content">
                                  <h4 class="text_white"><?php echo $membership['alias']; ?> <?php echo getLang('Membership'); ?></h4>
                                    <p><?php echo getLang('This_exclusive_membership_allow_you_to_stay'); ?>.</p>
                                    <!-- <p class="text_white noMargin">
                                      <input type="radio" class="upgradeMemebrship" name="upgrade" data-id="<?php echo $membership['alias']; ?>" data-price="690" data-type="<?php echo $membership['id']; ?>">
                                        EUR 690/ <?php echo getLang('Half_year'); ?><br/>
                                      <input type="radio" class="upgradeMemebrship" name="upgrade" data-id="<?php echo $membership['alias']; ?>" data-price="<?php echo $membership['base_price']/100; ?>" data-type="<?php echo $membership['id']; ?>">
                                        EUR <?php echo number_format($membership['base_price']/100,2,',','.'); ?>/ <?php echo getLang('annual_fee'); ?>
                                    </p> -->
                               </div>
                            </div>
                            <div class="" >        
                                <div class="paymentBox upgradeMemebrship" data-id="<?php echo $membership['alias']; ?>" data-price="<?php echo ($memberships_half[1]['base_price']/100); ?>" data-type="<?php echo $membership['id']; ?>">
                                   <div class="payment_content " >
                                      <p class="text_white noMargin" >EUR <?php echo number_format($memberships_half[1]['base_price']/100,2,',','.'); ?> / <?php echo getLang('Half_year'); ?></p>
                                   </div>
                              </div>
                              <div class="paymentBox upgradeMemebrship" data-id="<?php echo $membership['alias']; ?>" data-price="<?php echo $membership['base_price']/100; ?>" data-type="<?php echo $membership['id']; ?>">
                                   <div class="payment_content " >
                                      <p class="text_white noMargin" >EUR <?php echo number_format($membership['base_price']/100,2,',','.'); ?> / <?php echo getLang('annual_fee'); ?></p>
                                   </div>
                              </div>
                            </div>
                          <?php } } ?>
                        <?php } ?>
                          
                          <!-- <p class="text_white noMargin"><?php echo getLang('Do_you_will_use_a_Swiss_card'); ?>?</p>
                            <p class="confirmVat">
                              <span><input type="radio" class="up_yes" name="yes_no"><label for="yes"><?php echo getLang('Yes'); ?></label></span>
                              <span><input type="radio" class="up_no" name="yes_no" checked><label for="no"><?php echo getLang('No'); ?></label></span>
                            </p> -->
                         <div class="text_center margin_top30">
                           <button type="button" class="btn_gold" id="continueUpgradation"><?php echo getLang('Continue'); ?></button>
                        </div>
                        <input type="hidden" id="baseUrl" value="<?php echo base_url();?>">
                        <input type="hidden" id="upgrade_price" value="">
                        <input type="hidden" id="upgradeFee" value="">
                        <input type="hidden" id="upgrade_vat" value="">
                        <input type="hidden" id="upgrade_type" value="">
                     </div>
                  </form>
               </div>
               <div id="upgrade_03" class="" style="display: none;">
                    <h2><?php echo getLang('Upgrade_your_membership'); ?></h2>
                        <div class="center">
                           <p class="text_white allcaps"><?php echo getLang('Membership_Payment'); ?></p>
                        </div>
                    <hr>
                    <?php if($userDetials['free_member']==1){ ?>
                      <?php if(!empty($memberships)){ 
                          foreach($memberships as $membership){ ?>
                          <div class="paymentBox <?php echo $membership['alias']; ?>">
                             <span class="crown"><img src="images/gold_crown.png" alt=""></span>
                             <div class="payment_content">
                                <h4 class="text_white"><?php echo $membership['alias']; ?> <?php echo getLang('Membership'); ?></h4>
                                <p class="showUpgradeData"></p>
                                <!-- <p class="text_white noMargin"><?php echo getLang('Do_you_will_use_a_Swiss_card'); ?>?</p>
                                  <p class="confirmVat">
                                    <span><input type="radio" class="up_yes" name="yes_no"><label for="yes"><?php echo getLang('Yes'); ?></label></span>
                                    <span><input type="radio" class="up_no" name="yes_no" checked><label for="no"><?php echo getLang('No'); ?></label></span>
                                  </p> -->
                             </div>
                          </div>
                    <?php } } ?>
                  <?php } else { ?>
                    <?php if(!empty($memberships)){ 
                          foreach($memberships as $membership){ ?>
                          <div class="paymentBox <?php echo $membership['alias']; ?>">
                             <span class="crown"><img src="images/gold_crown.png" alt=""></span>
                             <div class="payment_content">
                                <h4 class="text_white"><?php echo $membership['alias']; ?> <?php echo getLang('Membership'); ?></h4>
                                <p class="showUpgradeData"></p>
                                <!-- <p class="text_white noMargin"><?php echo getLang('Do_you_will_use_a_Swiss_card'); ?>?</p>
                                  <p class="confirmVat">
                                    <span><input type="radio" class="up_yes" name="yes_no"><label for="yes"><?php echo getLang('Yes'); ?></label></span>
                                    <span><input type="radio" class="up_no" name="yes_no" checked><label for="no"><?php echo getLang('No'); ?></label></span>
                                  </p> -->
                             </div>
                          </div>
                    <?php } } ?>
                  <?php } ?>

                     <div id="creditCard" class="paymentBox pay" >
                       <span class="payment_icon"><img src="images/paymen_icon.png" alt=""></span>
                       <div class="payment_content">
                          <h4 class="text_white"><?php echo getLang('Pay_by_credit_card'); ?></h4>                        
                       </div>
                    </div>
                    <div class="text_center margin_top30">
                       <button type="button" class="btn_gold" id="continueUpgradation3"><?php echo getLang('Make_Payment'); ?></button>
                    </div>

                </div>
               <form action="" method="POST" id="payment-form" >
                  
                  <div id="upgrade_02" class="" style="display: none;">
                          <div class="center">
                             <p class="text_white allcaps"><?php echo getLang('Payment_Method'); ?></p>
                          </div>
                          <div class="center">
                          <span class="payment-errors" style="color:red;"></span>
                        <span class="payment_details"></span>
                         <p class="ssl_text"><img src="<?php echo  base_url().'assets/images/ssl-icon.png'; ?>">
                          <?php echo getLang('To_guarantee_for_maximum_safety__your_data'); ?>.
                         </p>
                         <span id="terms-error" style="color:red"></span>  
                          <p id="terms"><label><input type="checkbox" name="terms"> <?php echo getLang('I_have_read__understood_and_agree_the'); ?> <a href="<?php echo base_url().'terms'; ?>" target="_blank"><?php echo getLang('terms_and_conditions'); ?>.</a></label></p>
                          <div class="form_group">
                    
                          <label><?php echo getLang('Card_Holder'); ?></label>
                          <input type="text" size="20" name="card_holder" id="card_holder" placeholder="<?php echo getLang('Enter_Holder_name'); ?>">
                        
                      </div>

                      <div class="form_group">
                        
                          <label><?php echo getLang('Card_Number'); ?></label>
                          <input type="text" size="20" name="card_number" id="card_number" placeholder="<?php echo getLang('Enter_Card_Number'); ?>">
                        
                      </div>
                     
                      <div class="form_group doubleinput clearfix">
                                   
                                      <label><?php echo getLang('Expiration__MM/YY'); ?></label>
                                      <!--<input type="text" size="2" data-stripe="exp_month" placeholder="Enter Month">-->
                                      <select name="exp_month" id="exp_month">
                                            <option value=""><?php echo getLang('Month'); ?></option>
                                            <option value="1">Jan</option>
                                            <option value="2">Feb</option>
                                            <option value="3">Mar</option>
                                            <option value="4">Apr</option>
                                            <option value="5">May</option>
                                            <option value="6">Jun</option>
                                            <option value="7">Jul</option>
                                            <option value="8">Aug</option>
                                            <option value="9">Sep</option>
                                            <option value="10">Oct</option>
                                            <option value="11">Nov</option>
                                            <option value="12">Dec</option>
                                      </select>
                                      <select name="exp_year" id="exp_year">
                                         <option value=""><?php echo getLang('Year'); ?></option>
                                            <?php for($i=date('Y');$i<date('Y')+50;$i++){ ?>
                                               <option value="<?php echo $i; ?>"><?php echo $i; ?></option>
                                            <?php } ?>  
                                     </select>
                                   <!--<input type="text" size="2" data-stripe="exp_year" placeholder="Enter Year">-->
                                 </div>
                                
                                 <div class="form_group cvc">
                               
                                     <label><?php echo getLang('CVC'); ?> <?php echo getLang('3_digits'); ?></label>
                                     <input type="text" size="4" name="card_cvc" id="card_cvc" placeholder="<?php echo getLang('Enter_CVC'); ?>">
                                  
                                 </div>
                                <div class="text_center margin_top30">
                             <button type="submit" class="btn_gold" id=""><?php echo getLang('Pay'); ?></button>
                          </div>
                      <!--<input type="submit" class="bigbutton" value="Submit Payment">-->
                        </div>
                       </div>
                </form> 
               <div id="upgrade_confirm" class="" style="display:none">
                  <h2><?php echo getLang('Confirmation'); ?></h2>
                  <div class="center">
                     <p><?php echo getLang('Thanks_you_for_your_upgradation__please_attach_with_us'); ?>. </p>
                  </div>
               </div>
            
         </div>

         <!--Unsubscribe Success Modal -->
         <div class="modal_container" id="delAcc_modal">
            <span class="modal_close"><i class="fa  fa-times-circle-o"></i></span>
            
            <h2><?php echo getLang('Delete_account'); ?></h2>
            <?php if(!empty($userMembershipDetails)) {
                  if($userMembershipDetails['id']==4 || $userMembershipDetails['id']==5) {
                $getOpenBookingInvoices = getOpenBookingInvoices();
                if($getOpenBookingInvoices == 0){
            ?>
            <form id="deleteAccFrm" action="<?php echo base_url('DeleteAccount/index'); ?>" method="post"> 
              <?php if($this->session->userdata('deleteAccountErr')){?>
                <span style="color: #f00">Please provider proper email/username and password to delete your account</span>
              <?php } ?>
                  <div class="form_group">
                    <label for="#deleteemail"><?php echo getLang('E_Mail_Adresse'); ?>/<?php echo getLang('Username'); ?></label>
                    <input type="text" id="deleteemail" name="deleteemail">
                    <span class="deleteemailError" style="color: #f00;"></span>
                 </div>
                 <div class="form_group">
                    <label for="#deletepassword"><?php echo getLang('Your_Password'); ?> </label>
                    <input type="password" id="deletepassword" name="deletepassword">
                    <span class="deletepasswordError" style="color: #f00;"></span>
                 </div>
                 <div class="form_group text_center">
                     <label><input type="checkbox" id="deletecheckbox"> All your data will get deleted without backup <?php echo getLang('terms_and_conditions'); ?></label>
                     <span class="deletecheckboxError" style="color: #f00; float: left;"></span>
                  </div>
                 <div class="form_group half">
                    <button type="button" class="btn_gold deleteAccFrmSubmit"><?php echo getLang('Submit'); ?></button>
                 </div>
            </form>
            <?php
              } else { ?>
                <p><?php echo getLang('Pay_to_delete_you_account'); ?></p>
            <?php  }
              } }
            ?>
         </div>
      <div class="modalmask"></div>

</section> 

<script src="js/jquery.min.js"></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=AIzaSyBhS6E7uMfyWdUstf1PXpYiEFay86uUj4A&sensor=false&libraries=places&types=(countries)"></script>
<script type="text/javascript">
  $(function(){
    init();
    $('.changeUsername').click(function(){
      $('.change-username').toggle(500);
    })
    $('.del_acc').click(function(){
      $('#delAcc_modal').show();
      $('#delAcc_modal').modal('show');
      $('.modalmask').show();
    })
    <?php if($this->session->userdata('deleteAccountErr')){?>
      $('.del_acc').click();
    <?php $this->session->unset_userdata('deleteAccountErr'); } ?>
  
    $('.deleteAccFrmSubmit').click(function(){
      var err = 0;
      $('.deleteemailError').html('');
      $('.deletepasswordError').html('');
      $('.deletecheckboxError').html('');
      if($('#deleteemail').val() == '') {
        $('.deleteemailError').html(Please_enter_proper_email + ' !!!');
        err = 1;
      }
      if($('#deletepassword').val() == '') {
        $('.deletepasswordError').html(Password_must_be_6 + ' !!!');
        err = 1;
      }
      if(!$('#deletecheckbox').is(':checked')) {
        $('.deletecheckboxError').html(Please_check_the_terms_and_conditions);
        err = 1;
      }
      console.log('submit before', err);
      if(err == 0) {
        $('#deleteAccFrm').submit();
        console.log('submit');
      }
    })
    $('body').on('click', '#username-save', function() {
        $('.new-email-err').html('');
        var new_username = $('#new_username').val();
        var baseUrl = $('#base_url').val();
        if (new_email == "") {
            $('.new-username-err').html(Please_enter_username);
            $('.new-username-err').css('color','#f00');
        } else {
            var this1 = $(this);
            $.ajax({
                url: baseUrl + 'profile/put_new_username',
                data: 'new_username=' + new_username,
                type: 'POST',
                success: function(res) {
                    if (res == 1) {
                        $('.new-username-err').html(This_username_is_already_occupied);
                        $('.new-username-err').css('color','#f00');
                    } else {
                        window.location.reload();
                    }
                }
            })
        }
    })

    $('.addAlterEmail').click(function(){
      $('.emailDiv').toggle();
      $(this).toggleClass('plusClass');
      $(this).toggleClass('minusClass');
    })

    $('.addAlterPhone').click(function(){
      $('.numberDiv').toggle();
      $(this).toggleClass('plusClass');
      $(this).toggleClass('minusClass');
    })
  })
  function init() {
      var input = document.getElementById('autocomplete');
      var options = {};
                   
      new google.maps.places.Autocomplete(input, options);
  }
</script>
<style type="text/css">
  .plusClass::before { font-family: "FontAwesome"; cursor: pointer; font-weight: 900; content: "\f067"; }
  .minusClass::before { font-family: "FontAwesome"; cursor: pointer; font-weight: 900; content: "\f068"; }
</style>