<?php $this->load->view('header_frontinner'); 
$this->load->view('security_front'); 
$can_id=$this->session->userdata('user_id');
$sel_personal_information=mysql_query("select * from njobn_webusers where user_id='".$can_id."'");
$fetch_personal_data=mysql_fetch_array($sel_personal_information);
//count number rows for lookin for 
$sel_looking_for=mysql_query("select * from njobn_candidate where candidate_id='".$can_id."'");

$num_rows_looking_for=mysql_num_rows($sel_looking_for);

//conut code for work hostory

$sel_work_history=mysql_query("select * from work_history where candidate_id='".$can_id."'");

$num_rows_work_history=mysql_num_rows($sel_work_history);

//conut code for work qualifications

$sel_qualifications=mysql_query("select * from qualifications where candidate_id='".$can_id."'");

$num_rows_qualifications=mysql_num_rows($sel_qualifications);

//conut code for  skills

$sel_skills=mysql_query("select * from candidate_skills where candidate_id='".$can_id."'");

$num_rows_skills=mysql_num_rows($sel_skills);

//conut code for candidate_language

$sel_candidate_language=mysql_query("select * from candidate_language where candidate_id='".$can_id."'");

$num_rows_candidate_language=mysql_num_rows($sel_candidate_language);



//conut code for candidate_language

$sel_candidate_license=mysql_query("select * from candidate_license where candidate_id='".$can_id."'");

$num_rows_candidate_license=mysql_num_rows($sel_candidate_license);

 

//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);

if($sel_personal_information['email']!='' && $sel_personal_information['address']!='')

{

$width='20';

}

if($num_rows_looking_for >0)

{

$width='30';

}

if($num_rows_work_history >0)

{

$width='40';

}

if($num_rows_qualifications >0)

{

$width='50';

}

if($num_rows_skills >0)

{

$width='60';

}

if($num_rows_candidate_language >0)

{

$width='70';

}

if($num_rows_candidate_license > 0)

{

$width='80';

}
if($fetch_personal_data['cv_file']!='')

{

$width='90';

}

if($fetch_personal_data['cover_info']!='')
{
$width='100';

}

error_reporting(0);

//code for to get personal information

?>

         <div class="inner-cntnts">

            	<div class="container">
<div class="section-welcome nav-welcome">
                    <ol class="breadcrumb">
      <li><a href="<?php echo base_url();?>front_end/candidate_dashboard?looking_for_data=looking_for_data">Dashboard</a></li>
      
     </ol>
                    <a class="menubtn" href="#"><i class="fa fa-bars"></i></a>
                </div>
                	

                    <div class="about-candidate-wrap">

                    	<div class="row">

                        	<div class="col-sm-3">

                                <div class="cndate-detail">

<?php

//code for to get web logo			
foreach($footer_data1 as $val_profile)
{
$salary_from=$val_profile->salary_from;
$salary_to=$val_profile->salary_to;
$currency=$val_profile->currency;
$can_image=$val_profile->image;
}
?>



                                    <div class="candidate-picture margin-bottom-15">
<?php
if($can_image!='')
{?>
<img src="<?php echo base_url();?>assets/upload/<?php echo $can_image;?>" alt="Img" class="img-responsive img-circle">										
<?php }
else
{?>
<img src="<?php echo base_url();?>assets_front/images/JNJUKWebLogo.png" alt="Img" class="img-responsive img-circle" style="border:none!important;">	
<?php }
?>
										

                                    	<a href="#" title="Change Picture" id="select_logo"><i class="fa fa-camera"></i></a>

		<form name="upload_image" id="upload_image" action="<?php echo base_url();?>front_end/upload_imageprofile" method="post" enctype="multipart/form-data">

									<input type="file" id="image" name="image"/> 

									</form>

                                    </div>

								<div class="name-center">

									                   <?php

//code for to show first name and last name	

foreach($profile as $val_fname_lname)

{

$gre_job=$val_fname_lname->gre_job;

?>

                                    <h4><?php echo $val_fname_lname->fname.' '.$val_fname_lname->lname;?></h4>

                                   <?php }?>
</div>
                                    <div class="progress">

            <div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="<?php echo $width;?>" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo $width;?>%;"><?php echo $width;?>% Complete

                                        </div>

                                    </div>

