30 lines
1.0 KiB
PHP
30 lines
1.0 KiB
PHP
<?php
|
|
include('includes/config/config.php');
|
|
//include('includes/auth/auth.php');
|
|
include('includes/functions.php');
|
|
//include('access.php');
|
|
include('pdf_header.php');
|
|
error_reporting(E_ERROR | E_PARSE);
|
|
?>
|
|
|
|
<table border="1">
|
|
<?php
|
|
$sql="select sbu_id,firm_id,sbu_name,head_emp_id from sub_business_unit";
|
|
|
|
// $result1 = mysqli_query($conn,$sql1);
|
|
// $rw=mysqli_fetch_array($result1);
|
|
//echo $sql;
|
|
$result = mysqli_query($conn,$sql);
|
|
//echo $result;
|
|
?><tr bgcolor="#eeeeee"><th width=33%>Department Name</th><th width=33%>Bussiness Unit</th><th width=33%>Bussiness Unit Head</th></tr><?php
|
|
while($rowOfEmployee=mysqli_fetch_array($result)){
|
|
$department_name=getTableFieldValue('tbl_firms','firm_name','firm_id',"'". $rowOfEmployee['firm_id']."'");
|
|
$emp_id=getTableFieldValue('employee','fname','id',"'". $rowOfEmployee['head_emp_id']."'");
|
|
?><tr><td><?php echo $rowOfEmployee['sbu_name']?></td><td><?php echo $department_name?></td><td><?php echo $emp_id?></td></tr><?php
|
|
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
include('pdf_footer.php');
|
|
?>
|