<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<?php include("header-js.php");?>	
<!-----hrm-------------->		
<link rel="stylesheet" href="css/style.css" />
<!-- Responsive -->
<link rel="stylesheet" href="css/responsive.css" />
<script src="js/jquery-ui.js"></script>
<link rel="stylesheet" href="css/jquery-ui.css" />
<!-----hrm-------------->
        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
</head>
   <body class="skin-blue"> <?php 
	include("header.php");
?>


                    <!-- Small boxes (Stat box) -->
                    

                    <!-- Main row -->
                    <div class="row">
					
					
                    
					<div id="wrapper">
		<div class="header">
			<?php 
		
			$employ_id=$_GET['employ_id'];
			
//$base_url='http://localhost/hrm/';
//$base_url='http://www.aadhocc.com/demo/AdminLTE-master/';
			?><!-- /menu-nav -->
		</div><!-- /header -->

		<div class="content">
			<div class="report-tab">
				<div class="profile-view-tab01">
					<div class="profile-photo" style="position:relative;">
					
					</div>
					<form action="<?php echo $base_url; ?>profile-picture.php" method="post" id="changeProfilePicture" onSubmit="return false;">
						<input type="file" class="new-profile-image" name="profile-image" style="display:none;"/>
						<input type="hidden" class="e_id" name="e_id" value="<?php echo $employ_id; ?>"/>
					</form>
					<?php
					if($_SESSION['admin_id'] == '1'){
					?>
					<div class="submit" id="editbtn" align="right" > 
						<!--<a href="employee_editform.php?employ_id=1"><button id="registerButton" type="button" class="color-button3"><translate>Add Details</translate></button></a>-->
					</div>
					<?php
					}
					?>
					<div class="profile-basic">
						<!--<img src="images/add_small.png" class="editBasicProfile"/>-->
						<p class="profile-font-03" ><translate id="name"></translate></p>
						<input type="hidden" name="fname" class="fname" />
						<input type="hidden" name="mname" class="mname" />
						<input type="hidden" name="lname" class="lname" />
						<input type="hidden" name="e_id" id="e_id" />
						<input type="hidden" name="branchhidden" id="branchhidden"  />
						<input type="hidden" name="employ_id" id="employ_id" value="<?=$employ_id?>"  />
						<p class="profile-font-04" ><translate id="e_post"></translate></p>
						<p class="profile-font-05" ><translate id="address"></translate></p>
						<p class="profile-font-05"><span><translate  id="state1"></translate></span></p>
						<p class="profile-font-05"><span ><translate id="country2"></translate></span></p>
						<p class="profile-font-05" ><translate id="zip"></translate></p>
						<p class="profile-font-06"><span>Gender: <strong ><translate id="gender"></translate></strong></span>  <span >DOB: <strong id="dob"></strong></span></p>
						<p class="profile-font-06">Username: <strong id="username"></strong> , Password: <strong id="password"></strong></p>
						<p class="profile-font-07" id="email"></p>
						<p class="profile-font-08"><strong id="mobile"></strong><strong id="phone"></strong></p>
						<p class="profile-font-09"><translate>Download</translate></p>
						<div class="profile-download1">
							<span id="images"><a href="#" target="_blank" class="pro-icon-01" id=""><translate>Photo</translate></a></span> 
							<span id="resumelists"></span> 
							<span id="id_proofs"><a href="#" target="_blank" class="pro-icon-03"><translate>Address Proof</translate></a></span>						</div>
						<div><button class="color-button2 changepassword" type="button"><translate>Change Password</translate></button></div>
						<!--</p>-->
					</div><!-- /profile-basic -->
					<div class="clear-float"></div>
				</div><!-- /profile-view-tab01 -->
				
				
				<form id="basic-details">
					<div class="profile-view-tab02">
						<h3><translate>Organization Details</translate>
						<?php
						if($_SESSION['admin_id'] == '1'){
						?>
						<button class="color-button2 changebasicdetails" type="button" style="float:right; background:#D80B5D; padding:2px 5px; font-size:10px; text-transform:uppercase;"> <strong>+</strong> Edit</button>
						<?php
						}
						?>
						</h3>
						<div class="profile-tab2-displays work-experiance1 td-align-tab1">
							
							
						
							<table width="100%" border="0" cellspacing="5" cellpadding="0">
  								<tr>
   								  <td width="17%" height="20" align="left" valign="top"><translate>Branch</translate><input type="hidden" name="branchhidden" id="branchhidden" /></td>
    								<td width="83%" height="20" align="left" valign="top">: <strong >
   								  <translate id="branch"></translate> </strong></td>
  								</tr>
  						<!--		<tr>
    								<td align="left" valign="top"><translate>Device Id </translate></td>
    								<td align="left" valign="top">: <strong > <translate id="deviceid"></translate> </strong></td>
  								</tr>-->
  								<tr>
   								  <td height="20" align="left" valign="top"><translate>Department</translate> <input type="hidden" name="depthidden" id="depthidden" /></td>
    								<td height="20" align="left" valign="top">: <strong>
   								  <translate id="dept"></translate> </strong></td>
  								</tr>
   								<tr>
   								  <td height="20" align="left" valign="top"><translate>Designation</translate><input type="hidden" name="desighidden" id="desighidden" /></td>
    								<td height="20" align="left" valign="top">: <strong>
   								  <translate id="desig"></translate></strong></td>
  								</tr>
  								<tr>
   								  <td height="20" align="left" valign="top"><translate>Immediate Supervisor</translate><input type="hidden" name="immsuperhidden" id="immsuperhidden" /></td>
    								<td height="20" align="left" valign="top">: <strong>
   								  <translate id="immsuper"></translate></strong></td>
  								</tr>
								<tr>
   								  <td height="20" align="left" valign="top"><translate>Branch Admin</translate><input type="hidden" name="branch_admin" id="branch_admin" /></td>
    								<td height="20" align="left" valign="top">: <strong>
   								  <translate id="branchadmin"></translate></strong></td>
  								</tr>
						  </table>
						</div><!-- /profile-tab2-display -->
						<div class="clear-float"></div>
					</div>
				</form>
				
				<div class="profile-view-tab02">
					<h3><translate>Personal Details</translate>
					<?php
					if($_SESSION['admin_id'] == '1'){
					?>
					<button class="color-button2 addEmployeeDetails" type="button" style="float:right; background:#D80B5D; padding:2px 5px; font-size:10px; text-transform:uppercase;"> <strong>+</strong> Edit</button>
					<?php
					}
					?>
					</h3>
					<div class="profile-tab2-display2">
						<table width="100%" border="0" cellspacing="5" cellpadding="5">
							<tr>
   							  <td width="38%" height="20" align="left" valign="top"><translate>DOB</translate></td>
    							<td width="62%" height="20" align="left" valign="top">: <strong>
   							  <translate id="dob1"></translate> </strong></td>
  							</tr>
							<tr>
   							  <td height="20" align="left" valign="top"><translate>Email</translate></td>
    							<td height="20" align="left" valign="top">: <strong id="eml"></strong></td>
  							</tr>
							
  							<tr>
   							  <td height="20"  align="left" valign="top"><translate>Employee Id</translate> </td>
    							<td height="20"  align="left" valign="top">: <strong >
   							  <translate id="emp_id"></translate> </strong></td>
  							</tr>
  							<tr>
   							  <td height="20" align="left" valign="top"><translate>Date of Join</translate></td>
    						  <td height="20" align="left" valign="top">: <strong >
   							  <translate id="dt_join"></translate> </strong></td>
  							</tr>
  							<tr>
   							  <td height="20" align="left" valign="top"><translate>Blood Group</translate> </td>
    							<td height="20" align="left" valign="top">: <strong>
   							  <translate id="blood_grp"></translate> </strong></td>
  							</tr>
  						<!--	<tr>
    							<td align="left" valign="top"><p>PF a/c number </p></td>
    							<td align="left" valign="top">: <strong id="pf_ac_no"> </strong></td>
  							</tr>
  							<tr>
    							<td align="left" valign="top"><p>PF nominee name </p></td>
    							<td align="left" valign="top">: <strong id="pf_nominee"> </strong></td>
  							</tr>-->
  							<tr>
   							  <td height="20" align="left" valign="top"><p><translate>ESI details </translate></p></td>
    							<td height="20" align="left" valign="top">: <strong> 
   							  <translate id="esi_details"></translate></strong></td>
  							</tr>
					  </table>
					</div><!-- /profile-tab2-display -->

					<div class="profile-tab2-display2">
  						<table width="100%" border="0" cellspacing="5" cellpadding="5">
							<tr>
   							  <td width="50%" height="20" align="left" valign="top"><translate>Gender </translate></td>
    							<td width="62%" height="20" align="left" valign="top">: <strong>
   							  <translate id="gen"></translate> </strong></td>
  							</tr>
							<tr>
   							  <td width="36" height="20" align="left" valign="top"><translate>Phone</translate></td>
    							<td height="20"  align="left" valign="top">: <strong >
   							  <translate id="phn"></translate> </strong></td>
  							</tr>
    						<!--<tr>
   							  <td width="36" height="20" align="left" valign="top"><translate>Previous Date of Join</translate></td>
      							<td height="20" align="left" valign="top">: <strong > 
   							  <translate id="history_dt_join"></translate></strong></td>
    						</tr>
							<tr>
   							  <td height="20" align="left" valign="top"><translate>Date of relieving</translate></td>
								<td height="20" align="left" valign="top">: <strong >
							  <translate id="dt_rel"></translate> </strong></td>
    						</tr>
    						<tr>
   							  <td height="20"  align="left" valign="top"><translate>Last designation held</translate></td>
      							<td height="20" align="left" valign="top">: <strong>
   							  <translate id="last_desig"></translate> </strong></td>
    						</tr>
    						<tr>
   							  <td height="20"  align="left" valign="top"><translate>Employee number</translate></td>
      							<td height="20" align="left" valign="top">: <strong >
   							  <translate id="emp_num"></translate> </strong></td>
    						</tr>-->
    						<!--<tr>
      							<td height="36" align="left" valign="top"><p>Date of previous pay revision</p></td>
								<td align="left" valign="top">: <strong id="dt_prev_pay_revision"> </strong></td>
    						</tr>
    						<tr>
      							<td height="36" align="left" valign="top"><p>Date of pay to be revised</p></td>
      							<td align="left" valign="top">: <strong id="dt_pay_revised"> </strong></td>
    						</tr>
    						<tr>
      							<td height="36" align="left" valign="top"><p>Completion of Probation</p></td>
      							<td align="left" valign="top">: <strong id="comp_probation"> </strong></td>
    						</tr>-->
					  </table>
					</div><!-- /profile-tab2-display -->
					<div class="clear-float"></div>
				</div>
				
				
				
				<form id="work-experiance">
					<div class="profile-view-tab02">
						<h3><translate>Work Experience</translate><!--<img src="images/add_small.png" class="addNewWorkExperiance"/>--></h3>
						<div class="profile-tab2-display3">
							
							
							<table width="960" id="view_wke" class="cell-border-tab-1">
								<tbody>
									<tr>
									<td width="108" class="td-bg-style-3"><translate>Company Name:</translate></td>
									<td width="96" class="td-bg-style-3"><translate>Address:</translate></td>
									<td width="70" class="td-bg-style-3"><translate>Contact No:</translate></td>
									<td width="91"  class="td-bg-style-3"><translate>Email:</translate> </td>
									<td width="80" class="td-bg-style-3"><translate>Position: </translate></td>
									<td width="69" class="td-bg-style-3"><translate>Salary:</translate> </td>
									<td width="68" class="td-bg-style-3"><translate>From:</translate> </td>
									<td width="69" class="td-bg-style-3"><translate>To:</translate> </td>
									<td width="105"  class="td-bg-style-3"><translate>Reason To Leave :</translate> </td>
									</tr>
								</tbody>
						  </table>
						</div><!-- /profile-tab2-display -->
						<!-- /profile-tab2-display -->
						<!-- /profile-tab2-display -->
						<div class="clear-float"></div>
					</div>
				</form>
				<div class="profile-view-tab02">
					<h3><translate>Education</translate></h3>
					<div class="profile-tab2-display" style="width:auto;">
												
						<table width="960" id="view_edu" class="cell-border-tab-1">
							<tbody>
								<tr>
								<td width="133" class="td-bg-style-2"><translate>Qualification:</translate></td>
								<td width="153" class="td-bg-style-2"><translate>Specialization:</translate></td>
								<td width="221" class="td-bg-style-2"><translate>University:</translate></td>
								<td width="62" class="td-bg-style-2"><translate>Year:</translate> </td>
								<td width="83" class="td-bg-style-2"><translate>Percentage:</translate> </td>
								</tr>
						   </tbody>
				      </table>
					</div><!-- /profile-tab2-display -->
					
					<div class="clear-float"></div>
				</div>
				
				<div class="profile-view-tab02" id="lan_knwn">
				<h3><translate>Languages Known</h3>
				<div class="profile-tab2-display" style="width:420px">
  						<table width="100%" border="0" cellpadding="5" cellspacing="5" id="lang_view">
  							<tr>
   							  <td width="17%" height="20" align="left" valign="top"><translate>Language</translate></td>
    							<td width="12%" height="20" align="left" valign="top"><translate>Read</translate></td>
    							<td width="12%" height="20" align="left" valign="top"><translate>Write</translate></td>
    							<td width="36%" height="20" align="left" valign="top"><translate>Speak</translate></td>
  							</tr>
  							
  							<tr class="ttrr">
    							<td height="20" align="left" valign="top">&nbsp;</td>
    							<td height="20" align="left" valign="top">&nbsp;</td>
    							<td height="20" align="left" valign="top">&nbsp;</td>
    							<td height="20" align="left" valign="top">&nbsp;</td>
  							</tr>
				  </table>
				  </div><!-- /profile-tab2-display -->
					<div class="clear-float"></div>
				</div>
				
				<div class="profile-view-tab02">
					<h3><translate>Reference</translate>
					<?php
					if($_SESSION['admin_id'] == '1'){
					?>
					<img src="images/edit.png" class="editReferance"  border="0" />
					<?php
					}
					?>
					</h3>
					<div class="profile-tab2-display work-referances">
						<table width="100%" border="0" cellspacing="5" cellpadding="0">
  							<tr>
   							  <td width="38%" height="20" align="left" valign="top" ><translate>Name</translate> </td>
    							<td width="62%" height="20" align="left" valign="top">: <strong id="rname"></strong></td>
  							</tr>
  							<tr>
   							  <td height="20" align="left" valign="top"><translate>ContactNo</translate></td>
    							<td height="20" align="left" valign="top">: <strong id="contact"> </strong></td>
  							</tr>
					  </table>
					</div><!-- /profile-tab2-display -->

					<div class="profile-tab2-display work-referances">
  						<table width="100%" border="0" cellspacing="5" cellpadding="0">
    						<tr>
   							  <td width="38%" height="20" align="left" valign="top"><translate>Relation</translate></td>
      							<td width="62%" height="20" align="left" valign="top">: <strong id="relation"></strong></td>
    						</tr>
    						<tr>
   							  <td height="20" align="left" valign="top"><translate>Location</translate></td>
      							<td height="20" align="left" valign="top">: <strong id="loc"></strong></td>
    						</tr>
					  </table>
					</div><!-- /profile-tab2-display -->

					<div class="clear-float"></div>
				</div><!-- /profile-view-tab02 -->
				
				<div class="profile-view-tab02">
  					<?php /*?>	<h3><translate>Salary Details</translate></h3>
  				<div class="profile-tab2-display">
    					<table width="100%" border="0" cellspacing="5" cellpadding="0" class="benefits">
      						<tr>
        						<td height="20" colspan="3" align="left" valign="top"><strong>
       						  <translate>Benefits</translate></strong></td>
      						</tr>
      						<tr>
       						  <td width="60%" height="20" align="left" valign="top"><translate>Basic Pay</translate> </td>
        						<td width="40%" height="20" align="left" valign="top">:<span class="basicpay"></span></td>
		  						<td width="4%" height="20" align="left" valign="top">
									<?php
										if($_SESSION['depart_id']==3)
										{
											?><img src="../images/edit.png" style="cursor:pointer" class="editBasicPay" width="16" height="16" /><?php
										}
										else
										{
											?><img src="../images/edit.png" style="cursor:pointer" class="editedBasicPay" width="16" height="16" /><?php
										}
									?>      							</td>
      						</tr>
   					  </table>
  					</div><?php */?>
  					<!-- /profile-tab2-display -->
  			<?php /*?>		<div class="profile-tab2-display">
    					<table width="100%" border="0" cellspacing="5" cellpadding="0" class="deductions">
      						<tr>
        						<td width="60%" height="20" align="left" valign="top"><strong>
       						  <translate>Deductions</translate></strong> </td>
        						<td width="40%" height="20" align="left" valign="top"></td>
        						<td width="60%" height="20" align="left" valign="top"></td>
      						</tr>
   					  </table>
  					</div><?php */?>
  					<!-- /profile-tab2-display -->
  					<!--<div class="profile-tab2-display">
    					<table width="100%" border="0" cellspacing="5" cellpadding="0" class="contribution">
      						<tr>
        						<td align="left" colspan="3" valign="top"><strong>Employer's Contribution</strong> </td>
      						</tr>
    					</table>
  					</div>-->
  					<div class="clear-float"></div>
				</div>
				<div class="profile-view-tab02">
  					<h3><translate>Leave Details</translate></h3>
  					<div class="profile-tab2-display"  style="width:310px;">
    					<table width="100%" border="0" cellspacing="5" cellpadding="0" class="leaves"></table>
					</div>
  					<!-- /profile-tab2-display -->
  					<!-- /profile-tab2-display -->
  					<div class="clear-float"></div>
				</div>

				<div class="profile-view-tab02">
					<h3><translate>Bank Details</translate> 
					<?php
					if($_SESSION['admin_id'] == '1'){
					?>
					<img src="images/edit.png" class="edit-bankDetails"/>
					<?php
					}
					?>
					</h3> 
					
					<div class="profile-tab2-display">
						<table width="100%" border="0" cellspacing="5" cellpadding="0">
  							<tr>
   							  <td width="38%" height="20" align="left" valign="top"><translate>Account Name</translate> </td>
    							<td width="62%" height="20" align="left" valign="top">: <strong id="accountname"></strong></td>
  							</tr>
  							<tr>
   							  <td height="20" align="left" valign="top"><p><translate>Account No </translate></p></td>
    							<td height="20" align="left" valign="top">: <strong id="accountno"> </strong></td>
  							</tr>
					  </table>
					</div><!-- /profile-tab2-display -->

					<div class="profile-tab2-display">
  						<table width="100%" border="0" cellspacing="5" cellpadding="0">
    						<tr>
   							  <td width="38%" height="20" align="left" valign="top"><translate>Bank Name</translate></td>
      							<td width="62%" height="20" align="left" valign="top">: <strong id="bname"> </strong></td>
    						</tr>
    						<tr>
   							  <td height="20" align="left" valign="top"><p><translate>Bank Address</translate></p></td>
      							<td height="20" align="left" valign="top">: <strong id="baddress"> </strong></td>
    						</tr>
					  </table>
					</div><!-- /profile-tab2-display -->
					<div class="profile-tab2-display">
  						<table width="100%" border="0" cellspacing="5" cellpadding="0">
    						<tr>
   							  <td width="38%" height="20" align="left" valign="top"><translate>IFSC Code</translate></td>
      							<td width="62%" height="20" align="left" valign="top">: <strong id="bankcode"> </strong></td>
    						</tr>   
					  </table>
					</div>
					<div class="clear-float"></div>
				</div>

				<div class="clear-float"></div>
				
	<?php 	
			$desigsss = mysql_query("SELECT * FROM employee where e_id='$_GET[employ_id]' ");
    		$desigsss = mysql_fetch_array($desigsss);
			
			//$des_country = mysql_query("SELECT * FROM country where country_id='$desigsss[\'pass_country\']' ");
			//$des_country_val = mysql_fetch_array($des_country);
			//echo "<br />Country Name is : ".$des_country_val['country_name'];
			
			$des_country = mysql_query("SELECT * FROM country where country_id='".$desigsss['pass_country']."' ");
			$des_country_val = mysql_fetch_array($des_country);
			
			$sal_structs = mysql_query("SELECT * FROM salary_structure_employee where employee_id='$_GET[employ_id]' ");
    		$sal_structs = mysql_fetch_array($sal_structs);
			
			$pass_docs= mysql_query("SELECT e_id,passport_doc FROM passport_documents where e_id='$_GET[employ_id]' order by id desc ");
    		$pass_docs = mysql_fetch_array($pass_docs);	
			
			$visas_docs= mysql_query("SELECT e_id,visa_docs FROM visa_doc where e_id='$_GET[employ_id]' order by id desc ");
    		$visas_docs = mysql_fetch_array($visas_docs);	
			
	?>		
	
		
				<div class="profile-view-tab02">
					<h3><translate>Passport Details</translate></h3> 
					
					<div class="profile-tab2-display">
						<table width="110%" border="0" cellspacing="5" cellpadding="0">
  							<tr>
   							  <td width="50%" height="20" align="left" valign="top"><translate>Passport Number</translate> </td>
    							<td width="50%" height="20" align="left" valign="top">: <strong id="passnums"><?php echo $desigsss['pass_no'];?></strong></td>
  							</tr>
  							<tr>
   							  <td height="20" align="left" valign="top"><p><translate>Passport Issuing country</translate> </p></td>
    							<td height="20" align="left" valign="top">: <strong id="pasisucntry"> <?php echo $des_country_val['country_name'];?></strong></td>
  							</tr>
					  </table>
					</div><!-- /profile-tab2-display -->

					<div class="profile-tab2-display">
  						<table width="110%" border="0" cellspacing="5" cellpadding="0">
    						<tr>
   							  <td width="50%" height="20" align="left" valign="top"><translate>Passport Issue Date</translate></td>
      							<td width="50%" height="20" align="left" valign="top">: <strong id="pasisudat"> <?php if($desigsss['pass_issue_dat']!=''){ echo date("d-m-Y", strtotime($desigsss['pass_issue_dat']));}?></strong></td>
    						</tr>
    						<tr>
   							  <td height="20" align="left" valign="top"><p><translate>Passport Expiry date</translate></p></td>
      							<td height="20" align="left" valign="top">: <strong id="pasexpdat"> 
								<?php //echo $desigsss['pass_exp_dat'];?>
								<?php if($desigsss['pass_exp_dat']!=''){ echo date("d-m-Y", strtotime($desigsss['pass_exp_dat'])); }?>
								</strong></td>
    						</tr>
					  </table>
					</div><!-- /profile-tab2-display -->
					<div class="profile-tab2-display">
  						<table width="110%" border="0" cellspacing="5" cellpadding="0">
    						<tr>
   							  <td width="36%" height="20" align="left" valign="top"><translate>Nationality</translate></td>
      							<td width="64%" height="20" align="left" valign="top">: <strong id="natn"><?php echo $desigsss['nation'];?> </strong></td>
    						</tr>  
							<?php 
							
							 $fileTopass ='upload/passport/'.$pass_docs['passport_doc'];
			
							?>
							
							    						<tr>
      							<td height="20" align="left" valign="top"><p><translate>Passport Doc</translate></p></td>
      							<td height="20" align="left" valign="top">: <strong id="baddressgg">
	<?php if(file_exists($fileTopass)){?>							
<a href="<?php echo $base_url;?>mookadanadmin/download_passport.php?employ_id=<?php echo $_GET['employ_id'];?>" style="color:#990000" >
	<translate>Download Passport</translate>
	</a>
	<?php }?>
	</strong></td>
    						</tr> 
					  </table>
					</div>
					<div class="clear-float"></div>
				</div>
				<div class="profile-view-tab02">
				<!--	<h3> <translate>Visa Details</translate> </h3> -->
					
					<!--<div class="profile-tab2-display">
						<table width="110%" border="0" cellspacing="5" cellpadding="0">
  							<tr>
   							  <td width="50%" height="20" align="left" valign="top"><translate>Visa Type</translate> </td>
    							<td width="50%" height="20" align="left" valign="top">: <strong id="accountname2"><?php echo $desigsss['vsa_type'];?> </strong></td>
  							</tr>
  							<tr>
   							  <td height="20" align="left" valign="top"><p><translate>Place of issue</translate> </p></td>
    							<td height="20" align="left" valign="top">: <strong id="accountno3"><?php echo $desigsss['vsa_isue_place'];?> </strong></td>
  							</tr>
					  </table>
					</div>-->

					<!--<div class="profile-tab2-display">
  						<table width="110%" border="0" cellspacing="5" cellpadding="0">
    						<tr>
   							  <td width="50%" height="20" align="left" valign="top"><translate>UID No</translate></td>
      							<td width="50%" height="20" align="left" valign="top">: <strong id="bname6"> <?php echo $desigsss['uid_no'];?></strong></td>
    						</tr>
    						<tr>
   							  <td height="20" align="left" valign="top"><p><translate>File Number</translate></p></td>
      							<td height="20" align="left" valign="top">: <strong id="baddress8"><?php echo $desigsss['file_num'];?> </strong></td>
    						</tr>
					  </table>
					</div>-->
					<!--<div class="profile-tab2-display">
  						<table width="110%" border="0" cellspacing="5" cellpadding="0">
    						<tr>
   							  <td width="50%" height="20" align="left" valign="top"><translate>Passport Number</translate></td>
      							<td width="50%" height="20" align="left" valign="top">: <strong id="bankcodehh"><?php echo $desigsss['vsa_pass_num'];?> </strong></td>
    						</tr>  
							    						<tr>
      							<td height="20" align="left" valign="top"><p><translate>Profession</translate></p></td>
      							<td height="20" align="left" valign="top">: <strong id="baddressjj"> <?php echo $desigsss['profesion'];?></strong></td>
    						</tr> 
					  </table>
					</div>-->
					
					<!--<div class="profile-tab2-display">
  						<table width="110%" border="0" cellspacing="5" cellpadding="0">
    						<tr>
   							  <td width="50%" height="20" align="left" valign="top"><translate>Sponsor</translate></td>
      							<td width="50%" height="20" align="left" valign="top">: <strong id="bankcodekk"><?php echo $desigsss['sponsor'];?> </strong></td>
    						</tr>  
							    						<tr>
      							<td height="20" align="left" valign="top"><p><translate>Visa Issue date</translate></p></td>
      							<td height="20" align="left" valign="top">: <strong id="baddressbb">
								<?php //echo $desigsss['vsa_isue_dat'];?>  
								<?php if($desigsss['vsa_isue_dat']!=''){ echo date("d-m-Y", strtotime($desigsss['vsa_isue_dat']));} ?>
								</strong></td>
    						</tr> 
  						</table>
					</div>-->
					<!--<div class="profile-tab2-display">
  						<table width="100%" border="0" cellspacing="5" cellpadding="0">
    						<tr>
   							  <td width="50%" height="20" align="left" valign="top"><translate>Visa Expiry Date</translate></td>
      							<td width="50%" height="20" align="left" valign="top">: <strong id="bankcodeww">
								<?php //echo $desigsss['vsa_exp_dat'];
								
								
								?>  
								<?php if($desigsss['vsa_exp_dat']!=''){ echo date("d-m-Y", strtotime($desigsss['vsa_exp_dat']));} ?>
								</strong></td>
    						</tr>
							
								<?php 
							
						 $fileTovisa ='upload/visa/'.$visas_docs['visa_docs'];
			
							?>  
							    						<tr>
      							<td height="20" align="left" valign="top"><p><translate>Visa Doc</translate></p></td>
      							<td height="20" align="left" valign="top">: <strong id="baddressqq"> 	
	<?php if(file_exists($fileTovisa)){?>										
<a href="<?php echo $base_url;?>mookadanadmin/download_visas.php?employ_id=<?php echo $_GET['employ_id'];?>" style="color:#990000">
	<translate>Download Visa</translate>
	</a>
	<?php } ?>
	</strong></td>
    						</tr> 
  						</table>
					</div>-->
					
					<div class="clear-float"></div>
				</div>
				<!--<div class="profile-view-tab02">
					<h3><translate>Emirates Details</translate></h3> 
					<div class="profile-tab2-display">
						<table width="110%" border="0" cellspacing="5" cellpadding="0">
  							<tr>
   							  <td width="50%" height="20" align="left" valign="top"><translate>Id Number</translate> </td>
    							<td width="50%" height="20" align="left" valign="top">: <strong id="accountname2"><?php echo $desigsss['emirates_id_number'];?> </strong></td>
  							</tr>
  							<tr>
   							  <td height="20" align="left" valign="top"><p><translate>Card Number</translate> </p></td>
    							<td height="20" align="left" valign="top">: <strong id="accountno3"><?php echo $desigsss['emirates_card_number'];?> </strong></td>
  							</tr>
					  </table>
					</div>

					<div class="profile-tab2-display">
  						<table width="110%" border="0" cellspacing="5" cellpadding="0">
    						<tr>
   							  <td width="50%" height="20" align="left" valign="top"><translate>Expiry Date</translate></td>
      			<td width="50%" height="20" align="left" valign="top">: <strong id="bname6"> <?php if($desigsss['emirates_expiry_date']!=''){ echo date("d-m-Y", strtotime($desigsss['emirates_expiry_date']));}?></strong></td>
    						</tr>
					  </table>
					</div>
					<div class="clear-float"></div>
				</div>-->
				<!--<div class="profile-view-tab02">
					<h3><translate>Labour Card Details</translate></h3> 
					<div class="profile-tab2-display">
						<table width="110%" border="0" cellspacing="5" cellpadding="0">
  							<tr>
   							  <td width="50%" height="20" align="left" valign="top"><translate>Id Number</translate> </td>
    							<td width="50%" height="20" align="left" valign="top">: <strong id="accountname2"><?php echo $desigsss['labour_card_number'];?> </strong></td>
  							</tr>
  							<tr>
   							  <td height="20" align="left" valign="top"><p><translate>Issuing Authority</translate> </p></td>
    							<td height="20" align="left" valign="top">: <strong id="accountno3"><?php echo $desigsss['labour_card_issuing_authority'];?> </strong></td>
  							</tr>
					  </table>
					</div>

					<div class="profile-tab2-display">
  						<table width="110%" border="0" cellspacing="5" cellpadding="0">
    						<tr>
   							  <td width="50%" height="20" align="left" valign="top"><translate>Zone</translate></td>
      							<td width="50%" height="20" align="left" valign="top">: <strong id="bname6"> <?php echo $desigsss['labour_card_zone'];?></strong></td>
    						</tr>
    						<tr>
   							  <td height="20" align="left" valign="top"><p><translate>Expiry Date</translate></p></td>
      							<td height="20" align="left" valign="top">: <strong id="baddress8">
								<?php if($desigsss['labour_card_expiry_date']!=''){ echo date("d-m-Y", strtotime($desigsss['labour_card_expiry_date']));}?> 
								</strong></td>
    						</tr>
					  </table>
					</div>
					<div class="clear-float"></div>
				</div>-->
			</div><!-- /report-tab -->

			<div class="clear-float"></div>
		</div><!-- /content -->
		<div id="busy">Loading...</div>
		<div class="footer">
			<strong>© add-HRM</strong><br />
			<span>Developed by <a href="http://www.aadhocc.com" target="_blank">Aadhocc</a></span>		</div><!-- /footer -->
	</div>
                    </div><!-- /.row (main row) -->

                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->

