<?php $this->load->view('header_frontinner');
 $this->load->view('security_front');
$can_id=$this->session->userdata('user_id');
//code for to get peronal information
$sel_personal_information=mysql_query("select * from njobn_webusers where user_id='".$can_id."'");
$fetch_personal_data=mysql_fetch_array($sel_personal_information);
//get job title
$sele_job_query=mysql_query("select * from njobn_jobdetails where job_id='".$fetch_personal_data['job_id']."'");
$fetch_job_title=mysql_fetch_array($sele_job_query);
error_reporting(0);
//code for to get personal information
?>

<div class="inner-cntnts">
  <div class="container">
    <div class="section-welcome nav-welcome candidateDashboardMargin">
      <ol class="breadcrumb">
        <?php

					if($this->session->userdata('user_type')==1)
	{	?>
        <li><a href="<?php echo base_url();?>front_end/candidate_dashboard"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to Dashboard</a></li>
        <?php }
	  else
	  {?>
        <li><a href="<?php echo base_url();?>front_end/employee_dashboard"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to Dashboard</a></li>
        <?php }
	  ?>
      </ol>
      <a class="menubtn" href="#"><i class="fa fa-bars"></i></a> </div>
    <div class="profile-wrap margin-top-30">
      <div class="row">
        <!-- Nav tabs -->
        <div class="col-sm-3 mobile-space">
          <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" <?php if($_GET['myprofile_data']=="myprofile_data"){?>class="active"<?php }?>><a href="#work-history" role="tab" data-toggle="tab" onclick="hide_workhistory1()">Personal Details</a></li>
            <li role="presentation" <?php if($_GET['address_data']=="address_data"){?>class="active"<?php }?>><a href="#qualifications" role="tab" data-toggle="tab" onclick="hide_qualifications()">Address</a></li>
            <li role="presentation" <?php if($_GET['account_details']=="account_details"){?> class="active" <?php }?>><a href="#skills" role="tab" data-toggle="tab" onclick="hide_skills()">Account Details</a></li>
            <?php
 if($fetch_personal_data['user_type']==1)
 {?>
            <li role="presentation" <?php if($_GET['contact_details']=="contact_details"){?>class="active"<?php }?>><a href="#languages" role="tab" data-toggle="tab" onclick="hide_languages()">Contact Preferences</a></li>
            <?php }?>
          </ul>
        </div>
        <!-- Nav tabs -->

        <!-- Tab panes -->
        <div class="col-sm-9">
          <div class="tab-content">
          <div role="tabpanel" class="tab-pane fade" id="cover-letter">232...</div>
          <form  name="looking_for" id="looking_for" method="post" action="<?php echo base_url();?>front_end/add_looking_for" onsubmit="return lookingforjob()">
            <div <?php if($_GET['looking_for_data']=="looking_for_data"){?> style="display:block;"<?php }else {?> style="display:none;" <?php }?> role="tabpanel" class="tab-pane fade <?php if($_GET['looking_for_data']=="looking_for_data"){?>in active<?php }?>" id="looking-for">
            <ul class="looking-for">
              <li>
                <div class="edit-cntnts margin-bottom-20">
                  <h3>Salary</h3>
                  <span>Minimum salary (please enter at least one type of salary)*</span>
                  <p style="color:#FF0000;"> <?php echo $this->session->flashdata('looking_for_message');?></p>
                </div>
                <div class="edit-filds">
                  <div class="row">
                    <div class="col-xs-6">
                      <input type="text" class="form-control" name="salary_from" id="salary_from" placeholder="25000" value="<?php echo $salary_from;?>" onkeypress="return isNumberKey(event)" >
                      <span id="salary_from_error" class="reg_error"><?php echo form_error('salary_from'); ?></span> </div>
                    <div class="col-xs-6">
                      <input type="text" class="form-control" name="salary_to" id="salary_to" placeholder="50000"  value="<?php echo $salary_to;?>"  onkeypress="return isNumberKey(event)" >
                      <span id="salary_to_error" class="reg_error"><?php echo form_error('salary_to'); ?></span> </div>
                  </div>
                </div>
              </li>
              <li>
                <div class="edit-cntnts margin-bottom-20">
                  <h3>Preferred work location</h3>
                  <span>Add up to 5 locations</span>
                  <p style="color:#FF0000;"> <?php echo $this->session->flashdata('mesage');?></p>
                  <?php
													foreach($get_can_locations as $val_can_locations)
                                                          {?>
                  <div class="dit-section">
                    <h6 style="width: 15%;">
                      <?php //code to show locations name
													$sel_query=mysql_query("select * from countries where id='".$val_can_locations->location_id."'");
													$fetch_get_conury=mysql_fetch_array($sel_query);
													$countries_name=$fetch_get_conury['name'];
													echo $countries_name;?>
                    </h6>
                    <a data-target="#editlocation" data-toggle="modal"  href="<?php echo base_url();?>front_end/edit_location?id=<?=$val_can_locations->location_id;?>"><i class="fa fa-pencil" aria-hidden="true" ></i>Edit</a>

                    <!-- <a data-toggle="modal" href="" data-target="#update_location">Click me</a>-->
                    <a href="<?php echo base_url();?>front_end/delete_location?id=<?=$val_can_locations->location_id;?>" class="link" onclick="return confirm('Are you sure?');" ><i class="fa fa-trash-o" aria-hidden="true"></i>Delete</a> </div>
                  <?php }?>
                  <h5><a href="#" title="Add Location" ><i class="fa fa-plus-circle" aria-hidden="true" style="cursor:pointer"></i></a>Add location</h5>
                </div>
              </li>
              <li>
                <div class="edit-cntnts margin-bottom-0px">
                  <h3>Job Type</h3>
                  <p style="color:#FF0000;"> <?php echo $this->session->flashdata('mesage_tpe');?></p>
                  <div class="checkbox">
                    <?php
													foreach($get_job_types as $val_job_types)
                                                          {
														  $arr[]=$val_job_types->job_type_id;
														  }
														 ?>
                    <label>
                      <input type="checkbox" <?php if(in_array(1,$arr)){?> checked="checked" <?php }?> name="job_type[]" id="job_type" value="1">
                      Permanent</label>
                    <label>
                      <input type="checkbox" <?php if(in_array(2,$arr)){?> checked="checked" <?php }?> name="job_type[]" id="job_type" value="2">
                      Temporary</label>
                    <label>
                      <input type="checkbox" <?php if(in_array(3,$arr)){?> checked="checked" <?php }?>  name="job_type[]" id="job_type" value="3">
                      Contract</label>
                    <label>
                      <input type="checkbox" <?php if(in_array(4,$arr)){?> checked="checked" <?php }?> name="job_type[]" id="job_type" value="4">
                      Part Time</label>
                  </div>
                  <div class="checkbox">
                    <label>
                      <input type="checkbox" <?php if($gre_job==1){?> checked="checked" <?php }?>  id="gre_job" name="gre_job" value="1" >
                      Graduate Jobs (Select if you are recent graduate)</label>
                  </div>
                </div>
              </li>

              <!--<li>
                                                <div class="edit-cntnts margin-bottom-20">
                                                   <h3>Hours</h3>
                                                   <div class="checkbox">
                                                    <label><input type="checkbox">Full-time</label>
                                                    <label><input type="checkbox">Part-time</label>
													</div>
                                        		</div>
                                            </li>-->

              <li>
                <div class="edit-cntnts margin-bottom-20">
                  <h3>Sectors</h3>
                  <span>Add up to 3 Sectors</span>
                  <p style="color:#FF0000;"> <?php echo $this->session->flashdata('mesage_sec');?> </p>
                  <div class="dit-section">
                    <?php
													  error_reporting(0);
													foreach($get_can_sectors as $val_secors)
                                                          {
														  //get name of secors
									$sle_sectors=mysql_query("select * from njobn_jobs_category where jobs_category_id='".$val_secors->industeries_id."'");
									$fetch_data_sectors=mysql_fetch_array($sle_sectors);
                                    $this->db->where('candidate_id',$val_secors->candidate_id);
                                    $query = $this->db->get('candidate_industeries');
									$setors_counter=$query->num_rows() ;
														  ?>
                    <input type="hidden" name="sectors_counter" id="sectors_counter" value="<?php echo $setors_counter;?> " />
                    <h6 style="width:30%;"><?php echo $fetch_data_sectors['jobs_category_title'];?></h6>
                    <a href="<?php echo base_url();?>front_end/delete_sector?id=<?=$val_secors->industeries_id;?>" class="link" onclick="return confirm('Are you sure?');" ><i class="fa fa-trash-o" aria-hidden="true"></i>Delete</a></br>
                    </br>
                    <?php }?>
                    <!-- <link rel="stylesheet" href="<?php echo base_url();?>assets/docsupport/style.css">-->
                    <link rel="stylesheet" href="<?php echo base_url();?>assets/docsupport/prism.css">
                    <link rel="stylesheet" href="<?php echo base_url();?>assets/docsupport/chosen.css">
                    <select name="secters[]" data-placeholder="Choose Industry sectors..." class="form-control chosen-select" multiple="multiple" style="height: 45px;width:525px;"  id="secters" >
                      <option value=""></option>
                      <?php
  $sel_industeries=mysql_query("select * from njobn_jobs_category");
  while($fethch_induteries=mysql_fetch_array($sel_industeries))
	{
	?>
                      <option value="<?php echo $fethch_induteries['jobs_category_id'];?>"><?php echo $fethch_induteries['jobs_category_title'];?></option>
                      <?php }?>
                    </select>

                    <!--<h5><i class="fa fa-plus-circle" aria-hidden="true"></i>Add another Sector</h5>-->
                  </div>
                </div>
              </li>
            </ul>
            <div class="butten-section">
              <input type="submit" name="add_looging_for" id="add_looging_for" value="Save Changes">
              <!--  <input class="right" type="button" value="Cancel">-->
            </div>
            </div>
          </form>
          <div class="row">
            <div class="edit-filds">
              <div class="modal fade" id="linkedin" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                  <div class="modal-content">
                  	<div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="myModalLabel" style="text-align:center;">LinkedIn</h4>
                    </div>
                    <div class="modal-body">
                      <div  class="tab-pane" id="work-history23" style="height: 102px;">
                        <ul class="looking-for12">
                          <li>
                            <div class="edit-filds">
                              <div class="row">
                                <div class="col-xs-12">
                                  <form name="linkedin" id="linkedin"  method="post" onsubmit="return change_email()" action="<?php echo base_url();?>front_end/linkedin">
                                    <input type="text" class="form-control" name="linkedin" id="linkedin" value="<?php echo $fetch_personal_data['linkedin']?>">
                                    </br>
                                    <input type="submit" name="linkedin_submit" id="linkedin_submit" value="Save Changes" class="submit-section" />
                                  </form>
                                </div>
                              </div>
                            </div>
                          </li>
                        </ul>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="edit-filds">
              <div class="modal fade" id="facebook" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                  <div class="modal-content">
                  	<div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="myModalLabel" style="text-align:center;">Facebook</h4>
                    </div>
                    <div class="modal-body">
                      <div  class="tab-pane" id="work-history23" style="height: 102px;">
                        <ul class="looking-for12">
                          <li>
                            <div class="edit-filds">
                              <div class="row">
                                <div class="col-xs-12">
                                  <form name="facebook" id="facebook"  method="post" onsubmit="return change_email()" action="<?php echo base_url();?>front_end/facebook">
                                    <input type="text" class="form-control" name="facebook" id="facebook" value="<?php echo $fetch_personal_data['facebook']?>">
                                    </br>
                                    <input type="submit" name="facebook_submit" id="facebook_submit" value="Save Changes" class="submit-section" />
                                  </form>
                                </div>
                              </div>
                            </div>
                          </li>
                        </ul>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="edit-filds">
              <div class="modal fade" id="twitter" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                  <div class="modal-content">
                  	<div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="myModalLabel" style="text-align:center;">Twitter</h4>
                    </div>
                    <div class="modal-body">
                      <div  class="tab-pane" id="work-history23" style="height: 102px;">
                        <ul class="looking-for12">
                          <li>
                            <div class="edit-filds">
                              <div class="row">
                                <div class="col-xs-12">
                                  <form name="twitter" id="twitter"  method="post" onsubmit="return change_email()" action="<?php echo base_url();?>front_end/twitter">
                                    <input type="text" class="form-control" name="twitter" id="twitter" value="<?php echo $fetch_personal_data['twitter']?>">
                                    </br>
                                    <input type="submit" name="twitter_submit" id="twitter_submit" value="Save Changes" class="submit-section" />
                                  </form>
                                </div>
                              </div>
                            </div>
                          </li>
                        </ul>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="edit-filds">
              <div class="modal fade" id="upwork" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                  <div class="modal-content">
                  	<div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="myModalLabel" style="text-align:center;">Upwork</h4>
                    </div>
                    <div class="modal-body">
                      <div  class="tab-pane" id="work-history23" style="height: 102px;">
                        <ul class="looking-for12">
                          <li>
                            <div class="edit-filds">
                              <div class="row">
                                <div class="col-xs-12">
                                  <form name="upwork" id="upwork"  method="post" onsubmit="return change_email()" action="<?php echo base_url();?>front_end/upwork">
                                    <input type="text" class="form-control" name="upwork" id="upwork" value="<?php echo $fetch_personal_data['upwork']?>">
                                    </br>
                                    <input type="submit" name="upwork_submit" id="upwork_submit" value="Save Changes" class="submit-section" />
                                  </form>
                                </div>
                              </div>
                            </div>
                          </li>
                        </ul>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="edit-filds">
              <div class="modal fade" id="location" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                  <div class="modal-content">
                    <div class="modal-header">
                      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                      <h4 class="modal-title" id="myModalLabel" style="text-align:center;">Change Email Address</h4>
                    </div>
                    <div class="modal-body">
                      <div  class="tab-pane" id="work-history23" style="height: 102px;">
                        <ul class="looking-for12">
                          <li>
                            <div class="edit-filds">
                              <div class="row">
                                <div class="col-xs-12">
                                  <form name="changeemail" id="changeemail"  method="post" onsubmit="return change_email()" action="<?php echo base_url();?>front_end/change_email">
                                    <input style="width: 90%" type="text" class="form-control" name="email" id="email" value="<?php echo $fetch_personal_data['email']?>">
                                    </br>
                                    <input type="submit" name="change_email_submit" id="change_email_submit" value="Save Changes" class="submit-section" />
                                  </form>
                                </div>
                              </div>
                            </div>
                          </li>
                        </ul>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="edit-filds">
              <div class="modal fade" id="language" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                  <div class="modal-content">
                    <div class="modal-header">
                      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                      <h4 class="modal-title" id="myModalLabel" style="text-align:center;">Change Password</h4>
                    </div>
                    <div class="modal-body">
                      <div  class="tab-pane" id="work-history23" style="height:180px;">
                        <ul class="looking-for12">
                          <form name="change_password_from" id="change_password_from" method="post" onsubmit="return change_password()" action="<?php echo base_url();?>front_end/change_password">
                            <li>
                              <div class="edit-filds">
                                <div class="row">
                                  <div class="col-xs-12">
                       <input type="password" class="form-control" name="password" id="password" placeholder="Password">
                                    </br>
                       <input type="password" class="form-control" name="cpassword" id="cpassword" placeholder="Confirm Password">
                                    </br>
                      <input type="submit" name="changepassword" id="changepassword" value="Change Password" class="submit-section" />
                                  </div>
                                </div>
                              </div>
                            </li>
                          </form>
                          </br>
                          </br>
                        </ul>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="edit-filds">
              <div class="modal fade" id="editlocation" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                  <div class="modal-content">
                    <div class="modal-body"> </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="edit-filds">
              <div class="modal fade" id="editsector" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                  <div class="modal-content">
                    <div class="modal-body"> </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="edit-filds">
              <div class="modal fade" id="editpersonalinfo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                  <div class="modal-content">
                    <div class="modal-body"> </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="edit-filds">
              <div class="modal fade" id="editworkhostory" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                  <div class="modal-content">
                    <div class="modal-body"> </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="edit-filds">
              <div class="modal fade" id="editlanguage" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                  <div class="modal-content">
                    <div class="modal-body"> </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="edit-filds">
              <div class="modal fade" id="editqualifications" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                  <div class="modal-content">
                    <div class="modal-body"> </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div id="work-history" <?php if($_GET['myprofile_data']=="myprofile_data"){?> style="display:block;"<?php }else {?> style="display:none;" <?php }?> role="tabpanel" class="tab-pane fade <?php if($_GET['myprofile_data']=="myprofile_data"){?>in active<?php }?>">
          <ul class="looking-for">
            <form name="work"  method="post" action="<?php echo base_url();?>front_end/add_personal_inforation" onsubmit="return fromwork()">
              <div class="edit-cntnts margin-bottom-20">
                <h3>Personal Details</h3>
                <p style="color:#FF0000;"> <?php echo $this->session->flashdata('myprofile_data');?></p>
                </br>
              </div>
              <?php
			if($fetch_personal_data['user_type']==1)
				{?>
              <li>
                <div class="edit-cntnts margin-bottom-20">
                  <h3>Title</h3>
                </div>
                <div class="edit-filds">
                  <div class="row">
                    <div class="col-xs-12">
                      <input type="text" class="form-control" id="job_title" name="job_title" value="<?php echo $fetch_job_title['job_title'];?>" placeholder="Job Title" onkeypress="return alphaOnly(event)">
                    </div>
                  </div>
                </div>
              </li>
              <?php }?>
              <li>
                <div class="edit-cntnts margin-bottom-20">
                  <h3>First Name</h3>
                </div>
                <div class="edit-filds">
                  <div class="row">
                    <div class="col-xs-12">
                      <input type="text" value="<?php echo $fetch_personal_data['fname'];?>" name="fname" class="form-control" id="fname" onkeypress="return alphaOnly(event)" placeholder="Subject">
                    </div>
                  </div>
                </div>
                <div class="edit-cntnts-bg margin-bottom-20">
                  <h3>Last Name</h3>
                </div>
                <div class="edit-filds dit-fild-cont">
                  <div class="row">
                    <div class="col-xs-12">
                      <input type="text" name="lname" class="form-control" id="lname" value="<?php echo $fetch_personal_data['lname'];?>" style="margin-top: -4px;" onkeypress="return alphaOnly(event)" size="width: 380px;" placeholder="Subject">
                    </div>
                  </div>
                </div>
              </li>
              <li>
                <div class="edit-cntnts margin-bottom-20">
                  <h3>Nationality</h3>
                </div>
                <div class="edit-filds">
                  <div class="row">
                    <div class="col-xs-12">
                      <select name="nationailty" class="form-control"id="nationailty">
                        <option value="">Select Nationailty</option>
                        <?php
	$sel_nationalities=mysql_query("select * from nationalities");
	while($fethch_nationalities=mysql_fetch_array($sel_nationalities))
	{
	?>
                        <option value="<?php echo $fethch_nationalities['id'];?>" <?php if($fetch_personal_data['nationailty']==$fethch_nationalities['id']) {?> selected="selected" <?php }?> ><?php echo $fethch_nationalities['name'];?></option>
                        <?php }?>
                      </select>
                    </div>
                  </div>
                </div>
                <?php
										 if($fetch_personal_data['user_type']==1)
										 {?>
                <div class="edit-cntnts-bg margin-bottom-20">
                  <h3>Employment Status</h3>
                </div>
                <div class="edit-filds dit-fild-cont">
                  <div class="row">
                    <div class="col-xs-12">
                      <select class="form-control"  name="emp_satus" id="emp_satus" style="margin-top: -4px">
                       <option value="">Select One</option>
                       <option value="1" <?php if($fetch_personal_data['emp_satus']==1) {?> selected="selected" <?php }?>>Actively Seeking</option>
                       <option value="2" <?php if($fetch_personal_data['emp_satus']==2) {?> selected="selected" <?php }?>>Contract Role</option>
                       <option value="3" <?php if($fetch_personal_data['emp_satus']==3) {?> selected="selected" <?php }?>>Permanent Role</option>
					   <option value="4" <?php if($fetch_personal_data['emp_satus']==4) {?> selected="selected" <?php }?>>Part Time</option>
					   <option value="5" <?php if($fetch_personal_data['emp_satus']==5) {?> selected="selected" <?php }?>>Full Time</option>
					   <option value="6" <?php if($fetch_personal_data['emp_satus']==6) {?> selected="selected" <?php }?>>Redundant</option>
					  </select>
                    </div>
                  </div>
                </div>
                <?php }?>
              </li>
              <li>
                <div class="edit-cntnts margin-bottom-20">
                  <h3>Phone Number</h3>
                </div>
                <div class="edit-filds">
                  <div class="row">
                    <div class="col-xs-12">
                      <input type="text" name="phone" class="form-control" value="<?php echo $fetch_personal_data['phone'];?>" id="phone"  placeholder="Phone Number">
                    </div>
                  </div>
                </div>
              </li>
              <div class="butten-section">
                <input type="submit" name="add_work" id="add_work" value="Save">
              </div>
            </form>
          </ul>
          </br>
        </div>
        <div  id="qualifications" <?php if($_GET['address_data']=="address_data"){?> style="display:block;"<?php }else {?> style="display:none;" <?php }?> role="tabpanel" class="tab-pane fade <?php if($_GET['address_data']=="address_data"){?>in active<?php }?>" >
        <ul class="looking-for">
          <div class="edit-cntnts margin-bottom-20">
            <?php
 if($fetch_personal_data['user_type']==1)
 {?>
            <h3>Find My Address</h3>
            <?php }?>
            <p style="color:#FF0000;"> <?php echo $this->session->flashdata('address_data');?></p>
            </br>
          </div>
          <?php
 if($fetch_personal_data['user_type']==1)
 {?>
          <script src="<?php echo base_url();?>assets_front/js/prefixfree.min.js"></script>
          <li>
            <div class="edit-cntnts margin-bottom-20">
              <h3>House No./Name</h3>
              <!--<p id="text">Enter a property name or number and postcode.<p>-->
            </div>
            <div class="edit-filds">
              <div class="row">
                <div class="col-xs-12">
                  <input type="text" name="number" class="form-control" id="number"  placeholder="House no or Name">
                </div>
              </div>
            </div>
            <div class="edit-cntnts-bg margin-bottom-20">
              <h3>Postal code</h3>
            </div>
            <div class="edit-filds dit-fild-cont">
              <div class="row">
                <div class="col-xs-12">
                  <input type="text" name="code" class="form-control" id="code"  placeholder="Postal Code" style="margin-top: -4px">
                </div>
              </div>
            </div>
            <div class="butten-section">
              <input type="button" value="Find My Address" name="find_address" id="submit">
              <!--<input class="right-cont" type="button" value="Save & add another">-->
            </div>
          </li>
          <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
          <script src="<?php echo base_url();?>assets_front/js/index.js"></script>
          <?php }?>
          <form name="qualifications_data"  method="post" action="<?php echo base_url();?>front_end/add_address" onsubmit="return qualification_work()">
            <li>
              <?php
 if($fetch_personal_data['user_type']==1)
 {?>
              <p style="color:#000000;font-weight:bold;">or enter your address in manually</p>
              </br>
              <?php }?>
              <div class="edit-cntnts margin-bottom-20">
                <h3>Address</h3>
              </div>
              <div class="edit-filds">
                <div class="row">
                  <div class="col-xs-12">
                    <input type="text" name="address" class="form-control" id="address" value="<?php echo $fetch_personal_data['address'];?>"  placeholder="Address">
                  </div>
                </div>
              </div>
            </li>
            <li>
              <div class="edit-cntnts margin-bottom-20">
                <h3>Town/City</h3>
              </div>
              <div class="edit-filds">
                <div class="row">
                  <div class="col-xs-12">
                    <input type="text" name="city" id="city" onkeypress="return alphaOnly(event)" value="<?php echo $fetch_personal_data['city'];?>"  class="form-control" placeholder="Town/City">
                  </div>
                </div>
              </div>
            </li>
            <li>
              <div class="edit-cntnts margin-bottom-20">
                <h3>Postal Code</h3>
              </div>
              <div class="edit-filds">
                <div class="row">
                  <div class="col-xs-12">
                    <input type="text" name="postcode" id="postcode"  value="<?php echo $fetch_personal_data['postcode'];?>"  class="form-control" placeholder="School / College name">
                  </div>
                </div>
              </div>
            </li>
            <li>
              <div class="edit-cntnts margin-bottom-20">
                <h3>Country</h3>
              </div>
              <div class="edit-filds">
                <div class="row">
                  <div class="col-xs-12">
                    <?php