<?php

//code for to show email address and and phone	

foreach($profile as $val_adress_email_phone)

{

$address=$val_adress_email_phone->address;
$phone=$val_adress_email_phone->phone;
$email=$val_adress_email_phone->email;
$linkedin=$val_adress_email_phone->linkedin;

}

?>
                                    <ul>
                                    	<li><i class="fa fa-home"></i><?php if($address!=''){echo $address;}else{echo "&nbsp;";}?></li>
                                        <li><i class="fa fa-phone"></i><?php if($phone!=''){echo $phone;}else{echo "&nbsp;";}?></li>
                                        <li><i class="fa fa-envelope"></i><?php if($email!=''){echo $email;}else{echo "&nbsp;";}?></li>
										<li><i class="fa fa-linkedin-square"></i><?php if($linkedin!=''){echo "&nbsp;";}?></li></br>			

                                    </ul>



                                </div>

                            

                            </div>

                            <?php

//code for to get web logo			

foreach($profile as $val_personal_infromation)

{



?>

                            <div class="col-sm-9">

                                <div class="candidate-desc"> 

                                	

                                    <div class="edit-cntnts margin-bottom-20">

                                    

										<h3>Personal Information <a title="Edit" data-target="#editpersonalinfo" data-toggle="modal"  href="<?php echo base_url();?>front_end/edit_personalinfo"><i class="fa fa-edit"></i></a></h3>

										<p style="color:#FF0000;"><?php echo $this->session->flashdata('mesage_personalnfo');?></p>

                                	</div>

                                    <div class="cndidte-designation margin-bottom-35">

                                    	<h3><?php echo $val_personal_infromation->fname.' '.$val_personal_infromation->lname;?></h3>

                                		<h5><?php

										//get the job id

										$sel_get_job_id=mysql_query("select * from job_type where cand_id='".$can_id."'");

										$fetch_job_id=mysql_fetch_array($sel_get_job_id);

										//get the jobname

										$sel_get_jobtype=mysql_query("select * from njobn_jobdetails where job_id='".$fetch_job_id['job_type_id']."'");

										$fetch_jobtype=mysql_fetch_array($sel_get_jobtype);

										echo $fetch_jobtype['job_title'];

										?>

										

										

										</h5>

                                	</div>

                                    

                                    <P><?php echo $val_personal_infromation->summery;?></P>

                                    

                                </div>

                                

                            </div>

							<?php }?>

                        </div>

                    </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"><a href="<?php echo base_url();?>front_end/your_cv" role="tab"> CV &amp; Cover Letter</a></li>

                                    <li role="presentation"  <?php if($_GET['looking_for_data']=="looking_for_data"){?> class="active" <?php }?>><a href="#looking-for" role="tab" data-toggle="tab" onclick="hide_lookingfor()">Looking for</a></li>

                                    <li role="presentation" <?php if($_GET['work_history_data']=="work_history_data"){?>class="active"<?php }?>><a href="#work-history" role="tab" data-toggle="tab" onclick="hide_workhistory()">Work history</a></li>

                                    <li role="presentation" <?php if($_GET['qualifications_secure_data']=="qualifications_secure_data"){?>class="active"<?php }?>><a href="#qualifications" role="tab" data-toggle="tab" onclick="hide_qualifications()">Qualifications</a></li>

                                    

 <li role="presentation" <?php if($_GET['skill_data']=="skill_data"){?> class="active" <?php }?>><a href="#skills" role="tab" data-toggle="tab" onclick="hide_skills()">Skills</a></li>

                                    <li role="presentation" <?php if($_GET['languages_for_data']=="languages_for_data"){?>class="active"<?php }?>><a href="#languages" role="tab" data-toggle="tab" onclick="hide_languages()">Languages</a></li>

                                    <li role="presentation" <?php if($_GET['license_data_form']=="license_data_form"){?>class="active"<?php }?>><a href="#license" role="tab" data-toggle="tab" onclick="hide_license()">Car &amp; driving license</a></li>

                                </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-4">

<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-4">

