<?php
$id=$_SESSION["LOGIN_EMPLOYEEID"] ;	
$data_list_personal_info=$obj->Details_By_Cond('_pf_emp_personal_info',"_id='".$id."'");


// For Header Information
 $branch_id = isset($_SESSION['LOGIN_BRANCH']) ? $_SESSION['LOGIN_BRANCH']: '';

$ins_logo = '';
$inst_name ='';
$inst_name ='';
$ins_address = '';
$inst_thanta ='';
$ins_district ='';
$ins_division ='';
$ins_web  ='';
$ins_code_name = '';
$ins_email ='';
$extablishd_year ='';
if($branch_id !=''){
	$brans_obj = $obj->View_branch_details_By_Cond($branch_id,'B');
	
	$inst_name = $brans_obj->insName;
	$ins_code_name = $brans_obj->insCodeName; 
	$extablishd_year = $brans_obj->_establish_year ;
	$ins_logo = $brans_obj->_logo_location;
	$ins_address = $brans_obj->_address;
	$inst_thanta = $brans_obj->thana_name ;
	$ins_district = $brans_obj->distrinc_name  ;
	$ins_division = $brans_obj->division_name  ;
	$ins_web = $brans_obj->_web_address !='' ? $brans_obj->_web_address : '' ;
	$ins_email = $brans_obj->_email_add !='' ? '|| '.$brans_obj->_email_add : '' ;
	
}else{
	
	$institute_id = isset($_SESSION['LOGIN_INSTITUTE_ID']) ? $_SESSION['LOGIN_INSTITUTE_ID']: '';
	
	if($institute_id != ''){
		$ins_obj = $obj->View_Institute_details_By_ID($institute_id);
		$inst_name = $_SESSION['LOGIN_INSTITUTE_NAME'];;
		$ins_code_name = $ins_obj->_code_name;
		$extablishd_year = $ins_obj->_establish_year ;
		$ins_logo = $ins_obj->_logo_location;
		$ins_address = $ins_obj->_address;
		$inst_thanta = $ins_obj->thana_name ;
		$ins_district = $ins_obj->distrinc_name  ;
		$ins_division = $ins_obj->division_name  ;
		$ins_web = $ins_obj->_web_address !='' ? $ins_obj->_web_address : '' ;
		$ins_email = $ins_obj->_email_add !='' ? '|| '.$ins_obj->_email_add : '' ;
		}
	}

?>

	  <div class="row-fluid" > 

	
	
	
	<div class="row-fluid" id="second_part" >
			<input type="hidden" name="section_idd" id="section_idd" value=""/>
		<input type="hidden" id="id_e" name="id_e" class="form-control" >	
		<!--school inforation and image-->
<div class="row-fluid" >
                                       <div class="row-fluid" style="height:200px;">
										<div class="span2">
										<div style="height:170px;">
										<?php
										
										 if($ins_logo !=''){
											  echo '<img src="'.$ins_logo.'" style="top:20px;height:150px; float:left;margin-left: -12px;" title="logo" alt="" id="image" />';
											 }else{
												 
											// alternate iamge	 
												 }
										?> 
										</div>
										<p style="font-size:18px;color: #9C9C9C;;text-align:center;"><b>ESTD:</b>&nbsp&nbsp<?php echo $extablishd_year ; ?></p>
										
										</div>
										<div class="span8" style="margin-top: 15px;">
										<div >
										<h1 style="font-size: 25px;text-align: center;line-height: 29px;margin-bottom: 3px;margin-top: 5px;"><b> <?php echo $inst_name ; ?> </b>
                                        	<?php if($ins_code_name) echo ' ('.$ins_code_name.')' ; ?>
                                        </h1>
										<h5 style="text-align:center;font-size:15px;margin-top:6px"><?php echo $ins_address ; ?>,&nbsp<?php echo $inst_thanta ; ?>,&nbsp<?php echo $ins_district ?>,&nbsp<?php echo $ins_division ; ?> </h5>
										<h5 style="text-align:center;font-size:12px;line-height: 5px;"><?php echo $ins_web ?>  <?php echo  $ins_email; ?> </h5>
										</div >
										
										
										<div >
										
										
										</div >
										<div >
										
										<legend style="font-size:22px;text-align:center;margin-top: 24px;"><b>Employee  Information </b></legend>
										</div >
										</div>
                                        <div class="span2">
										<img src="<?php echo $data_list_personal_info['_image_location']?>"  onclick="performClick('upload');" id="image" style="height:150px;width:150px;top:20px; border-radius: 10px;border: 2px solid #888888;"  >
											<input type="text" id="file_id" style="display:none" /><br><br>
											<p style="font-size:14px;color:rgb(156, 156, 156);"><b>Employee ID:</b>&nbsp<?php echo $data_list_personal_info['_uniq_id'];?></p>
										
										
										
										
										</div>							
										</div>							
										