//get country name
	$sel_countries1=mysql_query("select * from countries where id='".$fetch_personal_data['country']."'");
	$fethch_counries1=mysql_fetch_array($sel_countries1);
?>
                    <input type="text" name="countryname" id="countryname" readonly style="display:none;" value="<?php echo $fethch_counries1['name'];?>"  class="form-control">
                    <select name="country" class="form-control"id="country">
                      <option value="">Select Nationailty</option>
                      <?php
	$sel_countries=mysql_query("select * from countries");
	while($fethch_counries=mysql_fetch_array($sel_countries))
	{
	?>
                      <option value="<?php echo $fethch_counries['id'];?>" <?php if($fetch_personal_data['country']==$fethch_counries['id']) {?> selected="selected" <?php }?> ><?php echo $fethch_counries['name'];?></option>
                      <?php }?>
                    </select>
                  </div>
                </div>
              </div>
            </li>

            <!--<li>
                                                <div class="edit-cntnts margin-bottom-0">
                                                    <h5><i class="fa fa-plus-circle" aria-hidden="true"></i>Add another A Level</h5>
												</div>

                                        	</li>-->

            <div class="butten-section">
              <input type="submit" value="Save" name="save_address" id="save_address" />
            </div>
          </form>
        </ul>
      </div>
      <div <?php if($_GET['account_details']=="account_details"){?> style="display:block;"<?php }?> role="tabpanel" class="tab-pane fade <?php if($_GET['account_details']=="account_details"){?>active in<?php }?>" id="skills">
    <form name="account_detailsfrom"  method="post" action="<?php echo base_url();?>front_end/account_details" onsubmit="return account_details()">
	<input type="hidden" class="form-control" id="oldpass" name="oldpass" value="<?php echo $fetch_personal_data['password'];?>"  onkeypress="return alphaOnly(event)" style="width: 100%;">
          <div class="edit-cntnts margin-bottom-20">
            <h3>Account Details</h3>
            <p style="color:#FF0000;margin-bottom: 13px;"><?php echo $this->session->flashdata('account_details');?></p>
            <!--<p style="font-weight:bold;">Sign In Details</p>-->
            </br>
            <li>
                <div class="edit-cntnts margin-bottom-20">
                  <h3 style="font-size:20px">Email*</h3>
                </div>
                <div class="edit-filds">
                  <div class="row">
                    <div class="col-xs-12">
                      <input type="text" class="form-control" id="email" name="email" value="<?php echo $fetch_personal_data['email'];?>" placeholder="Email" onkeypress="return alphaOnly(event)" style="width: 100%;"></br>
                    </div>
                  </div>
                </div>
              </li>
			<li>

                <div class="edit-cntnts margin-bottom-20">
                  <h3 style="font-size:20px">Password*</h3>
                </div>
                <div class="edit-filds">
                  <div class="row">
                    <div class="col-xs-12">
                      <input type="password" class="form-control" id="password" name="password" value="" placeholder="Password"  style="width: 100%;"></br>
                    </div>
                  </div>
                </div>
              </li>
			  <li>
                <div class="edit-cntnts margin-bottom-20">
                  <h3 style="font-size:20px">Confirm Password*</h3>
                </div>
                <div class="edit-filds">
                  <div class="row">
                    <div class="col-xs-12">
         <input type="password" class="form-control" id="cpassword" name="cpassword" style="width: 100%;" value="" placeholder="Confirm Password" ></br>
                    </div>
                  </div>
                </div>
              </li>
			  <li>
                <div class="edit-cntnts margin-bottom-20">
                  <h3 style="font-size:20px">Linkedin</h3>
                </div>
                <div class="edit-filds">
                  <div class="row">
                    <div class="col-xs-12">