<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 class="col-xs-4">
														<select class="form-control" id="exampleSelect1" name="currency">
                                                       <option value="1" <?php if($currency==1){?> selected="selected" <?php }?> >&pound;</option>
														  <option value="2" <?php if($currency==2){?> selected="selected" <?php }?> >$</option>
                                                          <option value="3"  <?php if($currency==3){?> selected="selected" <?php }?>>&euro;</option>
                                                          <option value="4" <?php if($currency==4){?> selected="selected" <?php }?>>&#x20B9;</option>
                                                        </select>


                                                         </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" data-toggle="modal" data-target="#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>

<label><input type="checkbox" <?php if(in_array(5,$arr)){?> checked="checked" <?php }?> name="job_type[]" id="job_type" value="5">Full 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="#"><i class="fa fa-pencil" aria-hidden="true"></i>Edit</a>-->

													 <!--  <a data-target="#editsector" data-toggle="modal"  href="<?php echo base_url();?>front_end/edit_sectors?id=<?=$val_secors->id;?>"><i class="fa fa-pencil" aria-hidden="true" ></i>Edit</a>-->

													    <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>

                                                       <!-- <select class="form-control" id="exampleSelect1">

                                                          <option>Choose your sector</option>

                                                          <option>2</option>

                                                          <option>3</option>

                                                          <option>4</option>

                                                          <option>5</option>

                                                        </select>-->

														<?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>

<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>-->
  <script src="<?php echo base_url();?>assets/docsupport/chosen.jquery.js" type="text/javascript"></script>
  <script src="<?php echo base_url();?>assets/docsupport/prism.js" type="text/javascript" charset="utf-8"></script>

  <script type="text/javascript">

    var config = {

      '.chosen-select'           : {},

      '.chosen-select-deselect'  : {allow_single_deselect:true},

      '.chosen-select-no-single' : {disable_search_threshold:10},

      '.chosen-select-no-results': {no_results_text:'Oops, nothing found!'},

      '.chosen-select-width'     : {width:"95%"}

    }

    for (var selector in config) {

      $(selector).chosen(config[selector]);

    }

  </script>

														

                                                        <!--<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="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;">Add Location</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="location" id="location" method="post" onsubmit="return add_location_form()" action="<?php echo base_url();?>front_end/add_can_location">

                            <input type="text" class="form-control" name="p_location" id="p_location"  onkeypress="return alphaOnly(event)">

							</br>

	                        <input type="submit" name="add_location" id="add_location" value="Add Location" 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;">Add language</h4>

      </div>

      <div class="modal-body">

	  <div  class="tab-pane" id="work-history23" style="height: 113px;">

                                    	<ul class="looking-for12">

     <form name="language_form" id="language_form" method="post" onsubmit="return add_language_form()" action="<?php echo base_url();?>front_end/add_language">

											<li>

                                                <div class="edit-filds">

                                                	<div class="row">

                                                        <div class="col-xs-12">

                            <input type="text" class="form-control" name="p_language" id="p_language"  onkeypress="return alphaOnly(event)">

                                                         </div>

                                                     </div>

                                                </div>

                                        	</li>

											

											<li>

                                                <div class="edit-cntnts margin-bottom-0px">

                                                   <div class="checkbox">

                                                    <label><input type="radio" name="type" id="type" value="1" checked="checked">Basic</label>

                                                    <label><input type="radio" name="type" id="type" value="2">Intermediate</label>

                                                    <label><input type="radio" name="type" id="type" value="3">Fluent</label>

                                                  </div>

												</div>



                                        	</li></br></br>

											   <input type="submit" name="add_language" id="add_language" value="Add Language" class="submit-section" />

												</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['work_history_data']=="work_history_data"){?> style="display:block;"<?php }else {?> style="display:none;" <?php }?> role="tabpanel" class="tab-pane fade <?php if($_GET['work_history_data']=="work_history_data"){?>in active<?php }?>">

                                    	<ul class="looking-for">

<form name="work"  method="post" action="<?php echo base_url();?>front_end/add_work_hostory" onsubmit="return fromwork_add()">

                                        	<li>

                                                <div class="edit-cntnts margin-bottom-20">

                                                    <h3>Job Title</h3>

													

												</div>

                                                <div class="edit-filds">

                                                	<div class="row">

                                                        <div class="col-xs-12">

                                                            <input type="text" class="form-control" id="job_title12" name="job_title" placeholder="Job Title" onkeypress="return alphaOnly(event)">

                                                         </div>

                                                         

                                                     </div>

                                                </div>

                                        	</li>

                                            

                                            <li>

                                                <div class="edit-cntnts margin-bottom-20">

                                                    <h3>Company Name</h3>

												</div>

                                                <div class="edit-filds">

                                                	<div class="row">

													<div class="col-xs-12">