</div>
<!--school inforation and image-->


<!--details of teacher      -->


<!--Personal Information of teacher  start    
	
<legend style="font-size:18px;text-align:center;">Personal Information</legend>-->
<div class="row-fluid">
<br/>
</div>
<?php
$id=$_SESSION["LOGIN_EMPLOYEEID"] ;
 $data_employee_info=$obj->View_profile_employee($id);

 
?>
<!--start Personal Information-->
 <div class="row-fluid">

                                <div class=" widget-container-span">
									<div class="widget-box">
										<div  class="widget-header " style="font-size:18px;text-align:center; color:black;background:#E6E6E6;">
											<h5 class="bigger lighter" >
												<!--<i class="icon-table"></i>-->
												Personal Information
											</h5>

											
										</div>

										<div class="widget-body">
											<div class="widget-main no-padding">
												<table class="table table-striped table-bordered table-hover">
													

													<tbody>
														<tr>
															<td class=""><b>Full Name:</b><?php echo $data_employee_info['_full_name'];?></td>
															<td class=""><b>Nick Name:</b><?php echo $data_employee_info['_nick_name'];?></td>
															<td class=""><b>Code Name:</b><?php echo $data_employee_info['_code_name'];?></td>
															<td class=""><b>Emp Code:</b><?php echo $data_employee_info['_emp_code'];?></td>

															
														</tr>

														<tr>
														
														    <td class=""><b>Gender:</b><?php echo $data_employee_info['_gender'];?></td>
															<td class=""><b>Nationality:</b><?php echo $data_employee_info['_nationality'];?></td>
															<td class=""><b>National ID No:</b><?php echo $data_employee_info['_national_id_no'];?></td>
															<td class=""><b>Relegion:</b><?php echo $data_employee_info['_religion'];?></td>

															
														</tr>

														<tr>
														  
															<td class=""><b>Date of Birth:</b><?php /* echo $data_employee_info['_date_of_birth']; */
															                               if(!empty($data_employee_info['_date_of_birth']))
																			{ if($data_employee_info['_date_of_birth']=='0000-00-00')
																			{echo '';}
																			 else { echo date('d/m/Y',strtotime($data_employee_info['_date_of_birth'])); 
																			 }}?>
															</td>
															</td>
															<td class=""><b>Blood Group:</b><?php echo $data_employee_info['_blood_group'];?></td>
															<td class=""><b>Marital Status:</b><?php echo $data_employee_info['_marital_status'];?></td>
															<td class=""><b>Joining Date:</b><?php /* echo $data_employee_info['_joining_date'] */;
															                                    if(!empty($data_employee_info['_joining_date']))
																			{ if($data_employee_info['_joining_date']=='0000-00-00')
																			{echo '';}
																			 else { echo date('d/m/Y',strtotime($data_employee_info['_joining_date'])); 
																			 }}
															
															?></td>

															
														</tr>

														<tr>
					
					
															<td class=""><b>Profession:</b><?php  echo $data_employee_info['_proffesion']; ?></td>
															<td class=""><b>Depertment:</b><?php  echo $data_employee_info['_department']; ?></td>
															<td class=""><b>Designation:</b><?php  echo $data_employee_info['_designation']; ?></td>
															<td class=""><b>Section:</b><?php  echo $data_employee_info['_section']; ?></td>

															
														</tr>

														<tr>  
														
														
															<td class=""><b>Home Phone:</b><?php  echo $data_employee_info['_home_phone']; ?></td>
															<td class=""><b>Office Phone:</b><?php  echo $data_employee_info['_office_phone']; ?></td>
															<td class=""><b>Contact Email:</b><?php  echo $data_employee_info['_contact_email']; ?></td>
															<td class=""><b>Contact Mobile No:</b><?php  echo $data_employee_info['_contact_mobile_no']; ?></td>

															
														</tr>
														<tr>
														  
															<td class=""><b>Quota:</b><?php  echo $data_employee_info['_quata']; ?></td>
															<td class=""><b>last promotion date:</b><?php  /* echo $data_employee_info['_last_promotion_date']; */ 
															                                         if(!empty($data_employee_info['_last_promotion_date']))
																									{ if($data_employee_info['_last_promotion_date']=='0000-00-00')
																									{echo '';}
																									 else { echo date('d/m/Y',strtotime($data_employee_info['_last_promotion_date'])); 
																									 }}
																									 ?>
														    </td>
															<td class=""><b>Hobby:</b><?php  echo $data_employee_info['_hoby']; ?></td>
															<td class=""><b></b></td>

															
														</tr>
													</tbody>
												</table>
											</div>
										</div>
									</div>
								</div>