<input type="text" class="form-control" id="linkedin" name="linkedin" value="<?php echo $fetch_personal_data['linkedin'];?>"  placeholder="https://www.linkedin.com/test"></br>
                    </div>
                  </div>
                </div>
              </li>

			  <li>
                <div class="edit-cntnts margin-bottom-20">
                  <h3 style="font-size:20px">Facebook</h3>
                </div>
                <div class="edit-filds">
                  <div class="row">
                    <div class="col-xs-12">
<input type="text" class="form-control" id="facebook" name="facebook" value="<?php echo $fetch_personal_data['facebook'];?>"  placeholder="https://www.facebook.com/Kulachisoft-554490381260844/"></br>
                    </div>
                  </div>
                </div>
              </li>
			  <li>
                <div class="edit-cntnts margin-bottom-20">
                  <h3 style="font-size:20px">Twitter</h3>
                </div>
                <div class="edit-filds">
                  <div class="row">
                    <div class="col-xs-12">
<input type="text" class="form-control" id="twitter" name="twitter" value="<?php echo $fetch_personal_data['twitter'];?>"  ></br>
                    </div>
                  </div>
                </div>
              </li>
			  <li>
                <div class="edit-cntnts margin-bottom-20">
                  <h3 style="font-size:20px">Upwork</h3>
                </div>
                <div class="edit-filds">
                  <div class="row">
                    <div class="col-xs-12">
