 <!--HEADER-SECTION-->
 <?php $this->load->view('header_frontinner');
  $this->load->view('security_front');
//code to show teh data
foreach($profile as $val_profile)
{
$cv_file=$val_profile->cv_file;
$cover_info=$val_profile->cover_info;
}
 ?>
	<div class="innercv-section">
                	<div class="container">
					<div class="section-welcome nav-welcome" style="margin-bottom:0px">
                     <ol class="breadcrumb">
      <li><a href="<?php echo base_url();?>front_end/candidate_dashboard?looking_for_data=looking_for_data">Dashboard</a></li>
       <li><a href="<?php echo base_url();?>front_end/your_cv">Your CV</a></li>
      </ol>
       <a class="menubtn" href="#"><i class="fa fa-bars"></i></a>
                 </div>
                    	<div class="row">
                        	<div class="col-md-6 centdat mobile-space">
                                <div class="lift-inner-section">
                                	<h3>Your CV</h3>
                                </div>
<form name="upload_cv" id="upload_cv" action="<?php echo base_url();?>front_end/upload_cv" method="post" enctype="multipart/form-data" onsubmit="return Checkfiles()">
 <input type="hidden" name="cv_file" id="cv_file" value="<?php echo $cv_file ;?>"/>
 <p style="color:#FF0000;"> <?php echo $this->session->flashdata('mesage_file_upoad');?></p>
							    <div class="uplod-section">
                                	<a href="#" id="select_logo">
                                        <i class="fa fa-upload" aria-hidden="true"></i>
                                        <span>Upload Your CV</span>
                                    </a>
									<input type="file" id="image" name="image"/>
                                </div>
                                <ul class="drop-cv">
									<?php
									if($cv_file !='')
									{?>
										   <?php }?>
                                	<!--<li><a class="drop-section1" href="#"></a></li>
                                    <li><a class="drop-section2" href="#"></a></li>
                                    <li><a class="drop-section3" href="#"></a></li>
                                    <li><a class="drop-section4" href="#"></a></li>-->
                                    <p>Suitable files are .doc, .docx, .pdf, .rtf and .txt. Files should be no larger than 1MB. </p></br></br>
									<?php
									if($cv_file =='')
									{?>
									<input type="submit" name="uploadcv" id="uploadcv" value="Upload CV">
                                <?php }
								else
								{?>
								<input type="submit" name="uploadcv" id="uploadcv" value="Update CV">
									<input type="button" style="outline: none;" onclick="window.open('<?php echo base_url();?>front_end/download_cv?document=<?php echo $cv_file ;?>')" value="Download CV">
								<?php }?>
								</ul>
								</form>
                            </div>
                             <form name="upload_coverlateer" id="upload_coverlateer" action="<?php echo base_url();?>front_end/upload_cover_latter" method="post" enctype="multipart/form-data">
                            <div class="col-md-6 centdat">
                                <div class="lift-inner-section">
                                	<h3>Your Cover Letter</h3>
                                </div>
                            	 <p style="color:#FF0000;"> <?php echo $this->session->flashdata('mesage_cover_latter');?></p>
                                	<textarea name="cover_information" id="cover_information" class="ckeditor" ><?php echo $cover_info ?></textarea>
                                <div class="save-butten-section">
								<?php
								if($cover_info =='')
								{
								?>
                                <input type="submit" name="cover_latter" id="cover_latter" value="Save Changes">
                                <?php }
								else
								{
								?>
								<input type="submit" name="cover_latter" id="cover_latter" value="Edit Cover Letter">
								<?php }
								?>
								</div>
                            </div>
							</form>
                         </div>
                    </div>
                </div>
	</br>
	</br>


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