ESH/excel_role.php

23 lines
1003 B
PHP
Raw Permalink Normal View History

2024-10-23 18:28:06 +05:30
<?php //include('pdf_header.php');
include('includes/config/config.php');
//include('pop_up_top.php');
header('Content-Type: application/force-download');
header('Content-disposition: attachment; filename=excel_role.xls');
?>
<table border="1">
<?php
$sql="select role_name,role_code,role_description,role_home_page,icon_color,icon_text from role_master";
//echo $sql;
$result = mysqli_query($conn,$sql);
//echo $result;
?><tr><th>Role</th><th>Role Code</th><th>Role Description</th><th>Role Home Page</th><th>Icon Colour</th><th>Icon Text</th></tr><?php
while($rowOfEmployee=mysqli_fetch_array($result)){
?><tr><td><?php echo $rowOfEmployee['role_name']?></td><td><?php echo $rowOfEmployee['role_code']?></td><td><?php echo $rowOfEmployee['role_description']?></td><td><?php echo $rowOfEmployee['role_home_page']?></td><td><?php echo $rowOfEmployee['icon_color']?></td><td><?php echo $rowOfEmployee['icon_text']?></td></tr><?php
}
?>
</table>
<?php
//include('pdf_footer.php');
?>