<input type="text" class="form-control" id="upwork" name="upwork" value="<?php echo $fetch_personal_data['upwork'];?>"  ></br>
                    </div>
                  </div>
                </div>
              </li>
			  <div class="butten-section">
              <input type="submit" value="Save" name="save_profile" id="save_profile" />
            </div>
          </div>
        </form>
      </div>
      <div <?php if($_GET['contact_details']=="contact_details"){?> style="display:block;"<?php } else {?> style="display:none;" <?php }?> role="tabpanel" class="tab-pane fade <?php if($_GET['contact_details']=="contact_details"){?> in active<?php }?>" id="languages">
      <form name="contact_alert_data" id="contact_alert_data"  method="post" action="<?php echo base_url();?>front_end/save_contact_alert">
        <ul class="looking-for">
          <li>
            <div class="edit-cntnts margin-bottom-20">
              <h3 style="width:100%;">Contact Preferences</h3>
              <p style="color:#FF0000;margin-bottom: 13px;"><?php echo $this->session->flashdata('contact_details');?></p>
              <p style="font-weight:bold;">Job Alert Emails</p>
              <p>
              <div class="checkbox">
                <label>
                  <input type="checkbox" name="alert_email" id="alert_email" value="1"  <?php if($fetch_personal_data['alert_email']==1){?> checked="checked"<?php }?>>
                  Email me jobs matching my search, and remind me about jobs I've saved.</label>
              </div>
              </p>
              <hr  style="background-color:#999999;">
              <p style="font-weight:bold;">Your Details</p>
              <p>
              <div class="checkbox" style="width:80%">
                <label>
                  <input type="checkbox" name="alert_my_account" id="alert_my_account" value="1" <?php if($fetch_personal_data['alert_my_account']==1){?> checked="checked"<?php }?>>
                  Jobs, my account and career development</label>
                <!--<label><input type="checkbox" name="alert_products" id="alert_products" value="1" <?php if($fetch_personal_data['alert_products']==1){?> checked="checked"<?php }?>>Other reed.co.uk products and services</label>
<label><input type="checkbox" name="alert_therid_party" id="alert_therid_party" value="1" <?php if($fetch_personal_data['alert_therid_party']==1){?> checked="checked"<?php }?>>Products and services from carefully selected third parties</label>-->
              </div>
              </p>
              <hr  style="background-color:#999999;">
              <p style="font-weight:bold;">My Profile</p>
              </br>
              <p>Keep your profile up to date and visible to the recruiters in order to find the right fit for your skills</p>
              <p>
              <div class="checkbox">
                <label>
                  <input type="checkbox" name="alert_my_profile" id="alert_my_profile" value="1" <?php if($fetch_personal_data['alert_my_profile']==1){?> checked="checked"<?php }?>>
                  Allow recruiters to find me</label>
              </div>
              </p>
              </br>
              <input type="submit" class="submit-section"  name="save_contact" id="save_contact" value="Save">
            </div>
          </li>
        </ul>
      </form>
    </div>
  </div>
</div>
</div>
</div>
</div>
</div>
<!--CONTENT-AREA-->

<!--CONTENT-OUTER-->
</div>
<?php $this->load->view('footer_front'); ?>