</div>
<!--end Personal Information -->
<!--start address-->
<?php
 $data_employee_padd=$obj->View_address($id,'E','present');
 $data_employee_pmadd=$obj->View_address($id,'E','Parmanent');

 
?>

<div class="row-fluid">

<div class="span6">
                                <div class=" widget-container-span">
									<div class="widget-box">
										<div  class="widget-header " style="font-size:18px;text-align:center; color:black;background:#E6E6E6;">
											<h5 class="bigger lighter" >
												<!--<i class="icon-table"></i>-->
												Present Address
											</h5>

											
										</div>

										<div class="widget-body">
											<div class="widget-main no-padding">
												<table class="table table-striped table-bordered table-hover">
													

													<tbody>
														<tr>
															<td class=""><b>District:</b><?php echo $data_employee_padd['_dname'];?></td>
															<td class=""><b>Thana:</b><?php echo $data_employee_padd['_tname'];?></td>
															
														</tr>
														<tr>
															<td class="" colspan="2"><b>Address:</b><?php echo $data_employee_padd['_address'];?></td>
															
														</tr>

													</tbody>
												</table>
											</div>
										</div>
									</div>
								</div>


</div>

<div class="span6">
                                <div class=" widget-container-span">
									<div class="widget-box">
										<div  class="widget-header " style="font-size:18px;text-align:center; color:black;background:#E6E6E6;">
											<h5 class="bigger lighter" >
												<!--<i class="icon-table"></i>-->
												parmanent Address
											</h5>

											
										</div>

										<div class="widget-body">
											<div class="widget-main no-padding">
												<table class="table table-striped table-bordered table-hover">
													

													<tbody>
														<tr>
															<td class=""><b>District:</b><?php echo $data_employee_pmadd['_dname'];?></td>
															<td class=""><b>Thana:</b><?php echo $data_employee_pmadd['_tname'];?></td>
															
														</tr>
														<tr>
															<td class="" colspan="2"><b>Address:</b><?php echo $data_employee_pmadd['_address'];?></td>
															
														</tr>

													</tbody>
												</table>
											</div>
										</div>
									</div>
								</div>


</div>
</div>



<!--end address-->	
<div class="row-fluid">
<br/>
</div>

<!--spouse start-->
<?php
 $data_employee_spouse=$obj->View_spouse_parents($id,'E','s');
 

 
?>
<div class="row-fluid">

                                <div class=" widget-container-span">
									<div class="widget-box">
										<div  class="widget-header " style="font-size:18px;text-align:center; color:black;background:#E6E6E6;">
											<h5 class="bigger lighter" >
												<!--<i class="icon-table"></i>-->
												Spouse Information
											</h5>

											
										</div>

										<div class="widget-body">
											<div class="widget-main no-padding">
												<table class="table table-striped table-bordered table-hover">
													

													<tbody>
														<tr>
															<td class=""><b>Full Name:</b><?php echo $data_employee_spouse['_gs_full_name'];?></td>
															<td class=""><b>Mobile No:</b><?php echo $data_employee_spouse['_gs_mobile_no'];?></td>
															<td class=""><b>Occupation:</b><?php echo $data_employee_spouse['_oname'];?></td>
															<td class=""><b>Blood Group:</b><?php echo $data_employee_spouse['_bname'];?></td>

															
														</tr>
														<tr>       
															<td class=""><b>Email:</b><?php echo $data_employee_spouse['_gs_email'];?></td>
															<td class=""><b>Home Phone:</b><?php echo $data_employee_spouse['_gs_home_phone'];?></td>
															<td class=""><b>Nationality:</b><?php echo $data_employee_spouse['_gs_nationality'];?></td>
															<td class=""><b>National ID:</b><?php echo $data_employee_spouse['_gs_national_id'];?></td>

															
														</tr>
														<tr>
															<td class=""><b>Office Address:</b><?php echo $data_employee_spouse['_gs_office_address'];?></td>
															<td class=""><b>Yearly Income:</b><?php echo $data_employee_spouse['_gs_yearly_income'];?></td>
															<td class=""><b>Office Phone:</b><?php echo $data_employee_spouse['_gs_office_phone'];?></td>
															<td class=""><b></b></td>

															
														</tr>
														

													</tbody>
												</table>
											</div>
										</div>
									</div>
								</div>


</div>


	<div class="row-fluid">
