<?php    
	include_once("../view/header-footer/header.php");     
?>    
 

<?php include_once("../all-ajax/inner-header.php");  ?> 

<script type="text/javascript" src="<?php echo ROOTPATH;?>/view/js/tab/profile.js"> </script>

<div id="body">
<div class="wrapper"> 
<div id="dataRight" class="noRightBor">
    	<ul class="resList">
<li>
	<h3 class="postJob">Complete Your Profile  </h3>	
	<form method="post"  id="complete_profile" autocomplete="off" enctype="multipart/form-data">  <br>
	<div class="row postJobForm">
		<div class="col-lg-12">
			<label>What is your monthly salary(in rupees)?</label>
			<input type="text"  name="salary" Placeholder="Enter your monthly salary" value="<?php echo $row->salary;?>"   class="inputText">
		</div>
		
		<div class="col-lg-12 panel-body">
			<label>ID Proof</label>
                <ul class="innUl"> 
				 <li><?php if(in_array("PAN Card", $id_proof)){ ?><input type="checkbox"  name="idproof[]"   checked==checked value="PAN Card"/> PAN Card <?php } else {?><input type="checkbox"  name="idproof[]" value="PAN Card"> PAN Card <?php }?>
				 <?php if(in_array("Adhar Card", $id_proof)){ ?><input type="checkbox" name="idproof[]" checked==checked value="Adhar Card"/> Adhar Card <?php } else {?><input type="checkbox" name="idproof[]" value="Adhar Card">Adhar Card <?php }?>
				<?php if(in_array("Voter ID", $id_proof)){ ?><input type="checkbox"  name="idproof[]" checked==checked value="Voter ID"/>Voter ID<?php } else {?> <input type="checkbox"  name="idproof[]" value="Voter ID"> Voter ID <?php } ?>
				<?php if(in_array("Driving License", $id_proof)){ ?><input type="checkbox"  name="idproof[]" checked==checked value="Driving License"/>Driving License <?php } else {?><input type="checkbox"  name="idproof[]" value="Driving License"> Driving License <?php } ?>
				</li>				
			   </ul>
		</div>
		
		<div class="col-lg-12">
			<label>Designation e.g. (Marketing Expert)</label>
			<input type="text"  name="designation" Placeholder="Enter your designation" value="<?php echo $row->designation;?>"   class="inputText">
		</div>
		
		<div class="col-lg-12">
			<label>Worked For e.g. (Tata Motors. Ltd)</label>
			<input type="text"  name="workedfor" Placeholder="worked for e.g. (Tata Motors. Ltd)" value="<?php echo $row->workedfor;?>"   class="inputText">
		</div>
		
		<div class="col-lg-12">
			<label>Specialization e.g. (Management)</label>
			<input type="text"  name="special" Placeholder="Specialization e.g.(Management)" value="<?php echo $row->special;?>"   class="inputText">
		</div>
		
		<div class="col-xs-12 col-md-4 col-lg-6">
			<label>Year of Working e.g.(5)</label>  
			<select name="yearsofworking"  id="yearsofworking" class="inputText">
			   <option value="" <?php  if($row->yearsofworking=='') echo "selected=selected";?> >Select Year</option>
			<?php 
				for($i=0;$i<=30;$i++)
				{
			 ?>
			 <option value="<?php echo $i;?>" <?php  if($row->yearsofworking==$i) echo "selected=selected";?> ><?php echo $i;?></option>
			<?php } ?>
			</select>
		</div>
		
		<div class="col-lg-12 panel-body">
			<label>Are you comfortable with working Full Time and Part Time? </label>
			  <ul class="innUl">  
				<li>
				 <?php if($row->job_comfort=='Full Time'){ ?><input type="radio"  name="job_comfort" checked==checked value="Full Time" /> Full Time	 <?php } else { ?><input type="radio"  name="job_comfort" value="Full Time" /> Full Time <?php } ?>
				 <?php if($row->job_comfort=='Part Time'){ ?><input type="radio"  name="job_comfort" checked==checked value="Part Time"/> Part Time  <?php } else { ?><input type="radio"  name="job_comfort" value="Part Time" /> Part Time <?php } ?>
				 
				 
				</li>
			  </ul>
		</div>
		
		<div class="col-lg-12 panel-body">
			<label>Which languages do you know?</label> 
			<ul class="innUl">                 			
			   <li>
				  <?php if(in_array("Hindi", $language)){ ?><input type="checkbox"  name="language[]" checked==checked value="Hindi"/> Hindi <?php } else {?><input type="checkbox"  name="language[]" value="Hindi"> Hindi <?php } ?>
				  <?php if(in_array("English", $language)){ ?><input type="checkbox" name="language[]" checked==checked value="English"/> English <?php } else {?> <input type="checkbox" name="language[]" value="English"> English <?php } ?>
				  <?php if(in_array("Marathi", $language)){ ?><input type="checkbox"  name="language[]" checked==checked  value="Marathi"/> Marathi <?php } else {?> <input type="checkbox"  name="language[]" value="Marathi"> Marathi <?php } ?>
				  <?php if(in_array("Tamil", $language)){ ?><input type="checkbox"  name="language[]" checked==checked value="Tamil"/> Tamil <?php } else {?> <input type="checkbox"  name="language[]" value="Tamil"> Tamil <?php } ?>
				  <?php if(in_array("Telgu", $language)){ ?><input type="checkbox"  name="language[]" checked==checked value="Telgu" /> Telgu <?php } else {?> <input type="checkbox"  name="language[]" value="Telgu"> Telgu <?php } ?>
				  <?php if(in_array("Bengali", $language)){ ?><input type="checkbox" name="language[]" checked==checked value="Bengali"/> Bengali <?php } else {?> <input type="checkbox"  name="language[]" value="Bengali"> Bengali <?php } ?>
				 <?php if (in_array("Gujarati", $language)){?> <input type="checkbox"  name="language[]" checked==checked value="Gujarati"/> Gujarati <?php } else {?> <input type="checkbox"  name="language[]" value="Gujarati"> Gujarati <?php } ?>
				  <?php if(in_array("Kannada", $language)){ ?><input type="checkbox"  name="language[]" checked==checked /> Kannada <?php } else {?> <input type="checkbox"  name="language[]" value="Kannada"> Kannada <?php } ?>
				  <?php if(in_array("Punjabi", $language)){ ?><input type="checkbox"  name="language[]" checked==checked value="Punjabi"/> Punjabi <?php } else {?> <input type="checkbox"  name="language[]" value="Punjabi"> Punjabi <?php } ?>
				  <?php if(in_array("Odia", $language)){ ?><input type="checkbox" name="language[]" checked==checked value="Odia"/> Odia <?php } else {?> <input type="checkbox"  name="language[]" value="Odia"> Odia <?php } ?>
				  <?php if(in_array("Malayalam", $language)){ ?><input type="checkbox"  name="language[]" checked==checked value="Malayalam"/> Malayalam <?php } else {?> <input type="checkbox"  name="language[]" value="Malayalam"> Malayalam <?php } ?>
				  <?php if(in_array("Assamese", $language)){ ?><input type="checkbox"  name="language[]" checked==checked value="Assamese"/> Assamese <?php } else {?> <input type="checkbox"  name="language[]" value="Assamese"> Assamese <?php } ?>
			  </li>			
			</ul>
		</div>
		
		<div class="col-lg-12">
			<label>What is your highest education qualifications ? e.g. (BEIT, MBA)</label>
			<input type="text"  name="education" Placeholder="Enter your eduction e.g.(BEIT, MBA)" value="<?php echo $row->education;?>"  class="inputText">
		</div>
		
		<div class="col-lg-12 panel-body">
			<label>Do You have a passport </label>
			   <ul class="innUl">   
				<li>
				 <?php if($row->passport=='Yes'){ ?><input type="radio"  name="passport" checked==checked value="Yes"/> Yes
				 <?php } else { ?><input type="radio"  name="passport" value="Yes" /> Yes <?php } ?>
				 <?php if($row->passport=='No'){ ?><input type="radio"  name="passport" checked==checked value="Yes"/> No  <?php } else { ?><input type="radio"  name="passport" value="No" /> No <?php } ?>
				</li>
			  </ul>
		</div>		
		
		<!--<div class="col-xs-12 col-md-4 col-lg-6 comboOut">
			<label>Select cities where you wants to highlight your profile </label>   
			<input type="text"  placeholder="E.q. Nashik" id="all_city_id" name="all_city_id" value="<?php echo $_COOKIE['search_city_name'];?>"  class="inputText">  
			<ul id="ul-city-ajax">
					<?php 
					foreach($city_id as $dt)
					{
					?>
					<a href="javascript:void(0)">
						<li onclick="select_sub_locns('<?php echo $dt->name;?>',<?php echo $dt->id;?>)" ><?php echo $dt->name;?></li> 
					</a>
				<?php } ?>
			</ul> 
			<input type="hidden"   id="search_city_id_hidden" name="search_city_id_hidden" value="<?php echo $_COOKIE['search_city_id'];?>"  class="inputText">
		</div>
		<div id="city-ajax"></div>-->
		<?php
		$stmt =  $conn->prepare("select id,name from all_cities where id=:id");
		$stmt->bindValue(':id', $row->all_city_id, PDO::PARAM_INT);	
		$stmt->execute();   
		$city_details = $stmt->fetch(PDO::FETCH_OBJ); 
		$city_name=$city_details->name;					
		?>
		
		<div class="col-xs-12 col-md-4 col-lg-6 comboOut">
			<label>Select cities where you wants to highlight your profile </label>   
			<input type="text"  placeholder="E.q. Nashik" name="all_city_id" id="profile_city_search" value="<?php if($row->all_city_id!='') echo $city_name; else  echo $_COOKIE['search_city_name'];?>"  class="inputText">
			
			<ul id="city_next">
					<?php 
					$stmt =  $conn->prepare("select id,name from all_cities order by  state_code desc ");          
					$stmt->execute();   
					$city_id = $stmt->fetchAll(PDO::FETCH_OBJ);					
					foreach($city_id as $dt)
					{
					?>
					<a href="javascript:void(0)">
						<li onclick="select_city('<?php echo $dt->name;?>')" ><?php echo $dt->name;?></li> 
					</a>
				<?php } ?>
			</ul> 			
		</div>
		<div id="city-ajax"></div>
		<input type="hidden" name="city_search_cityid_hidden" id="city_search_cityid_hidden"  value="<?php echo $_COOKIE['site_city'];?>" />

		
		
		<div class="col-lg-12">
			<label>Update Resume</label>
			<input type="file"  name="upload_resume" Placeholder="Enter your eduction e.g.(BEIT, MBA)"   class="inputText" >
			<input type="hidden" name="img_name" value="<?php echo $row->upload_resume;?>" />
		</div>
		
		<div class="clear"></div>
		<div class="col-lg-12"> 
		   <ul class="innUl">   
		    <li>
			  <input type="submit" name="submit" value="Complete Profile" class="btn applyButt">
			  <a href="<?php echo $download_file;?>" target="_blank" download><h3 class="postJob">Download Resume</h3></a>
		    </li>
		   </ul>
		</div> 
		
		
	</div>
	</form>
	<div class="clear"></div>	
</li> 
        </ul>
    </div>
<div class="clear"></div>
</div>
<br>

</div>

<?php include_once("../view/header-footer/footer.php");  