27 lines
1.0 KiB
PHP
27 lines
1.0 KiB
PHP
<?php include('pdf_header.php');
|
|
include('includes/config/config.php');
|
|
include('includes/functions.php');
|
|
//include('pop_up_top.php');
|
|
?>
|
|
<table border="1">
|
|
<?php
|
|
$sql="select section_id,section_name,firm_id,sbu_id,head_emp_id from section";
|
|
// echo $sql;
|
|
$result = mysqli_query($conn,$sql);
|
|
// echo $result;
|
|
//echo $result;
|
|
?><tr bgcolor="#eeeeee"><th width=25%>Section Name</th><th width=25%>Bussiness Unit</th><th width=25%>Department Name</th><th width=25%>Section Head</th></tr><?php
|
|
while($rowOfEmployee=mysqli_fetch_array($result)){
|
|
$firm_id=getTableFieldValue('tbl_firms','firm_name','firm_id',$rowOfEmployee['firm_id'],'');
|
|
$sbu_id=getTableFieldValue('sub_business_unit','sbu_name','sbu_id',$rowOfEmployee['sbu_id'],'');
|
|
$head_emp_id=getTableFieldValue('employee','fname','id',$rowOfEmployee['head_emp_id'],'');
|
|
?><tr><td><?php echo $rowOfEmployee['section_name']?></td><td><?php echo $firm_id?></td><td><?php echo $sbu_id?></td>
|
|
<td><?php echo $head_emp_id?></td>
|
|
</tr><?php
|
|
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
include('pdf_footer.php');
|
|
?>
|