<input type="text" id="cname" name="cname" class="form-control" placeholder="Company name" onkeypress="return alphaOnly(event)">

                                                         </div>

                                                         

                                                     </div>

                                                </div>

                                        	</li>

                                            

                                            

                                            <li>

                                                <div class="edit-cntnts margin-bottom-20">

                                                    <h3>From</h3>

												</div>

                                                <div class="edit-filds">

                                                	<div class="row">

                                                        <div class="col-xs-6">

                                                            <select class="form-control"  name="fmonth" id="fmonth">
                                                              <option value="">Month</option>
<?php
for($fm=1;$fm<13;$fm++)

{?>
<option value=""><?php 
    if($fm == 1)
    {
     echo "January";
    }elseif($fm == 2)
    {
     echo "February";
    }elseif($fm == 3)
    {
     echo "March";
    }elseif($fm == 4)
    {
     echo "April";
    }elseif($fm == 5)
    {
     echo "May";
    }elseif($fm == 6)
    {
     echo "June";
    }elseif($fm == 7)
    {
     echo "July";
    }elseif($fm == 8)
    {
     echo "August";
    }elseif($fm == 9)
    {
     echo "September";
    }
    elseif($fm == 10)
    {
     echo "October";
    }
    elseif($fm == 11)
    {
     echo "Novemeber";
    }
    elseif($fm == 12)
    {
     echo "December";
    }?></option>

   <?php }?>

                                                            </select>

                                                         </div>

                                                         

                                                         <div class="col-xs-6">

                                                            <select class="form-control"  name="fyear" id="fyear">

                                                              <option value=" ">Year</option>

                                                              <?php

                                                              for($fy=2001;$fy<2020;$fy++)

                                                              {?>

                                                               <option value="<?php echo $fy ;?>"><?php echo $fy ;?></option>

                                                               <?php }?> 

                                                            </select>

                                                         </div>

                                                     </div>

                                                </div>

                                                 <div class="lable-section">

                                                     <label><input type="checkbox" name="currently" id="currently" value="1">I currently work here</label>

                                                 </div>

                                        	</li>

                                            

                                            <li>

                                                <div class="edit-cntnts margin-bottom-20">

                                                    <h3>To</h3>

												</div>

                                                <div class="edit-filds">

                                                	<div class="row">

                                                        <div class="col-xs-6">

<select class="form-control" id="tmonth" name="tmonth" >

 <option value="">Month</option>
      <?php
for($tm=1;$tm<12;$tm++)
{?>
   <option value=""><?php 
    if($tm == 1)
    {
     echo "January";
    }elseif($tm == 2)
    {
     echo "February";
    }elseif($tm == 3)
    {
     echo "March";
    }elseif($tm == 4)
    {
     echo "April";
    }elseif($tm == 5)
    {
     echo "May";
    }elseif($tm == 6)
    {
     echo "June";
    }elseif($tm == 7)
    {
     echo "July";
    }elseif($tm == 8)
    {
     echo "August";
    }elseif($tm == 9)
    {
     echo "September";
    }
    elseif($tm == 10)
    {
     echo "October";
    }
    elseif($tm == 11)
    {
     echo "Novemeber";
    }
    elseif($tm == 12)
    {
     echo "December";
    }?></option>

   <?php }?>

</select>

                                                         </div>

                                                         

                                                         <div class="col-xs-6">

<select class="form-control" id="tyear" name="tyear">

<option value="">Year</option>

<?php

for($ty=2001;$ty<2020;$ty++)

{?>

<option value="<?php echo $ty ;?>"><?php echo $ty ;?></option>

<?php }?>  

