<?php 
		require "_header.php";

		$limit=0;
		$start=0;
		$condition="";
		$order_field="";
		$order_type="";
		
		$section_name = Escape($_REQUEST['section_hidden']);
		$employee_id  = Escape($_REQUEST["ID"]);
		
        if(isset($_REQUEST["ID"])){  
			if($employee_id!=""){
				$condition.=" and employee_id = '$employee_id'";
			}
		}	
		if($section_name!=""){
			$condition.=" and employee_section = '$section_name'";
		}
		$condition.=" and emp.employee_active = 'YES' ";
		$objEmp = new EmployeeMgmt();
		$out = $objEmp->getAllRecords($limit,$start,$condition,$order_field,$order_type);		
?>
<div id="abcd1" align="center">
<?php 
	if(dbRows($out)) {
		while($row=dbArray($out)) {
        	extract($row);
			if($employee_photo=="")
		    $employee_photo = "default.gif";
		    $imgfile = $EmployeeImagePath.$employee_photo; 
?>	

<table width="80%" >
  <tr> <th colspan="2" align="center"> Employee Identity</tr>
  <tr>
    <td width="50%"> Name :           <?php print $employee_name; ?> </br> <br/>
	      <br />     <img align="left" src=<?php echo $imgfile; ?> width="<?php echo $SiteImageWidth ?>" height="<?php echo $SiteImageHeight ?>" />
	    &nbsp;&nbsp;&nbsp;Designation:      <?php print $employee_designation;?><br/>
		&nbsp;&nbsp;&nbsp;Qulification:   <?php print $employee_profqualification;?><br/>
		&nbsp;&nbsp;&nbsp;Subject:          <?php print $employee_profsub;?><br/>
		&nbsp;&nbsp;&nbsp;BirthDate:        <?php print date($SiteDateFormat,strtotime($employee_birthdate));?><br/> 
		&nbsp;&nbsp;&nbsp;Subject:        <?php print $employee_profsub;?><br/>
		&nbsp;&nbsp;&nbsp;School Joing Date:<?php print date($SiteDateFormat,strtotime($employee_schooljoindate));?><br/> 
		&nbsp;&nbsp;&nbsp;Com.Pay Recipt:   <?php print $employee_salaryno;?><br/>
		&nbsp;&nbsp;&nbsp;GPF A/C No.:      <?php print $employee_gpfacno;?><br/>
		&nbsp;&nbsp;&nbsp;Increment Date:   <?php print date($SiteDateFormat,strtotime($employee_incrdate));?><br/> 
		<div>
		  <div style="float:left;"><b>Employee Sign</b></div> 
		  <div style="float:right;"><b>Principal Sign</b></div>
		</div> <br/><br/>
	</td>
    <td>
	       <b><?php print $school_name;?><br/></b>
		 <u><?php print $school_address;?><br/> </u>
		School Phone:<?php print $school_phone;?><br/>
		School Reg.No.:<?php  ?><br/>
		School SSCIndex No.:<?php print $school_sscindex;?><br/>
		School HSC Index No.:<?php print $school_hscindex;?><br/>
		Home Address:<?php print $employee_curaddress;?><br/>
		Phome(R):<?php print $employee_phone;?><br/>
	         (M):<?php print $employee_mobile;?><br/> 
	    Bank A/C No.:<?php print $employee_bankacno;?><br/>
    </td>
   </tr>
  
</table>
<?php 
      }
	}
	?>

</div>
<?php require "_footer.php";?>