<?php
$PageSecurity = 11;
 //echo $_SERVER['QUERY_STRING'];exit;
 include('includes/SQL_CommonFunctions.inc');
 include('includes/function_lib.php');
 include('includes/session.inc');
 global $db;
  $q=$_GET['q'];

  $sql_po= "select * from empmaster where id ='".$q."'";
$result=DB_query($sql_po,$db);
$myrow=DB_fetch_array($result);
?>

<table width="100%" border="0">
  <tr>
<th width="11%">Dept.<label><font color="#FF0000" size="4px">*</font></label></th>

    <td width="24%">
    <?php  $DepartmenName=$s->getField('deptmaster','deptcode',$myrow['department'],'deptname')
    ?><input type="text" name="Department" value="<?php echo $DepartmenName?>" style="width:175px;" ></td>
    <th width="15%">Designation<label><font color="#FF0000" size="4px">*</font></label></th>
    <td width="17%">
    	<?php $DesignationName=$s->getField('desigmaster','desigcode',$myrow['designation'],'designame'); ?>
   <input type="text" name="Designation" value="<?php echo $DesignationName ?>" style="width: 100%">
	</td>
    <th width="16%">Branch<label><font color="#FF0000" size="4px">*</font></label></th>
    <td width="17%">
   <?php $BranchName=$s->getField('locations','loccode',$myrow['emp_site'],'locationname'); ?> 
   <input type="text" name="Site" value="<?php echo $BranchName ?>" style="width: 100%"></td>
    </tr></table>



 