<br/>
</div>						
								 
								
								
<!--Spouse Information of teacher  END    -->
                             	
<!--Child Information-->
	




<div class="row-fluid">

                                <div class=" widget-container-span">
									<div class="widget-box">
										<div  class="widget-header " style="font-size:18px;text-align:center; color:black;background:#E6E6E6;">
											<h5 class="bigger lighter" >
												<!--<i class="icon-table"></i>-->
												Child Information
											</h5>

											
										</div>

										<div class="widget-body">
											<div class="widget-main no-padding">
												<table class="table table-striped table-bordered table-hover">
													<thead>
														<tr>
															<th>
																<b>Full Name:</b>
															</th>

															<th>
																<b>Date of Birth:</b>
															</th>
															<th ><b>Gender:</b></th>
															<th >Class:</b></th>
															<th ><b>Institute:</b></th>
														</tr>
													</thead>

													<tbody>
													<?php
foreach($obj->View_all_data_row_column_By_Cond('_pf_sibling_child_info',' * ',"_pid='".$id."' AND _type='E' AND _info_type='CH'")AS $value){
$i=0;
extract($value);
										
?>
														<tr>    
															<td class=""><?php echo $value['_full_name'];?></td>
															<td class="">
															                <?php /* echo $value['_date_of_birth']; */
																		     if(!empty($value['_date_of_birth']))
																			{ if($value['_date_of_birth']=='0000-00-00')
																			{echo '';}
																			 else { echo date('d/m/Y',strtotime($value['_date_of_birth'])); 
																			 }}?>
															</td>
															<td class=""><?php echo $value['_gender'];?></td>
															<td class=""><?php echo $value['_class'];?></td>
															<td class=""><?php echo $value['_institute'];?></td>

															
														</tr>
														
<?php $i++;}?>
													</tbody>
													

												</table>
												
											</div>
										</div>
									</div>
								</div>


</div>





<div class="row-fluid">
<br/>
</div>



<!--Child Information -->
<!---->

<div class="row-fluid">

                                <div class=" widget-container-span">
									<div class="widget-box">
										<div  class="widget-header " style="font-size:18px;text-align:center; color:black;background:#E6E6E6;">
											<h5 class="bigger lighter" >
												<!--<i class="icon-table"></i>-->
												Academic Information
											</h5>

											
										</div>

										<div class="widget-body">
											<div class="widget-main no-padding">
												<table class="table table-striped table-bordered table-hover">
													<thead>
														<tr>
														
															<th>
																<b>Exam Name:</b>
															</th>

															<th>
																<b>Passing Year:</b>
															</th>
															<th ><b>Institution:</b></th>
															<th >GPA/Marks:</b></th>
															<th ><b>Board:</b></th>
															<th ><b>Grade:</b></th>
														</tr>
													</thead>


													<tbody>
													<?php
 /* $data_employee_acc=$obj->View_academic($id,'E'); */
 foreach($obj->View_academic($id,'E')AS $value){
 
$i=0;
extract($value);
 
?>
														<tr>
															<td class=""><?php echo $value['_ex_name'];?></td>
															<td class=""><?php echo $value['_pass_year'];?></td>
															<td class=""><?php echo $value['_istitute'];?></td>
															<td class=""><?php echo $value['_gpa_marks'];?></td>
															<td class=""><?php echo $value['_bd_name'];?></td>
															<td class=""><?php echo $value['_gdname'];?></td>

															
														</tr>
<?php $i++;}?>
													</tbody>
												</table>
											</div>
										</div>
									</div>
								</div>


</div>




<!---->	


<div class="row-fluid">
<br/>
</div>




<!---->	