<div id="spinner">
    <img src="images/spinner.gif" alt="Loading..."/></div>



<input type="hidden" name="chng_val" id="chng_val" value="">
<input type="hidden" name="salstruct" id="salstruct" value="<?php echo $sal_structs['employee_id'];?>">


        <!-- add new calendar event modal -->
<script>
var userid = <?php echo $_SESSION['admin_id']; ?>;
<?php $userdetails = $db->fetchQuery("SELECT * FROM file where e_id='$userid'"); ?>
var userimage = "<?php echo $userdetails[0]['photo']; ?>";
</script>	
 
	
        <!-- jQuery 2.0.2 -->
               <?php 
	include("footer-js.php");
?>
	
		
		<!--------------scripts for profile view-------------->
<script>
$(function(){



	$('.my_date').live('click',function(){
		 $(this).datepicker({dateFormat:"dd-mm-yy"}).focus();	
	});
});

</script>

<!--<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.min.js"></script>-->


<!-- Responsive -->
<script language="javascript" src="js/css3-mediaqueries.js" type="text/javascript"></script>


<script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script>

<!--<script type="text/javascript" src="js/showpath.js" language="javascript"></script>-->



<script type="text/javascript" src="js/insert.js"></script>
<script type="text/javascript" src="js/manage-employee-profile.js"></script>
<script src="http://jcrop-cdn.tapmodo.com/v0.9.12/js/jquery.Jcrop.js"></script>

<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jquery.jrac.js"></script>

<script src="js/jquery.form.js"></script>
<script src="js/changeProfilPicture.js"></script>
<script type="text/javascript" src="js/jquery.jrac.js"></script>
<script type="text/javascript" src="js/jquery.fileupload.js"></script>
<script type="text/javascript" src="js/jquery.iframe-transport.js"></script>

<?php /*?><script type="text/javascript">
viewEmployee();	
</script><?php */?>

	<!--------------scripts for employee list-------------->
    </body>
</html>