</select>

                                                         </div>

                                                     </div>

                                                </div>

                                        	</li>

                                            

                                            <li>

                                                <div class="edit-cntnts margin-bottom-20">

                                                    <h3>What did you do there?</h3>

												</div>

                                                <div class="examp-section">

                                                    <textarea class="form-control" id="exampleTextarea" name="details" rows="3"></textarea>

                                                    <!--<span>2000 characters remaining </span>-->

                                                 </div>

                                        	</li>

                                              <div class="butten-section">

                                                <input type="submit" name="add_work" id="add_work" value="Save Changes">

                                                <!--<input class="right-cont" type="button" value="Save & add another">-->

                                                <input class="right" type="reset"  name="reset" id="reset" value="Cancel">

                                        	</div>

                                            </form></br>

											  <li>

                                                <div class="edit-cntnts margin-bottom-20">

                                                 	<div class="dit-section">

													<?php

                                                    foreach($work_history as $val_work_history)

	                                                 {?>

                                                    	<h3><?php echo $val_work_history->job_title ;?></h3><a data-target="#editworkhostory" data-toggle="modal"  href="<?php echo base_url();?>front_end/edit_workhistory?id=<?=$val_work_history->work_id;?>"><i class="fa fa-pencil" aria-hidden="true"></i>Edit</a>

                                                        <a href="<?php echo base_url();?>front_end/delete_workhistory?id=<?=$val_work_history->work_id;?>" class="link" onclick="return confirm('Are you sure?');" ><i class="fa fa-trash-o" aria-hidden="true"></i>Delete</a></br>

														<span class="newStyleCSS"><?php echo $val_work_history->cname ;?></span></br>
<span class="newStyleCSS"><?php 
    if($val_work_history->fmonth == 1)
    {
     echo "January";
    }elseif($val_work_history->fmonth == 2)
    {
     echo "February";
    }elseif($val_work_history->fmonth == 3)
    {
     echo "March";
    }elseif($val_work_history->fmonth == 4)
    {
     echo "April";
    }elseif($val_work_history->fmonth == 5)
    {
     echo "May";
    }elseif($val_work_history->fmonth == 6)
    {
     echo "June";
    }elseif($val_work_history->fmonth == 7)
    {
     echo "July";
    }elseif($val_work_history->fmonth == 8)
    {
     echo "August";
    }elseif($val_work_history->fmonth == 9)
    {
     echo "September";
    }
    elseif($val_work_history->fmonth == 10)
    {
     echo "October";
    }
    elseif($val_work_history->fmonth == 11)
    {
     echo "Novemeber";
    }
    elseif($val_work_history->fmonth == 12)
    {
     echo "December";
    }
	
	?>
    <?php echo ','.$val_work_history->fyear; ?>

<?php
if($val_work_history->currently==1)
{
echo "- Present";
}
else
{
?>
-
<?php
    if($val_work_history->tmonth == 1)
    {
     echo "January";
    }
	elseif($val_work_history->tmonth == 2)
    {
     echo "February";
    }elseif($val_work_history->tmonth == 3)
    {
     echo "March";
    }elseif($val_work_history->tmonth == 4)
    {
     echo "April";
    }elseif($val_work_history->tmonth == 5)
    {
     echo "May";
    }elseif($val_work_history->tmonth == 6)
    {
     echo "June";
    }elseif($val_work_history->tmonth == 7)
    {
     echo "July";
    }elseif($val_work_history->tmonth == 8)
    {
     echo "August";
    }elseif($val_work_history->tmonth == 9)
    {
     echo "September";
    }
    elseif($val_work_history->tmonth == 10)
    {
     echo "October";
    }
    elseif($val_work_history->tmonth == 11)
    {
     echo "Novemeber";
    }
    elseif($val_work_history->tmonth == 12)
    {
     echo "December";
    }
	?>
	 <?php echo ','.$val_work_history->tyear; 
 }
 ?></span></br>

														<span class="newStyleCSS"><?php echo $val_work_history->details;?></span></br>
														<?php }?>

                                                    </div>

												</div>

                                        	</li>

                                        </ul>

										

										</br>

										  <p style="color:#FF0000;"> <?php echo $this->session->flashdata('mesage_work_history');?></p></br> 

                                    </div>

                                    <div  id="qualifications" <?php if($_GET['qualifications_secure_data']=="qualifications_secure_data"){?> style="display:block;"<?php }else {?> style="display:none;" <?php }?> role="tabpanel" class="tab-pane fade <?php if($_GET['qualifications_secure_data']=="qualifications_secure_data"){?>in active<?php }?>">

                                  <form name="qualifications_data"  method="post" action="<?php echo base_url();?>front_end/add_qualifications" onsubmit="return qualification_work()">	

										<ul class="looking-for">

                                        <li>

                                                <div class="edit-cntnts margin-bottom-20">

                                                    <h3>Type</h3>

												</div>

                                                <div class="edit-filds">

                                                	<div class="row">

                                                        <div class="col-xs-12">

							<select class="form-control"  name="type" id="type">

                                                               <option value="">Select One</option>

                                                                <option value="1">Non-Matriculation</option>

                                                                <option value="2">Matriculation/O-Level</option>

                                                                <option value="3">Intermediate/A-Level</option>

                                                                <option value="4">Bachelors</option>

                                                                <option value="5">Masters</option>

                                                                <option value="6">MPhil/MS</option>

                                                                <option value="7">PHD/Doctorate</option>

                                                                <option value="8">Certification</option>

                                                                <option value="9">Diploma</option>

                                                                <option value="10">Short Course</option>

                                                            </select>

                                                         </div>

                                                     </div>

                                                </div>

                                        	</li>

                                        	<li>

                                                <div class="edit-cntnts margin-bottom-20">

                                                    <h3>School or College</h3>

												</div>

                                                <div class="edit-filds">

                                                	<div class="row">

                                                        <div class="col-xs-12">

                                              <input type="text" name="school_name" id="school_name" onkeypress="return alphaOnly(event)" class="form-control" placeholder="School / College name">

                                                         </div>

                                                         

                                                     </div>

                                                </div>

                                        	</li>

                                            <li>

                                                <div class="edit-cntnts margin-bottom-20">

                                                    <h3>From</h3>

												</div>

                                                <div class="edit-filds">

                                                	<div class="row">

                                                        <div class="col-xs-6">

                                                            <select class="form-control"  name="fyear" id="fyear">

                                                          <?php

                                                      for($fy=2001;$fy<2020;$fy++)

                                                        {?>

                                                         <option value="<?php echo $fy ;?>"><?php echo $fy ;?></option>

                                                           <?php }?> 

                                                            </select>

                                                         </div>

                                                         <div class="col-xs-6">

                                                            <select class="form-control"  name="tyear" id="tyear">

                                                            <?php

                                                            for($ty=2001;$ty<2020;$ty++)

                                                            {?>

                                                            <option value="<?php echo $ty ;?>"><?php echo $ty ;?></option>

                                                             <?php }?> 

                                                            </select>

                                                         </div>

                                                     </div>

                                                </div>

                                                

                                        	</li>

                                            

                                            <li>

                                                <div class="edit-cntnts margin-bottom-20">

                                                    <h3>Degree Title</h3>

												</div>

                                                <div class="edit-filds">

                                                	<div class="row">

                                                       <div class="col-xs-12">

                                                            <input type="text" name="subject" class="form-control" id="subject" onkeypress="return alphaOnly(event)" placeholder="Subject">

                                                         </div>

                                                     </div>

                                                </div>

                                                <div class="edit-cntnts-bg margin-bottom-20">

                                                    <h3>GPA/Grade/Percentage</h3>

												</div>

                                                <div class="edit-filds dit-fild-cont">

                                                	<div class="row">

                                                        <div class="col-xs-12">

                         <input type="text" name="grade" class="form-control" id="grade" onkeypress="return alphaOnly(event)" placeholder="GPA/Grade/Percentage">

                                                         </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>-->

                                             <li>

                                                <div class="edit-cntnts margin-bottom-20">

                                                    <h3>Description</h3>

												</div>

                                                <div class="examp-section">

                                    <textarea class="form-control" id="qualifications_details" rows="3" name="qualifications_details"></textarea>

                                                   

                                                 </div>

                                        	</li>

                                              <div class="butten-section">

                                                <input type="submit" value="Add Qualifications" name="add_qualifications" id="add_qualifications">

                                                <!--<input class="right-cont" type="button" value="Save & add another">-->

                                                <input class="right" type="reset" value="Cancel">

                                        	</div>

											<p style="color:#FF0000;"> <?php echo $this->session->flashdata('qualifications_secure_data');?></p></br> 

                                            <li>

                                                <div class="edit-cntnts margin-bottom-20">

                                                 	<div class="dit-section">

													 <?php

	                                                 foreach($qualifications_data as $val_qualifications_data)

	                                                  {?>

											<h3><?php if($val_qualifications_data->type==2){echo "Matriculation/O-Level";}

									   if($val_qualifications_data->type==3){echo "Intermediate/A-Level";}

									   if($val_qualifications_data->type==4){echo "Bachelors";}

									   if($val_qualifications_data->type==5){echo "Masters";}

									   if($val_qualifications_data->type==6){echo "MPhil/MS";} 

									   if($val_qualifications_data->type==7){echo "PHD/Doctorate";}

									   if($val_qualifications_data->type==8){echo "Certification";}

									   if($val_qualifications_data->type==9){echo "Diploma";}

									   if($val_qualifications_data->type==10){echo "Short Course";}?></h3> 

									   <a data-target="#editqualifications" data-toggle="modal"  href="<?php echo base_url();?>front_end/edit_qualifications?id=<?=$val_qualifications_data->qualifications_id;?>"><i class="fa fa-pencil" aria-hidden="true"></i>Edit</a>

<a href="<?php echo base_url();?>front_end/delete_qualifications?id=<?=$val_qualifications_data->qualifications_id;?>" class="link" onclick="return confirm('Are you sure?');" ><i class="fa fa-trash-o" aria-hidden="true"></i>Delete</a></br>

														<span class="newStyleCSS"><?php echo $val_qualifications_data->school_name ;?></span></br>

	                                                <span class="newStyleCSS"><?php echo $val_qualifications_data->fyear ?> <?php echo '-'.$val_qualifications_data->tyear;?></span></br>

														<span class="newStyleCSS"><?php echo $val_qualifications_data->subject; ?></span></br>

														<span class="newStyleCSS"><?php echo $val_qualifications_data->grade;?></span></br>

												<span class="newStyleCSS"><?php echo $val_qualifications_data->qualifications_details;?></span></br>
 <br/>
                                                     <div class="borderdiv">
													 </div>
													 <br/>
														<?php }?>

                                                    </div>

												</div>

                                        	</li>

                                     	</ul>

										</form>

										</br> 

										

										

										

                                    </div>

  <div <?php if($_GET['skill_data']=="skill_data"){?> style="display:block;"<?php }?> role="tabpanel" class="tab-pane fade <?php if($_GET['skill_data']=="skill_data"){?>active in<?php }?>" id="skills">

				<form name="skills_data"  method="post" action="<?php echo base_url();?>front_end/add_skillsdata" onsubmit="return skills_dataform()">	

                                    	<div class="edit-cntnts margin-bottom-20">

                                            <h3>Enter Skills</h3>

											<p style="color:#FF0000;"><?php echo $this->session->flashdata('mesage_skills');?></p>

                                        </div>

                                    	<div class="skill-section">

                                        	<ul class="skillc-contan">

											<?php

                                            //code for to get web logo			

                                            foreach($skilss_data as $val_skilss_data)

                                            {

											//get code for skill name

											$skill_name=mysql_query("select * from skills where skill_id='".$val_skilss_data->skill_id."'");

											$fetch_skilll_name=mysql_fetch_array($skill_name);

                                             ?>

 <li><a href="#" style="width: 99%;"><?php echo $fetch_skilll_name['skill_name'];?></a></li><img src="../assets/images/cancel.png" onclick="var tmp=confirm('Are you sure you want to remove this skill?'); if (tmp){window.location='<?php echo base_url();?>front_end/delete_skill?id=<?=$val_skilss_data->id;?>';}" style="cursor:pointer;"/>  

											   <?php }?>

                                            </ul>

                                            <div class="add-skill">

                                        <input type="text" class="form-control" name="job_skills" id="job_skills" placeholder="Add a new skill">

                                            </div>

                                        </div>

                                          <div class="butten-section">

                                           <input type="submit" name="add_sills" id="add_sills" value="Add Skills">

                                          </div>

										  </form>

                                    </div>

          <div <?php if($_GET['languages_for_data']=="languages_for_data"){?> style="display:block;"<?php }else {?> style="display:none;" <?php }?> role="tabpanel" class="tab-pane fade <?php if($_GET['languages_for_data']=="languages_for_data"){?> in active<?php }?>" id="languages">

         <ul class="looking-for">

                                        <li>

                                                <div class="edit-cntnts margin-bottom-20">

                                                   <h3>Select Your Languages</h3>

                                                    <span>Add up to 3 Languages</span>

					<p style="color:#FF0000;"> <?php echo $this->session->flashdata('languages_for_data');?></p>                         

													 <?php

													foreach($get_can_languages as $val_can_languages)

                                                          {?>

													<div class="dit-section">

                                                    	<h6 style="width: 35%;"><?php //code to show locations name

										$sel_query_languages=mysql_query("select * from languages where language_id='".$val_can_languages->language_id."'"); 

									    $fetch_get_languages=mysql_fetch_array($sel_query_languages);

										$languages_name=$fetch_get_languages['language_name'];

										if($val_can_languages->type==1)

										{

										$type_name="Basic";

										}

										if($val_can_languages->type==2)

										{

										$type_name="Intermediate";

										}

										if($val_can_languages->type==3)

										{

										$type_name="Fluent";

										}

										echo $languages_name.' '.' '.'<b>'.'---'.'</b>'.$type_name;?></h6>

<a data-target="#editlanguage" data-toggle="modal"  href="<?php echo base_url();?>front_end/update_languages?id=<?=$val_can_languages->language_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_language?id=<?=$val_can_languages->language_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 Languages" data-toggle="modal" data-target="#language"><i class="fa fa-plus-circle" aria-hidden="true" style="cursor:pointer"></i></a>Add Language</h5>

													

												</div>

                                        	</li>

                                        </ul>

                                    </div>

									<?php

                                            //code for to get web logo			

                                            foreach($license_data as $val_license_data)

                                            {

											$licensecheck1=$val_license_data->licensecheck1;

											$carcheck1=$val_license_data->carcheck1;

											}

											?>

											

											

                                    <div id="license" <?php if($_GET['license_data_form']=="license_data_form"){?> style="display:block;"<?php }else {?> style="display:none;" <?php }?> role="tabpanel" class="tab-pane fade <?php if($_GET['license_data_form']=="license_data_form"){?>in active<?php }?>">

<form name="license_data"  method="post" action="<?php echo base_url();?>front_end/license_data" >

                                    <ul class="looking-for">

                                        <li>

                                            <div class="edit-cntnts margin-bottom-0px">

                                            	<div class="edit-cntnts margin-bottom-20">

                                                     <h3 style="width:100%">I have a full license and am eligible to drive in the UK</h3>

                                                    <p style="color:#FF0000;"><?php echo $this->session->flashdata('license_data_form');?></p>

												</div>

                                               <div class="checkbox">

<label><input type="radio" name="licensecheck1" id="licensecheck1" value="1" <?php if($licensecheck1==1){?> checked="checked"<?php }?>>Yes</label>

<label><input type="radio" name="licensecheck1" id="licensecheck2"  <?php if($licensecheck1==2){?> checked="checked"<?php }?> value="2">No</label>

                                              </div>

                                           </div>

                                      	</li>

                                         <li>

                                            <div class="edit-cntnts margin-bottom-0px">

                                            	<div class="edit-cntnts margin-bottom-20">

                                                     <h3>I have a car</h3>

												</div>

                                               <div class="checkbox">

                                                <label><input type="radio" name="carcheck1" id="carcheck1" value="1" <?php if($carcheck1==1){?> checked="checked"<?php }?>>Yes</label>

                                                <label><input type="radio" name="carcheck1" id="carcheck2" value="2" <?php if($carcheck1==2){?> checked="checked"<?php }?>>No</label>

                                              </div>

                                           </div>

                                           <div class="butten-section">

                                           <input type="submit" name="add_license" id="add_license" value="Save License">

                                           </div>

                                      	</li>

                                   </ul>

								 

								   </form>

                                </div>

                            </div>

                        </div>

                    </div>

                    

                </div>

            </div>

        </div>

        	<!--CONTENT-AREA-->    

		

        <!--CONTENT-OUTER-->

        </div>

		

<?php $this->load->view('footer_front'); ?>