<div class="row-fluid">

                                <div class=" widget-container-span">
									<div class="widget-box">
										<div  class="widget-header " style="font-size:18px;text-align:center; color:black;background:#E6E6E6;">
											<h5 class="bigger lighter" >
												<!--<i class="icon-table"></i>-->
												Training Information
											</h5>

											
										</div>

										<div class="widget-body">
											<div class="widget-main no-padding">
												<table class="table table-striped table-bordered table-hover">
													<thead>
														<tr>
														
															<th>
																<b>Course Name:</b>
															</th>

															<th>
																<b>Start Date:</b>
															</th>
															<th ><b>End Date:</b></th>
															<th >Result:</b></th>
															<th ><b>Institution Address:</b></th>
															
														</tr>
													</thead>


													<tbody>
													<?php
 
 foreach($obj->View_all_data_row_column_By_Cond('_pf_emp_training_experience',' * ',"_pid='".$id."' AND _type='T' ")AS $value){
 
$i=0;
extract($value);
 
?>
														<tr>    
															<td class=""><?php echo $value['_course_name'];?></td>
															<td class=""><?php /* echo /* $value['_start_date'] ; */
															                       if(!empty($value['_start_date']))
																					{ if($value['_start_date']=='0000-00-00')
																					{echo '';}
																					 else { echo date('d/m/Y',strtotime($value['_start_date'])); 
																					 }}
															
															
															             ?>
															</td>
															<td class=""><?php /* echo $value['_end_date'] */
															               if(!empty($value['_end_date']))
																					{ if($value['_end_date']=='0000-00-00')
																					{echo '';}
																					 else { echo date('d/m/Y',strtotime($value['_end_date'])); 
																					 }}
															
															
															            ?>
																		</td>
															<td class=""><?php echo $value['_result'];?></td>
															<td class=""><?php echo $value['_institute_add'];?></td>
															

															
														</tr>
<?php $i++;}?>
													</tbody>
												</table>
											</div>
										</div>
									</div>
								</div>


</div>




<!---->	


<div class="row-fluid">
<br/>
</div>


<!--ssss-->


<div class="row-fluid">

                                <div class=" widget-container-span">
									<div class="widget-box">
										<div  class="widget-header " style="font-size:18px;text-align:center; color:black;background:#E6E6E6;">
											<h5 class="bigger lighter" >
												<!--<i class="icon-table"></i>-->
												Experience Information
											</h5>

											
										</div>

										<div class="widget-body">
											<div class="widget-main no-padding">
												<table class="table table-striped table-bordered table-hover">
													<thead>
														<tr>
														
															<th>
																<b>Course Name:</b>
															</th>

															<th>
																<b>Start Date:</b>
															</th>
															<th ><b>End Date:</b></th>
															<th >Result:</b></th>
															<th ><b>Institution Address:</b></th>
															
														</tr>
													</thead>


													<tbody>
													<?php
 
 foreach($obj->View_all_data_row_column_By_Cond('_pf_emp_training_experience',' * ',"_pid='".$id."' AND _type='E' ")AS $value){
 
$i=0;
extract($value);
 
?>
														<tr>    
															<td class=""><?php echo $value['_course_name'];?></td>
															<td class=""><?php /* echo $value['_start_date']; */
															                if(!empty($value['_start_date']))
																					{ if($value['_start_date']=='0000-00-00')
																					{echo '';}
																					 else { echo date('d/m/Y',strtotime($value['_start_date'])); 
																					 }}
															               ?>
															</td>
															<td class=""><?php /* echo $value['_end_date']; */
															              if(!empty($value['_end_date']))
																					{ if($value['_end_date']=='0000-00-00')
																					{echo '';}
																					 else { echo date('d/m/Y',strtotime($value['_end_date'])); 
																					 }}
															               
															
															
															              ?>
															 </td>
															<td class=""><?php echo $value['_result'];?></td>
															<td class=""><?php echo $value['_institute_add'];?></td>
															

															
														</tr>
<?php $i++;}?>
													</tbody>
												</table>
											</div>
										</div>
									</div>
								</div>


</div>





	
<!---->

<div class="row-fluid">
<br/>
</div>


<!--start-->

<?php
 $data_employee_idr=$obj->View_identyfier($id,'E','R');
 $data_employee_ida=$obj->View_identyfier($id,'E','A');
 

 
?>
<div class="row-fluid">

                                <div class=" widget-container-span">
									<div class="widget-box">
										<div  class="widget-header " style="font-size:18px;text-align:center; color:black;background:#E6E6E6;">
											<h5 class="bigger lighter" >
												<!--<i class="icon-table"></i>-->
												Form Identity Information
											</h5>

											
										</div>

										<div class="widget-body">
											<div class="widget-main no-padding">
												<table class="table table-striped table-bordered table-hover">
													

													<tbody>
														<tr>
															<td class=""><b>Received By:</b><?php echo $data_employee_idr['_name'];?></td>
															<td class=""><b>Designation:</b><?php echo $data_employee_idr['_des_name'];?></td>
															<td class=""><b>Approved By:</b><?php echo $data_employee_ida['_name'];?></td>
															<td class=""><b>Designation:</b><?php echo $data_employee_ida['_des_name'];?></td>
															<td class=""><b>Comment:</b><?php echo $data_employee_info['_comments'];?></td>

															
														</tr>

													</tbody>
												</table>
											</div>
										</div>
									</div>
								</div>


</div>

<!---->								
								
		
						
								<!--  Information of teacher END   -->
								
							    
								
								
								
								
								
								
								
    </div>
    </div>
   	



